mirror of
https://github.com/curl/curl.git
synced 2026-07-23 17:07:16 +03:00
now splits the text into several puts() calls
This commit is contained in:
parent
9b20d0a47f
commit
e92a10c36f
1 changed files with 9 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue