From 9799b5d60a27c37d1d78bc66b9459a32c10bc4ea Mon Sep 17 00:00:00 2001 From: Josef Ezra Date: Fri, 15 Nov 2013 10:14:22 +0200 Subject: [PATCH] Snapshot: Commit before converting recs to gap/same/pag module --- .gitignore | 7 ++----- one.cpp | 8 ++++++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 30e9463..0ec339c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,6 @@ PROF -jfastq -jfastq.opt -jfastq.prof -jfastq.utest one one.prof one.opt -jfastq.run +slimfastq +slimfastq.* diff --git a/one.cpp b/one.cpp index d700401..dafce53 100644 --- a/one.cpp +++ b/one.cpp @@ -1,3 +1,7 @@ + + +// This Brilliant code was written by James Bonfield + #include #include #include @@ -1003,7 +1007,7 @@ enum name_type {N_UNK = 0, N_ALPHA, N_CHAR, void fqz::encode_name2(RangeCoder *rc, char *name, int len) { int i, j, k; - static int last_token_type[1024]; + static int last_token_type[1024]; // je: initialized? static int last_token_int[1024]; static int last_token_str[1024]; @@ -1048,7 +1052,7 @@ void fqz::encode_name2(RangeCoder *rc, char *name, int len) { last_token_type[ntok] = N_ALPHA; i = s-1; - } + } // end isalpha else if (name[i] == '0') { int s = i, v; while (s < len && name[s] == '0')