Skip to content
Snippets Groups Projects
Commit e92a10c3 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

now splits the text into several puts() calls

parent 9b20d0a4
No related branches found
No related tags found
No related merge requests found
......@@ -69,16 +69,25 @@ print "void hugehelp(void)\n";
print "{\n";
print "puts (\n";
$outsize=0;
for(@out) {
chop;
$new = $_;
$outsize += length($new);
$new =~ s/\\/\\\\/g;
$new =~ s/\"/\\\"/g;
printf("\"%s\\n\"\n", $new);
if($outsize > 10000) {
# terminate and make another puts() call here
print ");\n puts(\n";
$outsize=0;
}
}
print " ) ;\n}\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment