Lines Matching defs:token

54  * This variable is used to determine whether a token is present in the pipe
60 * This variable always gives us access to the most recent token type
122 * This routine gets the next token off the input stream. A token is
172 * Null terminate the token.
181 * If we hit another token, push it back and set state.
189 * Return the token.
195 * This routine removes the leading and trailing spaces from a token.
198 clean_token(cleantoken, token)
199 char *cleantoken, *token;
206 for (ptr = token; isspace(*ptr); ptr++)
222 * This routine checks if a token is already present on the input line
267 * This routine converts the given token into an integer. The token
269 * If the token is the wildcard string, and the wildcard parameter
302 * This routine converts the given token into a long long. The token
304 * If the token is the wildcard string, and the wildcard parameter
456 TOKEN token, cleantoken;
488 * Note whether the token is already present.
631 * Get the token. If we hit eof, exit the program gracefully.
633 if (gettoken(token) == NULL)
639 if ((cmdflag == CMD_INPUT) && (token[0] == '!')) {
644 /* initialize to the first token... */
645 arg = &token[1];
667 } while (token_present && (arg = gettoken(token)) != NULL);
691 * Echo the token back to the user if it was in the pipe or we
696 fmt_print("%s\n", token);
698 fmt_print("%s %s\n", token, token2);
702 * If we are logging, echo the token to the log file. The else
704 * token in the log file.
707 log_print("%s %s\n", token, token2);
710 * If the token was not in the pipe and it wasn't a command, flush
718 clean_token(cleantoken, token);
780 * If token is a '?' or a 'h', it is a request for help.
812 * Convert token to a disk block number.
853 * Convert the token into an integer.
883 * Convert the token into an integer.
917 * Convert the token into an integer.
948 * match the token. If a match is made, return the index
980 * See how many characters of the token match
985 * If it's not the whole token, then it's not a match.
1040 return ((int)alloc_string(token));
1111 * Parse the first token: try to find 'b', 'c' or 'm'
1118 * If we found a conversion specifier, second token is unused
1119 * Otherwise, the second token should supply it.
1128 * If the token is the wild card, simply supply the max
1155 * Convert token to a disk block number.
1186 * Convert token from a number of cylinders to
1205 * Convert token from megabytes to a block number.
1231 * Convert token from gigabytes to a block number.
1288 * Parse the first token: try to find 'b', 'c', 'e'
1297 * If we found a conversion specifier, second token is
1298 * unused Otherwise, the second token should supply it.
1308 * If the token is the wild card, simply supply the max
1340 * Convert token to a disk block number.
1378 /* convert token to integer */
1418 * Convert token from a number of
1442 * Convert token from megabytes to a
1473 * Convert token from gigabytes to a
1534 * Parse the first token: try to find 'b', 'c', 'e'
1543 * If we found a conversion specifier, second token is
1544 * unused Otherwise, the second token should supply it.
1554 * If the token is the wild card, simply supply the max
1604 /* convert token to integer */
1637 * Convert token from megabytes to a
1700 * the token. If we are running out of a command file, gracefully
1702 * reprompt. If the token was in the pipe, abort the current command.
1819 * See how many characters of the token match
1823 * If it's not the whole token, then it's not a match.
2223 * This routine inputs a token from the data file. A token is a series
2226 * last token around, which is useful for error recovery.
2244 * First check for presence of push-backed token.
2253 * Zero out the returned token buffer
2266 * If we hit eof, that's a token.
2278 * If we hit a newline, that delimits a token.
2284 * a token.
2346 * Push back a token
2354 * We can only push one token back at a time
2405 * Null terminate the token.