Use C++ linker
[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 librararies 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  * $XConsortium: WmParse.h /main/4 1995/11/01 11:46:40 rswiston $
25  */
26 /******************************<+>*************************************
27  **********************************************************************
28  **
29  **  File:        WmParse.h
30  **
31  **  Project:     HP/Motif Workspace Manager (dtwm)
32  **
33  **  Description:
34  **  -----------
35  **  This file contains function definitions for the corresponding .c
36  **  file
37  **
38  **
39  **********************************************************************
40  **
41  ** (c) Copyright 1987, 1988, 1989, 1990, 1991 HEWLETT-PACKARD COMPANY
42  ** ALL RIGHTS RESERVED
43  **
44  **********************************************************************
45  **********************************************************************
46  **
47  **
48  **********************************************************************
49  ******************************<+>*************************************/
50 #ifndef _Dt_WmParse_h
51 #define _Dt_WmParse_h
52 #include <stdio.h>
53 #include <string.h>
54
55 /*
56  * Definitions
57  */
58 typedef struct _DtWmpParseBuf
59 {
60
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 */
66
67 } DtWmpParseBuf;
68
69 /********    Public Function Declarations    ********/
70
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, 
79                         Boolean SmBehavior) ;
80 extern DtWmpParseBuf * _DtWmParseNewBuf( void ) ;
81 extern void _DtWmParseDestroyBuf( 
82                         DtWmpParseBuf *pWmPB) ;
83 extern void _DtWmParseSetLine( 
84                         DtWmpParseBuf *pWmPB,
85                         unsigned char *pch) ;
86 extern void _DtWmParseSetFile( 
87                         DtWmpParseBuf *pWmPB,
88                         FILE *pFile) ;
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 (
98                         unsigned char  *string);
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
107                         );
108 extern unsigned char * _DtWmParseMakeQuotedString(
109                         unsigned char *pchLine);
110 extern unsigned char * _DtWmParseExpandEnvironmentVariables (
111                         unsigned char *pch,
112                         unsigned char *pchBrk
113                         );
114 extern unsigned char * _DtWmParseNextTokenExpand (
115                         DtWmpParseBuf *pWmPB 
116                         );
117 #endif  /* _Dt_WmParse_h */