Initial import of the CDE 2.1.30 sources from the Open Group.
This commit is contained in:
81
cde/programs/dthelp/parser/pass1/util/dtddef.h
Normal file
81
cde/programs/dthelp/parser/pass1/util/dtddef.h
Normal file
@@ -0,0 +1,81 @@
|
||||
/* $XConsortium: dtddef.h /main/3 1995/11/08 10:29:44 rswiston $ */
|
||||
/* Copyright (c) 1988, 1989 Hewlett-Packard Co. */
|
||||
/* Dtddef.h contains definitions relevant to document-type
|
||||
definitions */
|
||||
|
||||
typedef int M_ELEMENT ;
|
||||
typedef int M_ARC ;
|
||||
typedef int M_STATE ;
|
||||
typedef int M_ANDGROUP ;
|
||||
|
||||
/* Possible element content types */
|
||||
#define M_REGEXP 0
|
||||
#define M_ANY 1
|
||||
#define M_NONE 2
|
||||
#define M_CDATA 3
|
||||
#define M_RCDATA 4
|
||||
|
||||
typedef struct{
|
||||
int enptr, start, content, inptr, exptr, parptr, parcount, srefptr ;
|
||||
unsigned int smin : 1, emin : 1, useoradd : 1 ;
|
||||
} M_ELTSTRUCT ;
|
||||
|
||||
typedef struct {
|
||||
int paramname, type, kwlist, deftype ;
|
||||
M_WCHAR *defval ;
|
||||
} M_PARAMETER ;
|
||||
/* Possible parameter default types */
|
||||
#define M_NAMEDEF 0
|
||||
#define M_CURRENT 1
|
||||
#define M_REQUIRED 2
|
||||
#define M_NULLDEF 3
|
||||
#define M_CHANGEDCUR 4
|
||||
|
||||
/* Possible parameter types */
|
||||
#define M_KEYWORD 0
|
||||
#define M_ID 1
|
||||
#define M_IDRF 2
|
||||
#define M_IDRFS 3
|
||||
#define M_NAMEPAR 4
|
||||
#define M_NAMES 5
|
||||
#define M_NMTOKEN 6
|
||||
#define M_NMSTOKEN 7
|
||||
#define M_NUMBER 8
|
||||
#define M_NUMS 9
|
||||
#define M_NUTOKEN 10
|
||||
#define M_NUSTOKEN 11
|
||||
#define M_CDATT 12
|
||||
#define M_ENTATT 13
|
||||
|
||||
typedef struct {
|
||||
int sref ;
|
||||
int entity ;
|
||||
int next ;
|
||||
} M_SREF ;
|
||||
|
||||
typedef struct {
|
||||
unsigned final : 1, datacontent : 1 ;
|
||||
unsigned first : 14 ;
|
||||
} M_STATESTRUCT ;
|
||||
|
||||
typedef struct {
|
||||
M_STATE start ;
|
||||
M_ANDGROUP next ;
|
||||
} M_ANDSTRUCT ;
|
||||
|
||||
typedef struct {
|
||||
M_ELEMENT element ;
|
||||
int next ;
|
||||
} M_EXCEPTION ;
|
||||
|
||||
|
||||
typedef struct {
|
||||
unsigned label : 15;
|
||||
unsigned optional : 1;
|
||||
int minim ;
|
||||
M_ANDGROUP group ;
|
||||
M_STATE to ;
|
||||
M_ARC next ;
|
||||
} M_ARCSTRUCT ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user