int ch, idx;
/* skip over white space */
- while ((ch = fgetc (stream)) == ' ' || ch == lineterm ||
- ch == lineterm_alt ||
- ch == ',' || ch == '\t' || ch == ';');
+ while ((ch = fgetc (stream)) == ' ' || ch == lineterm
+ || ch == lineterm_alt
+ || ch == ',' || ch == '\t' || ch == ';');
idx = 0;
- while (idx < MAX_NAME - 1 &&
- ch != EOF && ch != ' ' && ch != lineterm && ch != lineterm_alt
+ while (idx < MAX_NAME - 1
+ && ch != EOF && ch != ' ' && ch != lineterm && ch != lineterm_alt
&& ch != '\t' && ch != ':' && ch != ';')
{
ident[idx++] = ch;
} /* while */
if (ch == EOF && idx < 1) return ((char *)NULL);
- if (idx >= 1 && ch != ':' ) ungetc (ch, stream);
- if (idx < 1 ) ident[idx++] = ch; /* single-character token */
+ if (idx >= 1 && ch != ':') ungetc (ch, stream);
+ if (idx < 1) ident[idx++] = ch; /* single-character token */
ident[idx] = 0;
return (ident); /* returns pointer to the token */
{
int ch, idx;
- while ((ch = fgetc (stream)) == ' ' || ch == '\t' );
+ while ((ch = fgetc (stream)) == ' ' || ch == '\t');
idx = 0;
- while (idx < MAX_NAME - 1 &&
- ch != EOF && ch != lineterm && ch != lineterm_alt)
+ while (idx < MAX_NAME - 1
+ && ch != EOF && ch != lineterm && ch != lineterm_alt)
{
ident[idx++] = ch;
ch = fgetc (stream);