[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] pdumper d777d1e: Make non-GNU awk happy
From: |
Daniel Colascione |
Subject: |
[Emacs-diffs] pdumper d777d1e: Make non-GNU awk happy |
Date: |
Mon, 19 Feb 2018 19:28:33 -0500 (EST) |
branch: pdumper
commit d777d1eb39fefe2ae7e3059782b5c254100be64c
Author: Daniele Nicolodi <address@hidden>
Commit: Daniel Colascione <address@hidden>
Make non-GNU awk happy
---
src/dmpstruct.awk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/dmpstruct.awk b/src/dmpstruct.awk
index 608c26f..0a22030 100755
--- a/src/dmpstruct.awk
+++ b/src/dmpstruct.awk
@@ -10,10 +10,10 @@ BEGIN {
struct_name = $2
close (tmpfile)
}
-/^(enum|struct|union) [a-zA-Z0-9_]+([\t ]|\/\*.*\*\/)*$/, /^(| )};$/ {
+/^(enum|struct|union) [a-zA-Z0-9_]+([\t ]|\/\*.*\*\/)*$/, /^( )?};$/ {
print $0 > tmpfile
}
-/^(| )};$/ {
+/^( )?};$/ {
if (struct_name != "") {
fflush (tmpfile)
cmd = "../lib-src/make-fingerprint -r " tmpfile
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] pdumper d777d1e: Make non-GNU awk happy,
Daniel Colascione <=