Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dtwm / WmParse.h
1 /*
2  * $XConsortium: WmParse.h /main/4 1995/11/01 11:46:40 rswiston $
3  */
4 /******************************<+>*************************************
5  **********************************************************************
6  **
7  **  File:        WmParse.h
8  **
9  **  Project:     HP/Motif Workspace Manager (dtwm)
10  **
11  **  Description:
12  **  -----------
13  **  This file contains function definitions for the corresponding .c
14  **  file
15  **
16  **
17  **********************************************************************
18  **
19  ** (c) Copyright 1987, 1988, 1989, 1990, 1991 HEWLETT-PACKARD COMPANY
20  ** ALL RIGHTS RESERVED
21  **
22  **********************************************************************
23  **********************************************************************
24  **
25  **
26  **********************************************************************
27  ******************************<+>*************************************/
28 #ifndef _Dt_WmParse_h
29 #define _Dt_WmParse_h
30 #include <stdio.h>
31 #include <string.h>
32
33 /*
34  * Definitions
35  */
36 typedef struct _DtWmpParseBuf
37 {
38
39     FILE *              pFile;          /* FILE variable */
40     unsigned char *     pchLine;        /* ptr to current line */
41     int                 cLineSize;      /* # of bytes in pchLine */
42     unsigned char *     pchNext;        /* ptr to next char in pchLine */
43     int                 lineNumber;     /* # of current line being parsed */
44
45 } DtWmpParseBuf;
46
47 /********    Public Function Declarations    ********/
48
49 extern void _DtWmParseSkipWhitespace( 
50                         DtWmpParseBuf *pWmPB) ;
51 extern void _DtWmParseSkipWhitespaceC( 
52                         unsigned char **linePP) ;
53 extern unsigned char * _DtWmParseNextToken (
54                         DtWmpParseBuf *pWmPB) ;
55 extern unsigned char * _DtWmParseNextTokenC( 
56                         unsigned char **linePP, 
57                         Boolean SmBehavior) ;
58 extern DtWmpParseBuf * _DtWmParseNewBuf( void ) ;
59 extern void _DtWmParseDestroyBuf( 
60                         DtWmpParseBuf *pWmPB) ;
61 extern void _DtWmParseSetLine( 
62                         DtWmpParseBuf *pWmPB,
63                         unsigned char *pch) ;
64 extern void _DtWmParseSetFile( 
65                         DtWmpParseBuf *pWmPB,
66                         FILE *pFile) ;
67 extern unsigned char * _DtWmParseNextLine( 
68                         DtWmpParseBuf *pWmPB) ;
69 extern unsigned char * _DtWmParseCurrentChar( 
70                         DtWmpParseBuf *pWmPB) ;
71 extern unsigned char * _DtWmParseNextChar( 
72                         DtWmpParseBuf *pWmPB) ;
73 extern int _DtWmParseLineNumber( 
74                         DtWmpParseBuf *pWmPB) ;
75 extern void _DtWmParseToLower (
76                         unsigned char  *string);
77 extern unsigned int _DtWmParsePeekAhead(
78                         unsigned char *currentChar,
79                         unsigned int currentLev) ;
80 extern unsigned char * _DtWmParseBackUp ( 
81                         DtWmpParseBuf *pWmPB, 
82                         unsigned char *pchTok) ;
83 extern unsigned char * _DtWmParseFilenameExpand (
84                         unsigned char *pchFilename
85                         );
86 extern unsigned char * _DtWmParseMakeQuotedString(
87                         unsigned char *pchLine);
88 extern unsigned char * _DtWmParseExpandEnvironmentVariables (
89                         unsigned char *pch,
90                         unsigned char *pchBrk
91                         );
92 extern unsigned char * _DtWmParseNextTokenExpand (
93                         DtWmpParseBuf *pWmPB 
94                         );
95 #endif  /* _Dt_WmParse_h */