142 lines
3.1 KiB
C
142 lines
3.1 KiB
C
/*
|
|
* CDE - Common Desktop Environment
|
|
*
|
|
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
*
|
|
* These libraries and programs are free software; you can
|
|
* redistribute them and/or modify them under the terms of the GNU
|
|
* Lesser General Public License as published by the Free Software
|
|
* Foundation; either version 2 of the License, or (at your option)
|
|
* any later version.
|
|
*
|
|
* These libraries and programs are distributed in the hope that
|
|
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
* PURPOSE. See the GNU Lesser General Public License for more
|
|
* details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with these libraries and programs; if not, write
|
|
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
* Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
/* $XConsortium: proto.h /main/3 1995/11/08 10:45:25 rswiston $ */
|
|
/*
|
|
Copyright (c) 1988, 1989 Hewlett-Packard Co.
|
|
*/
|
|
|
|
/* Proto.h contains function prototypes for program ELTDEF. */
|
|
|
|
|
|
void actptrout(ACTION **array, char *name);
|
|
|
|
void addent(void);
|
|
|
|
LOGICAL m_allwhite(const M_WCHAR *string);
|
|
|
|
void closeiffile(LOGICAL flag, FILE *file, int count, char *table, char *proto);
|
|
|
|
void countdown(M_TRIE *parent, int *count);
|
|
|
|
void cvalue(void);
|
|
|
|
|
|
void done(void);
|
|
|
|
void m_dumptrie(FILE *file,
|
|
M_TRIE *xtrie,
|
|
char *extname,
|
|
int *count,
|
|
void (*proc)(M_ENTITY *));
|
|
|
|
void endcode(LOGICAL flag, FILE *file);
|
|
|
|
void endini(void);
|
|
|
|
void endsignon(void);
|
|
|
|
void endstring(void);
|
|
|
|
void entout(char *fname);
|
|
|
|
void enttype(int type);
|
|
|
|
void m_error(char *text);
|
|
|
|
void m_err1(const char *text, const M_WCHAR *arg);
|
|
|
|
void m_mberr1(char *text, const char *arg);
|
|
|
|
void m_err2(const char *text, const M_WCHAR *arg1, const M_WCHAR *arg2);
|
|
|
|
void m_err3(char *text, M_WCHAR *arg1, M_WCHAR *arg2, M_WCHAR *arg3);
|
|
|
|
void m_err5(char *text,
|
|
M_WCHAR *arg1, M_WCHAR *arg2, M_WCHAR *arg3, M_WCHAR *arg4, M_WCHAR *arg5);
|
|
|
|
void m_exit(int status);
|
|
|
|
void m_free(void *block, char *msg);
|
|
|
|
void freechain(void);
|
|
|
|
int getachar(void);
|
|
|
|
int *getaction(ACTION **array);
|
|
|
|
ACTION *getactstruct(void);
|
|
|
|
void getname(int first);
|
|
|
|
int gettoken(int *c, int context);
|
|
|
|
void initialize(void);
|
|
|
|
LOGICAL m_letter(M_WCHAR c);
|
|
|
|
LOGICAL litproc(int delim);
|
|
|
|
void *m_malloc(int size, char *msg);
|
|
|
|
void m_openchk(FILE **ptr, char *name, char *mode);
|
|
|
|
void outpval(M_TRIE *p);
|
|
|
|
void outstring(void);
|
|
|
|
int m_packedlook(M_PTRIE *xptrie, M_WCHAR *name);
|
|
|
|
const M_WCHAR *m_partype(const int par, const M_WCHAR *string);
|
|
|
|
int scan(void);
|
|
|
|
void skiptoend(void);
|
|
|
|
void startcode(int caseno, LOGICAL *flag, FILE *file, char *prefix, char *proto,
|
|
char *formal, char *formtype);
|
|
|
|
void startelement(void);
|
|
|
|
void storecvar(void);
|
|
|
|
void storepname(void);
|
|
|
|
void undodelim(M_WCHAR *delim);
|
|
|
|
void ungetachar(int c);
|
|
|
|
int m_wcupstrcmp(const M_WCHAR *p, const M_WCHAR *q);
|
|
|
|
int m_wcmbupstrcmp(const M_WCHAR *p, const char *q);
|
|
|
|
int m_mbmbupstrcmp(const char *p, const char *q);
|
|
|
|
void value(M_WCHAR *p);
|
|
|
|
void warning(char *text);
|
|
|
|
void warning1(char *text, M_WCHAR *arg);
|
|
|
|
LOGICAL m_whitespace(M_WCHAR c);
|
|
|