From: Alexander Shiryaev Date: Mon, 26 Feb 2018 10:22:59 +0000 (+0300) Subject: dumpdefs.py updated X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=5b60c31c8e07a5201555565099a1c91f74f35672;p=bbcp.git dumpdefs.py updated --- diff --git a/BlackBox/_OpenBSD_/Lin/Mod/gen-Libc/dumpdefs.py b/BlackBox/_OpenBSD_/Lin/Mod/gen-Libc/dumpdefs.py index 22287e1..52bd3d6 100755 --- a/BlackBox/_OpenBSD_/Lin/Mod/gen-Libc/dumpdefs.py +++ b/BlackBox/_OpenBSD_/Lin/Mod/gen-Libc/dumpdefs.py @@ -1,14 +1,14 @@ #! /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: