Changeset View
Changeset View
Standalone View
Standalone View
sys/ddb/db_lex.h
Show All 39 Lines | |||||
*/ | */ | ||||
void db_flush_lex(void); | void db_flush_lex(void); | ||||
char *db_get_line(void); | char *db_get_line(void); | ||||
void db_inject_line(const char *command); | void db_inject_line(const char *command); | ||||
int db_read_line(void); | int db_read_line(void); | ||||
int db_read_token(void); | int db_read_token(void); | ||||
void db_unread_token(int t); | void db_unread_token(int t); | ||||
extern bool db_lex_wspace; | |||||
markj: Style: the function name should appear on a new line. | |||||
extern db_expr_t db_tok_number; | extern db_expr_t db_tok_number; | ||||
#define TOK_STRING_SIZE 120 | #define TOK_STRING_SIZE 120 | ||||
extern char db_tok_string[TOK_STRING_SIZE]; | extern char db_tok_string[TOK_STRING_SIZE]; | ||||
#define tEOF (-1) | #define tEOF (-1) | ||||
#define tEOL 1 | #define tEOL 1 | ||||
#define tNUMBER 2 | #define tNUMBER 2 | ||||
#define tIDENT 3 | #define tIDENT 3 | ||||
Show All 23 Lines | |||||
#define tGREATER_EQ 27 | #define tGREATER_EQ 27 | ||||
#define tBIT_AND 28 | #define tBIT_AND 28 | ||||
#define tBIT_OR 29 | #define tBIT_OR 29 | ||||
#define tLOG_AND 30 | #define tLOG_AND 30 | ||||
#define tLOG_OR 31 | #define tLOG_OR 31 | ||||
#define tSTRING 32 | #define tSTRING 32 | ||||
#define tQUESTION 33 | #define tQUESTION 33 | ||||
#define tBIT_NOT 34 | #define tBIT_NOT 34 | ||||
#define tWSPACE 35 | |||||
#endif /* !_DDB_DB_LEX_H_ */ | #endif /* !_DDB_DB_LEX_H_ */ |
Style: the function name should appear on a new line.