99860e187a
This still doesn't work and is currently disabled. It would only work for a few filetypes like C, Fortran and JavaScript. The current implementation is still buggy, e.g. function signature parsing is broken. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3184 ea778897-0a13-0410-b9d1-a72fbfd435f5
54 lines
1.4 KiB
C
54 lines
1.4 KiB
C
/*
|
|
* $Id$
|
|
*
|
|
* Copyright (c) 1998-2002, Darren Hiebert
|
|
*
|
|
* 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
|
|
*/
|
|
#include "general.h" /* must always come first */
|
|
|
|
#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.
|
|
*/
|
|
#define isident1(c) (isalpha(c) || (c) == '_' || (c) == '~' || (c) == '$')
|
|
|
|
/*
|
|
* FUNCTION PROTOTYPES
|
|
*/
|
|
extern boolean isBraceFormat (void);
|
|
extern unsigned int getDirectiveNestLevel (void);
|
|
extern void cppInit (const boolean state, const boolean hasAtLiteralStrings);
|
|
extern void cppTerminate (void);
|
|
extern void cppBeginStatement (void);
|
|
extern void cppEndStatement (void);
|
|
extern void cppUngetc (const int c);
|
|
extern int cppGetc (void);
|
|
extern int skipOverCComment (void);
|
|
extern char *getArglistFromFilePos(fpos_t startPosition, const char *tokenName);
|
|
extern char *getArglistFromBufferPos(int startPosition, const char *tokenName);
|
|
extern char *getArglistFromStr(char *buf, const char *name);
|
|
|
|
#endif /* _GET_H */
|
|
|
|
/* vi:set tabstop=4 shiftwidth=4: */
|