From b68672eba4849628a58dfdddbb5ffa42e05db024 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Wed, 21 Feb 2024 12:28:34 -0700 Subject: Fix plugin interface generation erros --- harness/include/plugin.h | 2 +- harness/tools/genintf.pl | 9 ++++----- package.yaml | 2 ++ 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/harness/include/plugin.h b/harness/include/plugin.h index feac626..d47abb2 100644 --- a/harness/include/plugin.h +++ b/harness/include/plugin.h @@ -19,7 +19,7 @@ #define EXPORT_INCLUDE(a) EXPORT_INCLUDE() -EXPORT_INCLUDE() +EXPORT_INCLUDE() #define MAX_QUEUED_ACTIONS 8 diff --git a/harness/tools/genintf.pl b/harness/tools/genintf.pl index d446d83..12d525d 100644 --- a/harness/tools/genintf.pl +++ b/harness/tools/genintf.pl @@ -20,7 +20,9 @@ while () { next; } - if (/^\s*EXPORT/) { + if (/^\s*EXPORT_INCLUDE\((.*)\)/) { + print "#include $1\n"; + } elsif (/^\s*EXPORT/) { my $line = "$_"; while (not ($line =~ /;$/)) { my $nextline = ; @@ -28,10 +30,7 @@ while () { $line="$line$nextline"; } - - if ($line =~ /^\s*EXPORT_INCLUDE\((.*)\)/s) { - print "#include $1\n"; - } elsif ($line =~ /^\s*EXPORT\(\s*((?:\w|\s*\*\s*)+)\s*\(\*(\w+)\)\s*\((.*)\)\);/s) { + if ($line =~ /^\s*EXPORT\(\s*((?:\w|\s*\*\s*)+)\s*\(\*(\w+)\)\s*\((.*)\)\);/s) { print "$comment"; print "$1 $2($3);\n\n"; $comment=""; diff --git a/package.yaml b/package.yaml index ba0b9d3..7a1bbc2 100644 --- a/package.yaml +++ b/package.yaml @@ -64,6 +64,8 @@ executables: - -shared - -Iharness/build/ - -Iharness/include/ + - -Iwlroots/include + - -DWLR_USE_UNSTABLE tests: wetterhorn-test: -- cgit