2
* $Id: get.h 1653 2007-06-29 15:42:37Z eht16 $
3
* Copyright (c) 1998-2001, Darren Hiebert
4
* Copyright (c) 1998-2002, Darren Hiebert
5
6
* This source code is released for free distribution under the terms of the
6
7
* GNU General Public License.
16
#include "general.h" /* must always come first */
18
#include "ctags.h" /* to define langType */
17
#include "general.h" /* must always come first */
19
#include "ctags.h" /* to define langType */
24
/* Is the character valid as a character of a C identifier?
25
* VMS allows '$' in identifiers.
27
#define isident(c) (isalnum(c) || (c) == '_' || (c) == '$')
29
/* Is the character valid as the first character of a C identifier?
30
* C++ allows '~' in destructors.
31
* VMS allows '$' in identifiers.
33
#define isident1(c) (isalpha(c) || (c) == '_' || (c) == '~' || (c) == '$')
21
36
* FUNCTION PROTOTYPES
23
38
extern boolean isBraceFormat (void);
24
39
extern unsigned int getDirectiveNestLevel (void);
25
extern void cppInit (const boolean state);
40
extern void cppInit (const boolean state, const boolean hasAtLiteralStrings);
26
41
extern void cppTerminate (void);
27
42
extern void cppBeginStatement (void);
28
43
extern void cppEndStatement (void);
29
44
extern void cppUngetc (const int c);
30
45
extern int cppGetc (void);
46
extern int skipOverCComment (void);
31
47
extern char *getArglistFromPos(fpos_t startPosition, const char *tokenName);
32
48
extern char *getArglistFromStr(char *buf, const char *name);
35
/* vi:set tabstop=8 shiftwidth=4: */
52
/* vi:set tabstop=4 shiftwidth=4: */