dtwm: Change to ANSI function definitions
[oweals/cde.git] / cde / programs / dtwm / WmParse.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these libraries and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /******************************<+>*************************************
24  **********************************************************************
25  **
26  **  File:        WmParse.h
27  **
28  **  Project:     HP/Motif Workspace Manager (dtwm)
29  **
30  **  Description:
31  **  -----------
32  **  This file contains function definitions for the corresponding .c
33  **  file
34  **
35  **
36  **********************************************************************
37  **
38  ** (c) Copyright 1987, 1988, 1989, 1990, 1991 HEWLETT-PACKARD COMPANY
39  ** ALL RIGHTS RESERVED
40  **
41  **********************************************************************
42  **********************************************************************
43  **
44  **
45  **********************************************************************
46  ******************************<+>*************************************/
47 #ifndef _Dt_WmParse_h
48 #define _Dt_WmParse_h
49 #include <stdio.h>
50 #include <string.h>
51
52 /*
53  * Definitions
54  */
55 typedef struct _DtWmpParseBuf
56 {
57
58     FILE *              pFile;          /* FILE variable */
59     unsigned char *     pchLine;        /* ptr to current line */
60     int                 cLineSize;      /* # of bytes in pchLine */
61     unsigned char *     pchNext;        /* ptr to next char in pchLine */
62     int                 lineNumber;     /* # of current line being parsed */
63
64 } DtWmpParseBuf;
65
66 /********    Public Function Declarations    ********/
67
68 extern void _DtWmParseSkipWhitespace( 
69                         DtWmpParseBuf *pWmPB) ;
70 extern void _DtWmParseSkipWhitespaceC( 
71                         unsigned char **linePP) ;
72 extern unsigned char * _DtWmParseNextToken (
73                         DtWmpParseBuf *pWmPB) ;
74 extern unsigned char * _DtWmParseNextTokenC( 
75                         unsigned char **linePP, 
76                         Boolean SmBehavior) ;
77 extern DtWmpParseBuf * _DtWmParseNewBuf( void ) ;
78 extern void _DtWmParseDestroyBuf( 
79                         DtWmpParseBuf *pWmPB) ;
80 extern void _DtWmParseSetLine( 
81                         DtWmpParseBuf *pWmPB,
82                         unsigned char *pch) ;
83 extern void _DtWmParseSetFile( 
84                         DtWmpParseBuf *pWmPB,
85                         FILE *pFile) ;
86 extern unsigned char * _DtWmParseNextLine( 
87                         DtWmpParseBuf *pWmPB) ;
88 extern unsigned char * _DtWmParseCurrentChar( 
89                         DtWmpParseBuf *pWmPB) ;
90 extern unsigned char * _DtWmParseNextChar( 
91                         DtWmpParseBuf *pWmPB) ;
92 extern int _DtWmParseLineNumber( 
93                         DtWmpParseBuf *pWmPB) ;
94 extern void _DtWmParseToLower (
95                         char  *string);
96 extern unsigned int _DtWmParsePeekAhead(
97                         unsigned char *currentChar,
98                         unsigned int currentLev) ;
99 extern unsigned char * _DtWmParseBackUp ( 
100                         DtWmpParseBuf *pWmPB, 
101                         unsigned char *pchTok) ;
102 extern unsigned char * _DtWmParseFilenameExpand (
103                         unsigned char *pchFilename
104                         );
105 extern unsigned char * _DtWmParseMakeQuotedString(
106                         unsigned char *pchLine);
107 extern unsigned char * _DtWmParseExpandEnvironmentVariables (
108                         unsigned char *pch,
109                         unsigned char *pchBrk
110                         );
111 extern unsigned char * _DtWmParseNextTokenExpand (
112                         DtWmpParseBuf *pWmPB 
113                         );
114 #endif  /* _Dt_WmParse_h */