pike.git/
src/
modules/
Parser/
pike.c
Branch:
Tag:
Non-build tags
All tags
No tags
2017-03-18
2017-03-18 15:21:09 by Martin Nilsson <nilsson@fastmail.com>
a0d3fb6800089689aca37c50fc83ef500a66c926 (
14
lines) (+
4
/-
10
)
[
Show
|
Annotate
]
Branch:
8.1
Use isidchar instead of making our own aproximation.
42:
inline static int m_isidchar( unsigned int x ) {
-
if( (x
>=
'
a
' && x
<=
'
z
')
|| (x>='A' && x<='Z'
)
|| x>128 || x == '_')
-
return
1
;
-
return
0
;
+
if( (x>='
0
' && x<='
9
') ) return
0
;
+
return
isidchar(x)
;
}
-
inline
static int
m_isidchar2(
unsigned int x
)
-
{
-
if
(
(x >= 'a' && x <= 'z'
)
|| (x>='A' && x<='Z') || x>128 || x=='_' ||
-
(x>='0'&&x<='9')||x=='$')
-
return 1;
-
return 0;
-
}
+
#define
m_isidchar2(
X
)
isidchar
(
X
)
#define PUSH_TOKEN push_token0