comparison gsm-fw/gpf/inc/tok.h @ 316:79080922d8e4

GPF: FRAME C sources and include files imported from LoCosto source
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Thu, 10 Apr 2014 04:06:05 +0000
parents
children
comparison
equal deleted inserted replaced
315:1b4beffc8055 316:79080922d8e4
1 /*
2 +------------------------------------------------------------------------------
3 | File: tok.h
4 +------------------------------------------------------------------------------
5 | Copyright 2002 Texas Instruments Berlin, AG
6 | All rights reserved.
7 |
8 | This file is confidential and a trade secret of Texas
9 | Instruments Berlin, AG.
10 | The receipt of or possession of this file does not convey
11 | any rights to reproduce or disclose its contents or to
12 | manufacture, use, or sell anything it may describe, in
13 | whole, or in part, without the specific written consent of
14 | Texas Instruments Berlin, AG.
15 +------------------------------------------------------------------------------
16 | Purpose: Definitions for the configuration string functions.
17 +------------------------------------------------------------------------------
18 */
19
20
21 #ifndef __TOK_H__
22 #define __TOK_H__
23
24 /*==== CONSTANTS ==================================================*/
25
26 #define TOK_ERRBASE (-300)
27 #define TOK_OK (0)
28 #define TOK_EOCS (TOK_ERRBASE - 1)
29 #define TOK_NOT_FOUND (TOK_ERRBASE - 2)
30
31 /*==== TYPES ======================================================*/
32
33 typedef struct KW_DATA
34 {
35 const char * const keyword;
36 const SHORT code;
37 } KW_DATA;
38
39 typedef struct TOK_DCB
40 {
41 char * tokbuf;
42 char * nexttok;
43 char lastchar;
44 } TOK_DCB;
45
46 /*==== EXPORT =====================================================*/
47
48 void tok_init (char *);
49 SHORT tok_next (char **, char **);
50 SHORT tok_key (KW_DATA *, char *);
51
52 #endif
53