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
24 * $XConsortium: WmParse.h /main/4 1995/11/01 11:46:40 rswiston $
26 /******************************<+>*************************************
27 **********************************************************************
31 ** Project: HP/Motif Workspace Manager (dtwm)
35 ** This file contains function definitions for the corresponding .c
39 **********************************************************************
41 ** (c) Copyright 1987, 1988, 1989, 1990, 1991 HEWLETT-PACKARD COMPANY
42 ** ALL RIGHTS RESERVED
44 **********************************************************************
45 **********************************************************************
48 **********************************************************************
49 ******************************<+>*************************************/
58 typedef struct _DtWmpParseBuf
61 FILE * pFile; /* FILE variable */
62 unsigned char * pchLine; /* ptr to current line */
63 int cLineSize; /* # of bytes in pchLine */
64 unsigned char * pchNext; /* ptr to next char in pchLine */
65 int lineNumber; /* # of current line being parsed */
69 /******** Public Function Declarations ********/
71 extern void _DtWmParseSkipWhitespace(
72 DtWmpParseBuf *pWmPB) ;
73 extern void _DtWmParseSkipWhitespaceC(
74 unsigned char **linePP) ;
75 extern unsigned char * _DtWmParseNextToken (
76 DtWmpParseBuf *pWmPB) ;
77 extern unsigned char * _DtWmParseNextTokenC(
78 unsigned char **linePP,
80 extern DtWmpParseBuf * _DtWmParseNewBuf( void ) ;
81 extern void _DtWmParseDestroyBuf(
82 DtWmpParseBuf *pWmPB) ;
83 extern void _DtWmParseSetLine(
86 extern void _DtWmParseSetFile(
89 extern unsigned char * _DtWmParseNextLine(
90 DtWmpParseBuf *pWmPB) ;
91 extern unsigned char * _DtWmParseCurrentChar(
92 DtWmpParseBuf *pWmPB) ;
93 extern unsigned char * _DtWmParseNextChar(
94 DtWmpParseBuf *pWmPB) ;
95 extern int _DtWmParseLineNumber(
96 DtWmpParseBuf *pWmPB) ;
97 extern void _DtWmParseToLower (
99 extern unsigned int _DtWmParsePeekAhead(
100 unsigned char *currentChar,
101 unsigned int currentLev) ;
102 extern unsigned char * _DtWmParseBackUp (
103 DtWmpParseBuf *pWmPB,
104 unsigned char *pchTok) ;
105 extern unsigned char * _DtWmParseFilenameExpand (
106 unsigned char *pchFilename
108 extern unsigned char * _DtWmParseMakeQuotedString(
109 unsigned char *pchLine);
110 extern unsigned char * _DtWmParseExpandEnvironmentVariables (
112 unsigned char *pchBrk
114 extern unsigned char * _DtWmParseNextTokenExpand (
117 #endif /* _Dt_WmParse_h */