Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
dhcp
Commits
33d7b01a
Commit
33d7b01a
authored
Feb 15, 2000
by
Ted Lemon
Browse files
Add arithmetic operators, function definition keywords and related.
parent
800f0de7
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/conflex.c
View file @
33d7b01a
...
...
@@ -22,7 +22,7 @@
#ifndef lint
static
char
copyright
[]
=
"$Id: conflex.c,v 1.6
6
2000/0
1/26 14:55
:3
3
mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.
\n
"
;
"$Id: conflex.c,v 1.6
7
2000/0
2/15 19:40
:3
4
mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.
\n
"
;
#endif
/* not lint */
#include
"dhcpd.h"
...
...
@@ -453,6 +453,11 @@ static enum dhcp_token intern (atom, dfv)
return
dfv
;
switch
(
tolower
(
atom
[
0
]))
{
case
'-'
:
if
(
atom
[
1
]
==
0
)
return
MINUS
;
break
;
case
'a'
:
if
(
!
strncasecmp
(
atom
+
1
,
"uth"
,
3
))
{
if
(
!
strncasecmp
(
atom
+
3
,
"uthenticat"
,
10
))
{
...
...
@@ -570,8 +575,12 @@ static enum dhcp_token intern (atom, dfv)
return
DUPLICATES
;
if
(
!
strcasecmp
(
atom
+
1
,
"eclines"
))
return
DECLINES
;
if
(
!
strcasecmp
(
atom
+
1
,
"efined"
))
return
DEFINED
;
if
(
!
strncasecmp
(
atom
+
1
,
"efine"
,
5
))
{
if
(
!
strcasecmp
(
atom
+
6
,
"d"
))
return
DEFINED
;
if
(
!
atom
[
6
])
return
DEFINE
;
}
break
;
case
'e'
:
if
(
isascii
(
atom
[
1
])
&&
tolower
(
atom
[
1
])
==
'x'
)
{
...
...
@@ -609,6 +618,8 @@ static enum dhcp_token intern (atom, dfv)
return
FDDI
;
if
(
!
strcasecmp
(
atom
+
1
,
"ormerr"
))
return
NS_FORMERR
;
if
(
!
strcasecmp
(
atom
+
1
,
"unction"
))
return
FUNCTION
;
break
;
case
'g'
:
if
(
!
strcasecmp
(
atom
+
1
,
"iaddr"
))
...
...
@@ -855,6 +866,8 @@ static enum dhcp_token intern (atom, dfv)
return
TOKEN_SET
;
break
;
case
't'
:
if
(
!
strcasecmp
(
atom
+
1
,
"sig-key"
))
return
TSIG_KEY
;
if
(
!
strcasecmp
(
atom
+
1
,
"imestamp"
))
return
TIMESTAMP
;
if
(
!
strcasecmp
(
atom
+
1
,
"imeout"
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment