Skip to content

Commit

Permalink
os400: do not miss some external prototypes
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Patrick Monnerat authored and bagder committed Jan 18, 2016
1 parent 4c4d6a8 commit 9141578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion os400/make-src.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ extproto()
-e '/\/\*/!{' \
-e '/^#/{s/^.*[^\\]$//;h;d' \
-e '}' \
-e 's/\\$//' \
-e 's/[{}]/;/g;s/\\$//' \
-e ':loop1' \
-e '/;/{' \
-e 's/^[^;]*;//;x;s/;.*//' \
Expand Down

0 comments on commit 9141578

Please sign in to comment.