X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=build-scripts%2Fcreate_element_defs.pl;h=91ea130d0d17936001cca82b5fe0c7ac4332d59b;hp=2022b746eae8cb55929fbe4c5dab238030be18ec;hb=8bf628c4f976b617d840a64a6e7c2edb5f1d7719;hpb=c2cd20713c13fe24152297e1ac5d049305125f5c diff --git a/build-scripts/create_element_defs.pl b/build-scripts/create_element_defs.pl index 2022b746..91ea130d 100755 --- a/build-scripts/create_element_defs.pl +++ b/build-scripts/create_element_defs.pl @@ -243,12 +243,12 @@ sub print_file_header close FILE; print "\n"; - print "/* ----- $text_auto ----- */\n"; + print "// ------- $text_auto -------\n"; print "\n"; print "#ifndef $filename_def\n"; print "#define $filename_def\n"; print "\n"; - print "/* $comment */\n"; + print "// $comment\n"; print "\n"; } @@ -259,7 +259,7 @@ sub print_file_footer $filename_def =~ s/\./_/; print "\n"; - print "#endif /* $filename_def */\n"; + print "#endif // $filename_def\n"; } sub get_tabs @@ -1074,7 +1074,7 @@ sub get_known_action_definitions chomp; # cut trailing newline # process line with action definition - if (/^\#define ACTION_([A-Z0-9_]+)\s/) + if (/^ ACTION_([A-Z0-9_]+)[, ]/) { $known_action{$1} = 1; @@ -1101,7 +1101,7 @@ sub get_known_special_arg_definitions chomp; # cut trailing newline # process line with special arg definition - if (/^\#define GFX_SPECIAL_ARG_([A-Z0-9_]+)\s/) + if (/^ GFX_SPECIAL_ARG_([A-Z0-9_]+)[, ]/) { if ($1 eq 'CRUMBLED') { @@ -1160,7 +1160,7 @@ sub get_known_font_definitions chomp; # cut trailing newline # process line with font definition - if (/^\#define (FONT_[A-Z0-9_]+)\s/) + if (/^ (FONT_[A-Z0-9_]+)[, ]/) { $known_font{$1} = 1;