Changeset 0662451 in mainline for uspace/app/bdsh/tok.h


Ignore:
Timestamp:
2011-08-19T14:44:49Z (13 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5992e0e
Parents:
89660f2
Message:

Extend bdsh tokenizer to include more information

File:
1 edited

Legend:

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

    r89660f2 r0662451  
    3838typedef struct {
    3939        char *text;
    40         off_t byte_start;
    41         off_t char_start;
     40        unsigned int byte_start;
     41        unsigned int char_start;
    4242        size_t byte_length;
    4343        size_t char_length;
     
    4747typedef struct {
    4848        char *in;
    49         off_t in_offset;
    50         off_t last_in_offset;
    51         off_t in_char_offset;
    52         off_t last_in_char_offset;
     49        unsigned int in_offset;
     50        unsigned int last_in_offset;
     51        unsigned int in_char_offset;
     52        unsigned int last_in_char_offset;
    5353       
    5454        char *outbuf;
     
    5858       
    5959        token_t *outtok;
     60        token_type_t current_type;
    6061        size_t outtok_offset;
    6162        size_t outtok_size;
     
    6465extern int tok_init(tokenizer_t *, char *, token_t *, size_t);
    6566extern void tok_fini(tokenizer_t *);
    66 extern int tok_tokenize(tokenizer_t *);
     67extern int tok_tokenize(tokenizer_t *, size_t *);
    6768
    6869#endif
Note: See TracChangeset for help on using the changeset viewer.