From: Daniel Stenberg Date: Tue, 23 May 2000 10:25:30 +0000 (+0000) Subject: now splits the text into several puts() calls X-Git-Tag: curl-7_1_1~153 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e92a10c36ff22f106677acb7540263b4a300497e;p=thirdparty%2Fcurl.git now splits the text into several puts() calls --- diff --git a/src/mkhelp.pl b/src/mkhelp.pl index 842a42f594..a5877d5afc 100644 --- a/src/mkhelp.pl +++ b/src/mkhelp.pl @@ -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"