You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-scheme/gauche-gtk/files/gauche-gtk-h2s-cpp.diff

12 lines
472 B

--- a/lib/h2s/parse.scm
+++ b/lib/h2s/parse.scm
@@ -329,6 +329,8 @@
(#/^\}\s*([\w_]+)/ (#f name) (make-enum name (reverse enums))) ; ----->
;; empty line:
(#/^\s*$/ () (loop (read-line) enums))
+ ;; preprocessor directive:
+ (#/^\s*#\s*\w+/ () (loop (read-line) enums))
;;
(test has-comment? (skip-comment line (cut loop <> enums) err-eof)) ; what if?: new_value, /* boring comment*/
(#/\s+([\w_]+),?/ (#f enum)