2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
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)
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
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
23 /******************************<+>*************************************
24 **********************************************************************
28 ** Project: HP/Motif Workspace Manager (dtwm)
32 ** This file contains function definitions for the corresponding .c
36 **********************************************************************
38 ** (c) Copyright 1987, 1988, 1989, 1990, 1991 HEWLETT-PACKARD COMPANY
39 ** ALL RIGHTS RESERVED
41 **********************************************************************
42 **********************************************************************
45 **********************************************************************
46 ******************************<+>*************************************/
55 typedef struct _DtWmpParseBuf
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 */
66 /******** Public Function Declarations ********/
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,
77 extern DtWmpParseBuf * _DtWmParseNewBuf( void ) ;
78 extern void _DtWmParseDestroyBuf(
79 DtWmpParseBuf *pWmPB) ;
80 extern void _DtWmParseSetLine(
83 extern void _DtWmParseSetFile(
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 (
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
105 extern unsigned char * _DtWmParseMakeQuotedString(
106 unsigned char *pchLine);
107 extern unsigned char * _DtWmParseExpandEnvironmentVariables (
109 unsigned char *pchBrk
111 extern unsigned char * _DtWmParseNextTokenExpand (
114 #endif /* _Dt_WmParse_h */