projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ed62db
)
define '==' as a token
author
aland
<aland>
Thu, 16 Dec 1999 22:44:35 +0000
(22:44 +0000)
committer
aland
<aland>
Thu, 16 Dec 1999 22:44:35 +0000
(22:44 +0000)
src/include/token.h
patch
|
blob
|
history
src/lib/token.c
patch
|
blob
|
history
diff --git
a/src/include/token.h
b/src/include/token.h
index
6ac7910
..
dcdff5a
100644
(file)
--- a/
src/include/token.h
+++ b/
src/include/token.h
@@
-24,7
+24,8
@@
#define T_OP_LT 15
#define T_OP_REG_EQ 16
#define T_OP_REG_NE 17
-#define T_EQEND 18
+#define T_OP_CMP_EQ 18
+#define T_EQEND 19
int getword (char **ptr, char *buf, int buflen);
int gettoken(char **ptr, char *buf, int buflen);
diff --git
a/src/lib/token.c
b/src/lib/token.c
index
6b98592
..
f7c5ca4
100644
(file)
--- a/
src/lib/token.c
+++ b/
src/lib/token.c
@@
-30,6
+30,7
@@
static TOKEN tokens[] = {
{ "+=", T_OP_ADD, },
{ "-=", T_OP_SUB, },
{ ":=", T_OP_SET, },
+ { "==", T_OP_CMP_EQ, },
{ "=", T_OP_EQ, },
{ "!=", T_OP_NE, },
{ ">=", T_OP_GE, },