| 152 | } /* EatComment */ |
| 153 | |
| 154 | static int Continuation( char *line, int pos ) |
| 155 | /* ------------------------------------------------------------------------ ** |
| 156 | * Scan backwards within a string to discover if the last non-whitespace |
| 157 | * character is a line-continuation character ('\\'). |
| 158 | * |
| 159 | * Input: line - A pointer to a buffer containing the string to be |
| 160 | * scanned. |
| 161 | * pos - This is taken to be the offset of the end of the |
| 162 | * string. This position is *not* scanned. |
| 163 | * |
| 164 | * Output: The offset of the '\\' character if it was found, or -1 to |
| 165 | * indicate that it was not. |
| 166 | * |
| 167 | * ------------------------------------------------------------------------ ** |
| 168 | */ |
| 169 | { |
| 170 | pos--; |
| 171 | while( pos >= 0 && isSpace(line + pos) ) |
| 172 | pos--; |
| 173 | |
| 174 | return( ((pos >= 0) && ('\\' == line[pos])) ? pos : -1 ); |
| 175 | } /* Continuation */ |
| 176 | |
| 177 | |
| 178 | static BOOL Section( FILE *InFile, BOOL (*sfunc)(char *) ) |