projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b20d0a
)
now splits the text into several puts() calls
author
Daniel Stenberg
<daniel@haxx.se>
Tue, 23 May 2000 10:25:30 +0000
(10:25 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Tue, 23 May 2000 10:25:30 +0000
(10:25 +0000)
src/mkhelp.pl
patch
|
blob
|
history
diff --git
a/src/mkhelp.pl
b/src/mkhelp.pl
index
842a42f
..
a5877d5
100644
(file)
--- 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"