Permalink
Browse files

some Win32 updates

  • Loading branch information...
1 parent c759b68 commit c89470a2ae1ddfc8969444c5e5683e75d91a5443 @agentzh committed Sep 24, 2009
Showing with 14 additions and 7 deletions.
  1. +4 −1 NMakefile
  2. +3 −1 README
  3. +7 −5 appears.cpp
View
@@ -1,4 +1,4 @@
-all: appears.exe appears2.exe appears1.exe
+all: appears.exe appears2.exe appears1.exe t/gensample.exe
appears.exe: appears.cpp ddebug.h
cl /nologo /EHsc /O2 /o $@ appears.cpp
@@ -9,6 +9,9 @@ appears2.exe: appears.cpp ddebug.h
appears1.exe: appears.cpp ddebug.h
cl /D APPEARS_SEQSIZE=1L /nologo /EHsc /O2 /o $@ appears.cpp
+t/gensample.exe: t/gensample.c
+ cl /nologo /EHsc /O2 /o $@ t/gensample.c
+
test: all
@echo =====================
-appears.exe
View
4 README
@@ -26,6 +26,8 @@ To run the little test suite:
The expected testing output is similar to the output of the Linux
version given below.
+(Note that large files beyond 4GB have not tested on Win32.)
+
[ Linux ]
To build everything:
@@ -42,7 +44,7 @@ sequences, and "appear1" for 1-char sequences.
The expected testing output is like:
./appears
- No input file specified.
+ ERROR: No input file specified.
make: [test] Error 1 (ignored)
===========================
./appears no-such-file
View
@@ -40,23 +40,25 @@ void index_to_tokens(unsigned long index, char* buf);
int main (int argc, char* argv[]) {
const char* fname;
if (argc < 2) {
- fprintf(stderr, "No input file specified.\n");
+ fprintf(stderr, "ERROR: No input file specified.\n");
return 1;
}
- fname = argv[1];
+ fname = argv[1];
- printf("INFO: Reading file %s...\n", fname);
+ fprintf(stderr, "INFO: Reading file %s...\n", fname);
if ( ! parse_seq_file(fname) ) {
return 1;
}
- printf("INFO: Using a bit array of length %lu"
+ fprintf(stderr,
+ "INFO: Using a bit array of length %lu"
" (sequence length: %ld).\n",
(unsigned long)TABLESIZE,
APPEARS_SEQSIZE);
- printf("INFO: Searching missing combinations of sequences...\n");
+ fprintf(stderr,
+ "INFO: Searching missing combinations of sequences...\n");
search_missing_combinations();
return 0;

0 comments on commit c89470a

Please sign in to comment.