Small refactoring
This commit is contained in:
parent
f8edb7b6e6
commit
103e0d883c
|
@ -358,12 +358,9 @@ C99_KEYWORDS = {
|
|||
|
||||
|
||||
def isKeyword(keyword, standard='c99'):
|
||||
kw_set = {}
|
||||
if standard == 'c89':
|
||||
kw_set = C90_KEYWORDS
|
||||
elif standard == 'c99':
|
||||
kw_set = C99_KEYWORDS
|
||||
return keyword in kw_set
|
||||
if standard == 'c99':
|
||||
return C99_KEYWORDS
|
||||
return keyword in C90_KEYWORDS
|
||||
|
||||
|
||||
def getEssentialTypeCategory(expr):
|
||||
|
|
Loading…
Reference in New Issue