Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make_preload: Don't output a C comment start inside a comment

We already avoid outputting a comment terminator ("*/") inside
a comment to avoid causing a syntax error. Also avoid outputting
the start of a comment ("/*") to avoid causing a compiler warning.

Noticed-by: Tuncer Ayaz
  • Loading branch information...
commit ae8d8e89a2938a0f93c1597ea89a53df78ba7054 1 parent 2dffccb
@bjorng authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  erts/emulator/utils/make_preload
View
1  erts/emulator/utils/make_preload
@@ -88,6 +88,7 @@ foreach $file (@ARGV) {
print "unsigned char preloaded_$module", "[] = {\n";
for ($i = 0; $i < length($_); $i++) {
if ($i % 8 == 0 && $comment ne '') {
+ $comment =~ s@/\*@..@g; # Comment start -- avoid warning.
$comment =~ s@\*/@..@g; # Comment terminator.
print " /* $comment */\n ";
$comment = '';
Please sign in to comment.
Something went wrong with that request. Please try again.