2005-11-22 12:26:26 +00:00
|
|
|
/*
|
2007-06-22 17:22:07 +00:00
|
|
|
* $Id$
|
2005-11-22 12:26:26 +00:00
|
|
|
*
|
2007-06-22 17:22:07 +00:00
|
|
|
* Copyright (c) 1998-2002, Darren Hiebert
|
2005-11-22 12:26:26 +00:00
|
|
|
*
|
|
|
|
* This source code is released for free distribution under the terms of the
|
|
|
|
* GNU General Public License.
|
|
|
|
*
|
|
|
|
* External interface to get.c
|
|
|
|
*/
|
|
|
|
#ifndef _GET_H
|
|
|
|
#define _GET_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* INCLUDE FILES
|
|
|
|
*/
|
2007-06-22 17:22:07 +00:00
|
|
|
#include "general.h" /* must always come first */
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2007-05-22 15:31:40 +00:00
|
|
|
#include "ctags.h" /* to define langType */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* MACROS
|
|
|
|
*/
|
|
|
|
/* Is the character valid as a character of a C identifier?
|
|
|
|
* VMS allows '$' in identifiers.
|
|
|
|
*/
|
|
|
|
#define isident(c) (isalnum(c) || (c) == '_' || (c) == '$')
|
|
|
|
|
|
|
|
/* Is the character valid as the first character of a C identifier?
|
|
|
|
* C++ allows '~' in destructors.
|
|
|
|
* VMS allows '$' in identifiers.
|
2008-12-09 19:00:45 +00:00
|
|
|
* Vala allows '@' in identifiers.
|
2007-05-22 15:31:40 +00:00
|
|
|
*/
|
2008-12-09 19:00:45 +00:00
|
|
|
#define isident1(c) (isalpha(c) || (c) == '_' || (c) == '~' || (c) == '$' || (c) == '@')
|
2005-11-22 12:26:26 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* FUNCTION PROTOTYPES
|
|
|
|
*/
|
|
|
|
extern boolean isBraceFormat (void);
|
|
|
|
extern unsigned int getDirectiveNestLevel (void);
|
2007-06-22 17:22:07 +00:00
|
|
|
extern void cppInit (const boolean state, const boolean hasAtLiteralStrings);
|
2005-11-22 12:26:26 +00:00
|
|
|
extern void cppTerminate (void);
|
|
|
|
extern void cppBeginStatement (void);
|
|
|
|
extern void cppEndStatement (void);
|
|
|
|
extern void cppUngetc (const int c);
|
|
|
|
extern int cppGetc (void);
|
2007-06-22 17:22:07 +00:00
|
|
|
extern int skipOverCComment (void);
|
2008-11-07 14:37:17 +00:00
|
|
|
extern char *getArglistFromFilePos(fpos_t startPosition, const char *tokenName);
|
|
|
|
extern char *getArglistFromBufferPos(int startPosition, const char *tokenName);
|
2007-06-29 15:42:37 +00:00
|
|
|
extern char *getArglistFromStr(char *buf, const char *name);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2007-06-22 17:22:07 +00:00
|
|
|
#endif /* _GET_H */
|
|
|
|
|
|
|
|
/* vi:set tabstop=4 shiftwidth=4: */
|