summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c040239)
raw | patch | inline | side by side (parent: c040239)
author | Alexander Shiryaev <aixp@mail.ru> | |
Mon, 26 Feb 2018 10:22:59 +0000 (13:22 +0300) | ||
committer | Alexander Shiryaev <aixp@mail.ru> | |
Mon, 26 Feb 2018 10:22:59 +0000 (13:22 +0300) |
BlackBox/_OpenBSD_/Lin/Mod/gen-Libc/dumpdefs.py | patch | blob | history |
diff --git a/BlackBox/_OpenBSD_/Lin/Mod/gen-Libc/dumpdefs.py b/BlackBox/_OpenBSD_/Lin/Mod/gen-Libc/dumpdefs.py
index 22287e180eefe4ea8b71327f37d5dcc803ab95f8..52bd3d6263129ad57646b6ccc0f8ec3fd80bfec5 100755 (executable)
#! /usr/bin/env python2.7
#
-# A. V. Shiryaev, 2012.09
+# A. V. Shiryaev, 2012.09, 2016.11
# simple *.h '#define' macro translator
import sys, re
INDENT = "\t"
-_p1 = re.compile('^# *define\s+([^\s]+)\s+([A-Za-z0-9]+)\s*$')
-_p2 = re.compile('^# *define\s+([^\s]+)\s+([^\s]+)\s+\/\*([^\*]+)\*\/\s*$')
+_p1 = re.compile('^#\s*define\s+([^\s]+)\s+([A-Za-z0-9]+)\s*$')
+_p2 = re.compile('^#\s*define\s+([^\s]+)\s+([^\s]+)\s+\/\*([^\*]+)\*\/\s*$')
def mkset (x):
if x >= 0: