32 is space. ascii <= 32 is all whitespace
This commit is contained in:
parent
89ec2321b7
commit
8fb301e9ab
@ -310,7 +310,7 @@ int main( int argc, char *argv[])
|
|||||||
|
|
||||||
/* Get rid of whitespace from the front of the line. */
|
/* Get rid of whitespace from the front of the line. */
|
||||||
i = 0;
|
i = 0;
|
||||||
while( line_buf[i] && line_buf[i] <= 32 ) i++;
|
while( line_buf[i] && line_buf[i] <= ' ' ) i++;
|
||||||
|
|
||||||
/* Check if the line isn't empty and isn't a comment */
|
/* Check if the line isn't empty and isn't a comment */
|
||||||
if( line_buf[i] && line_buf[i] != '#' ) {
|
if( line_buf[i] && line_buf[i] != '#' ) {
|
||||||
@ -324,7 +324,7 @@ int main( int argc, char *argv[])
|
|||||||
|
|
||||||
/* Parse out the regular expression from the line. */
|
/* Parse out the regular expression from the line. */
|
||||||
start = i;
|
start = i;
|
||||||
while( line_buf[i] > 32 )i++;
|
while( line_buf[i] > ' ' )i++;
|
||||||
finish = i;
|
finish = i;
|
||||||
|
|
||||||
/* Allocate a character array to hold the regular
|
/* Allocate a character array to hold the regular
|
||||||
@ -344,7 +344,7 @@ int main( int argc, char *argv[])
|
|||||||
|
|
||||||
/* Get rid of whitespace after the regular
|
/* Get rid of whitespace after the regular
|
||||||
* expression. */
|
* expression. */
|
||||||
while( line_buf[i] <= 32 ) i++;
|
while( line_buf[i] <= ' ' ) i++;
|
||||||
|
|
||||||
/* Parse out the type from the line (if it
|
/* Parse out the type from the line (if it
|
||||||
* is there). */
|
* is there). */
|
||||||
@ -364,12 +364,12 @@ int main( int argc, char *argv[])
|
|||||||
temp->type[2] = 0;
|
temp->type[2] = 0;
|
||||||
|
|
||||||
/* Get rid of whitespace after the type. */
|
/* Get rid of whitespace after the type. */
|
||||||
while( line_buf[i] <= 32 ) i++;
|
while( line_buf[i] <= ' ' ) i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Parse out the context from the line. */
|
/* Parse out the context from the line. */
|
||||||
start = i;
|
start = i;
|
||||||
while( line_buf[i] > 32 ) i++;
|
while( line_buf[i] > ' ' ) i++;
|
||||||
finish = i;
|
finish = i;
|
||||||
|
|
||||||
/* Allocate a character array to hold the context. */
|
/* Allocate a character array to hold the context. */
|
||||||
|
Loading…
Reference in New Issue
Block a user