Changes in uspace/app/bdsh/tok.h [f41682c:36ab7c7] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/tok.h

    rf41682c r36ab7c7  
    3030#define TOK_H
    3131
    32 typedef enum {
    33         TOKTYPE_TEXT,
    34         TOKTYPE_PIPE,
    35         TOKTYPE_SPACE
    36 } 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 
    4732typedef struct {
    4833        char *in;
    4934        size_t in_offset;
    50         size_t last_in_offset;
    51         size_t in_char_offset;
    52         size_t last_in_char_offset;
    5335       
    5436        char *outbuf;
     
    5739        size_t outbuf_last_start;
    5840       
    59         token_t *outtok;
    60         token_type_t current_type;
     41        char **outtok;
    6142        size_t outtok_offset;
    6243        size_t outtok_size;
    6344} tokenizer_t;
    6445
    65 extern int tok_init(tokenizer_t *, char *, token_t *, size_t);
     46extern int tok_init(tokenizer_t *, char *, char **, size_t);
    6647extern void tok_fini(tokenizer_t *);
    67 extern int tok_tokenize(tokenizer_t *, size_t *);
     48extern int tok_tokenize(tokenizer_t *);
    6849
    6950#endif
Note: See TracChangeset for help on using the changeset viewer.