]> Savannah Git Hosting - gnulib.git/commitdiff
declared.sh: Allow parsing 'extern "C"' lines.
authorBruno Haible <bruno@clisp.org>
Sun, 20 Jun 2021 01:20:08 +0000 (03:20 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 20 Jun 2021 01:20:08 +0000 (03:20 +0200)
* build-aux/declared.sh: Don't concatenate lines to an 'extern "C" {'
line.

ChangeLog
build-aux/declared.sh

index a43fcf60c8d6ce723bf795db3ac1b0a003b7d0f4..11a75d6b08518def7426211ef7a3d82847259d28 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2021-06-19  Bruno Haible  <bruno@clisp.org>
+
+       declared.sh: Allow parsing 'extern "C"' lines.
+       * build-aux/declared.sh: Don't concatenate lines to an 'extern "C" {'
+       line.
+
 2021-06-19  Bruno Haible  <bruno@clisp.org>
 
        unitypes: Fix trouble caused by installed older versions of unitypes.h.
index 204e6287ffd2a5af13a23aad3bd6210745fb4998..0d3e70dd8d0b6fcd54ad64d4d1acc83e26eb5087 100755 (executable)
@@ -120,11 +120,11 @@ test "$sed_result" = 'aaa' \
 # A sed expression that joins 'extern' declarations that are broken over
 # several lines.
 sed_join_multiline_externs='
-/^extern [^;]*$/{
+/^extern [^;"]*$/{
   :a
   N
   s/\n/ /g
-  /^extern [^;]*$/{
+  /^extern [^;"]*$/{
     ba
   }
 }'