Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dtcreate / parser.h
1 /* $XConsortium: parser.h /main/5 1996/03/25 09:20:09 rswiston $ */
2 /***************************************************************************/
3 /*                                                                         */
4 /*  parser.h                                                               */
5 /*                                                                         */
6 /***************************************************************************/
7
8 /* Field id Definitions for Actiondata Datastructure */
9 enum {
10                DATA_ATTRIBUTES=1 ,
11                DATA_CRITERIA     ,
12                ACTION_OPEN       ,
13                ACTION_PRINT_FTYPE,
14                ACTION_PRINT
15     };
16
17 /* Field id Definitions for Filetypedata Datastructure */
18 enum {
19               ACTION_NAME=1,
20               ACTION_CMD   ,
21               ACTION_ICO   ,
22               ACTION_HELP
23     };
24 /* Tabletype definitions */
25 #define ACTION_TABLE       1
26 #define FILETYPE_TABLE     2
27 #define HELP_TEXT          3
28
29 /* Function prototype definitions */
30 int GetActionData(FILE *, ActionData *);
31
32
33 /* Error code Defines */
34
35 #define ACTION_FILEOPEN_ERROR          1
36 #define ACTION_FILE_MUCKED             2
37 #define ACTION_DATA_ERROR              3
38
39 /***************************************************************************/
40 /* Platform specifics                                                      */
41 /***************************************************************************/
42 #ifdef SVR4
43 #define bzero(pbuffer, size)  memset(pbuffer, 0, size)
44 #endif