From 2e0366b7a0c2fb95129e52f6b329cbb2c7fe4b79 Mon Sep 17 00:00:00 2001 From: "Roland C. Dowdeswell" Date: Tue, 29 Oct 2019 19:56:45 +0000 Subject: [PATCH] Teach make-proto.pl about #define \-continuation. --- cf/make-proto.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cf/make-proto.pl b/cf/make-proto.pl index 72b3993b8..36a040ce6 100644 --- a/cf/make-proto.pl +++ b/cf/make-proto.pl @@ -95,6 +95,13 @@ while(<>) { } elsif ($doxygen) { $funcdoc .= $_; next; } elsif ($comment) { next; } + # Handle CPP #define's + $define = 1 if /^\s*\#\s*define/; + if ($define) { + $define = 0 if ! /\\$/; + next; + } + if(/^\#if 0/) { $if_0 = 1; }