From 5c44732fd950e89e3e3a8f7101b6698bdb566323 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Fri, 7 Jan 2022 20:21:50 +0100 Subject: [PATCH] support C99 comments in proxy driver code generator --- src/drv_proxy_gen.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drv_proxy_gen.pl b/src/drv_proxy_gen.pl index de0a3f6..2ae9225 100755 --- a/src/drv_proxy_gen.pl +++ b/src/drv_proxy_gen.pl @@ -77,7 +77,7 @@ while (<$inh>) { } close($inh); -$cont =~ s,\n, ,g; +$cont =~ s,(?://.*)?\n, ,g; $cont =~ s,/\*.*?\*/, ,g; $cont =~ s,\h+, ,g; my @ptypes = map { s,^ ,,r } split(/;/, $cont);