Changes in uspace/app/bdsh/tok.h [f41682c:36ab7c7] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/tok.h
rf41682c r36ab7c7 30 30 #define TOK_H 31 31 32 typedef enum {33 TOKTYPE_TEXT,34 TOKTYPE_PIPE,35 TOKTYPE_SPACE36 } token_type_t;37 38 typedef struct {39 char *text;40 size_t byte_start;41 size_t char_start;42 size_t byte_length;43 size_t char_length;44 token_type_t type;45 } token_t;46 47 32 typedef struct { 48 33 char *in; 49 34 size_t in_offset; 50 size_t last_in_offset;51 size_t in_char_offset;52 size_t last_in_char_offset;53 35 54 36 char *outbuf; … … 57 39 size_t outbuf_last_start; 58 40 59 token_t *outtok; 60 token_type_t current_type; 41 char **outtok; 61 42 size_t outtok_offset; 62 43 size_t outtok_size; 63 44 } tokenizer_t; 64 45 65 extern int tok_init(tokenizer_t *, char *, token_t*, size_t);46 extern int tok_init(tokenizer_t *, char *, char **, size_t); 66 47 extern void tok_fini(tokenizer_t *); 67 extern int tok_tokenize(tokenizer_t * , size_t *);48 extern int tok_tokenize(tokenizer_t *); 68 49 69 50 #endif
Note:
See TracChangeset
for help on using the changeset viewer.