HuntnGather – Diff between revs 49 and 50
?pathlinks?
Rev 49 | Rev 50 | |||
---|---|---|---|---|
Line 70... | Line 70... | |||
70 | #endif |
70 | #endif |
|
71 | fprintf(stderr, "Could not open file '%s' for reading.\n", dbFile); |
71 | fprintf(stderr, "Could not open file '%s' for reading.\n", dbFile); |
|
72 | return; |
72 | return; |
|
73 | } |
73 | } |
|
Line -... | Line 74... | |||
- | 74 | |
||
- | 75 | #if defined ___NOCASE_FS___ |
||
- | 76 | StrUpr(needle); |
||
- | 77 | #endif |
||
74 | |
78 | |
|
75 | while(PROGRAM_RUN && (line = ReadLine(fp)) != NULL) { |
79 | while(PROGRAM_RUN && (line = ReadLine(fp)) != NULL) { |
|
76 | #if defined ___AmigaOS___ |
80 | #if defined ___AmigaOS___ |
|
77 | // Check if CTRL+C was pressed and abort the program. |
81 | // Check if CTRL+C was pressed and abort the program. |
|
78 | if(SetSignal(0L, SIGBREAKF_CTRL_C) & SIGBREAKF_CTRL_C) { |
82 | if(SetSignal(0L, SIGBREAKF_CTRL_C) & SIGBREAKF_CTRL_C) { |
|
Line 132... | Line 136... | |||
132 | |
136 | |
|
133 | /* |
137 | /* |
|
134 | * |
138 | * |
|
135 | * Search the database for a matching string. |
139 | * Search the database for a matching string. |
|
- | 140 | */ |
||
136 | */ |
141 | #if defined ___AmigaOS___ |
|
137 | void SearchDatabasePattern(char *dbFile, UBYTE *pattern) { |
142 | void SearchDatabasePattern(char *dbFile, UBYTE *pattern) { |
|
138 | #if defined ___AsyncIO___ |
143 | #if defined ___AsyncIO___ |
|
139 | struct AsyncFile *fp; |
144 | struct AsyncFile *fp; |
|
140 | #else |
145 | #else |
|
Line 200... | Line 205... | |||
200 | CloseAsync(fp); |
205 | CloseAsync(fp); |
|
201 | #else |
206 | #else |
|
202 | fclose(fp); |
207 | fclose(fp); |
|
203 | #endif |
208 | #endif |
|
204 | } |
209 | } |
|
- | 210 | #endif |
||
Line 205... | Line 211... | |||
205 | |
211 | |
|
206 | /* |
212 | /* |
|
207 | * |
213 | * |
|
208 | * Search the database for the matching string. |
214 | * Search the database for the matching string. |