From 914157804f96d04697712d16c76328e1a8c0d589 Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Thu, 26 Nov 2015 15:49:14 +0100 Subject: [PATCH] os400: do not miss some external prototypes Build procedure extproto() did not strip braces from header files, thus possibly prepended them to true prototypes. This prevented the prototype to be recognized as such. The solution implemented here is to map braces to semicolons, effectively considering them as potential prototype delimiters. --- os400/make-src.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os400/make-src.sh b/os400/make-src.sh index ef1b999b..dd7d364e 100644 --- a/os400/make-src.sh +++ b/os400/make-src.sh @@ -20,7 +20,7 @@ extproto() -e '/\/\*/!{' \ -e '/^#/{s/^.*[^\\]$//;h;d' \ -e '}' \ - -e 's/\\$//' \ + -e 's/[{}]/;/g;s/\\$//' \ -e ':loop1' \ -e '/;/{' \ -e 's/^[^;]*;//;x;s/;.*//' \