Kaydet (Commit) 614ae5c2 authored tarafından Nick Treleaven's avatar Nick Treleaven

Move C-only isident(), isident1() functions to get.h.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1557 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 3b2ef62d
2007-05-22 Nick Treleaven <nick.treleaven@btinternet.com>
* tagmanager/read.c, tagmanager/read.h, tagmanager/get.h:
Move C-only isident(), isident1() functions to get.h.
2007-05-21 Enrico Tröger <enrico.troeger@uvena.de>
* NEWS, geany_private.rc, win32-config.h, doc/geany.1.in,
......
......@@ -15,7 +15,21 @@
*/
#include "general.h" /* must always come first */
#include "ctags.h" /* to define langType */
#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
......
......@@ -45,21 +45,6 @@ extern void freeSourceFileResources (void)
* Source file access functions
*/
boolean isident(int c)
{
return (boolean) (((c >= 'A') && (c <= 'Z')) ||
((c >= 'a') && (c <= 'z')) ||
((c >= '0') && (c <= '9')) ||
(c == '_') || (c == '$'));
}
boolean isident1(int c)
{
return (boolean) (((c >= 'A') && (c <= 'Z')) ||
((c >= 'a') && (c <= 'z')) ||
(c == '_') || (c == '~') || (c == '$'));
}
static void setInputFileName (const char *const fileName)
{
const char *const head = fileName;
......
......@@ -41,14 +41,6 @@
#define isLanguage(lang) (boolean)((lang) == File.source.language)
#define isHeaderFile() File.source.isHeader
/* Is the character valid as a character of a C identifier?
*/
boolean isident(int c);
/* Is the character valid as the first character of a C identifier?
*/
boolean isident1(int c);
/*
* DATA DECLARATIONS
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment