File: parse.h

package info (click to toggle)
flin 0.5.1-9.2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 276 kB
  • ctags: 164
  • sloc: ansic: 1,642; makefile: 105; sh: 71
file content (31 lines) | stat: -rw-r--r-- 503 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#if !defined(_PARSE_H)
#   define _PARSE_H

#define NO_TOKEN	-1

#define MENU_BEGIN	"Menu"
#define MENU_END	"EndMenu"
#define DIREC_NOBOX	"NoBox"

#define MENU_BUFF	255
#define MAX_WORD	255
#define	MAX_LINE	255

struct menu_items {
   int type;
   char *name;
   char *args;
   char *prompt;
   struct menu_items *next, *prev;
};

struct menu {
   char *name;
   struct menu_items *data;
   struct menu *next, *prev;
};

int parsefile(struct menu **,char *);
void freemem(struct menu *,char *);

#endif