X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=BlackBox%2F_OpenBSD_%2FLin%2FMod%2Fgen-Libc%2Fdumpdefs.py;h=52bd3d6263129ad57646b6ccc0f8ec3fd80bfec5;hb=5b60c31c8e07a5201555565099a1c91f74f35672;hp=500bac5c4436a72e6d127588f25ab1eee42a58c5;hpb=9a2b37ab5fec7ceee3e62651c14ef85e5d86542f;p=bbcp.git diff --git a/BlackBox/_OpenBSD_/Lin/Mod/gen-Libc/dumpdefs.py b/BlackBox/_OpenBSD_/Lin/Mod/gen-Libc/dumpdefs.py index 500bac5..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: