From 5b60c31c8e07a5201555565099a1c91f74f35672 Mon Sep 17 00:00:00 2001 From: Alexander Shiryaev Date: Mon, 26 Feb 2018 13:22:59 +0300 Subject: [PATCH] dumpdefs.py updated --- BlackBox/_OpenBSD_/Lin/Mod/gen-Libc/dumpdefs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: -- 2.29.2