except KeyError: raise PreprocError("could not parse char literal '%s'" % txt)
@Utils.run_once
-def tokenize(s):
- """convert a string into a list of tokens (shlex.split does not apply to c/c++/d)"""
+def tokenize_private(s):
ret = []
for match in re_clexer.finditer(s):
m = match.group
break
return ret
+def tokenize(s):
+ """convert a string into a list of tokens (shlex.split does not apply to c/c++/d)"""
+ return tokenize_private(s)[:]
+
@Utils.run_once
def define_name(line):
return re_mac.match(line).group(0)