| 77 | |
| 78 | |
| 79 | static inline char* skip_token(char* _b, int _l) |
| 80 | { |
| 81 | int i = 0; |
| 82 | |
| 83 | for(i = 0; i < _l; i++) { |
| 84 | switch(_b[i]) { |
| 85 | case ' ': |
| 86 | case '\r': |
| 87 | case '\n': |
| 88 | case '\t': |
| 89 | case ';': |
| 90 | return _b + i; |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | return _b + _l; |
| 95 | } |
| 96 | |
| 97 | |
| 98 | int event_parser(char* _s, int _l, event_t* _e) |