Commit 45b52c1d authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Break the encoded .h files up at convenient newlines, to avoid minor

edits to bases from generating huge diffs.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3339 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 5492c180
...@@ -127,15 +127,15 @@ typedef void vcl_fini_f(struct cli *); ...@@ -127,15 +127,15 @@ typedef void vcl_fini_f(struct cli *);
typedef int vcl_func_f(struct sess *sp); typedef int vcl_func_f(struct sess *sp);
} }
puts $fo "struct VCL_conf {" puts $fo "struct VCL_conf {"
puts $fo { unsigned magic; puts $fo { unsigned magic;
#define VCL_CONF_MAGIC 0x7406c509 /* from /dev/random */ #define VCL_CONF_MAGIC 0x7406c509 /* from /dev/random */
struct director **director; struct director **director;
unsigned ndirector; unsigned ndirector;
struct vrt_ref *ref; struct vrt_ref *ref;
unsigned nref; unsigned nref;
unsigned busy; unsigned busy;
unsigned discard; unsigned discard;
unsigned nsrc; unsigned nsrc;
const char **srcname; const char **srcname;
...@@ -143,8 +143,8 @@ puts $fo { unsigned magic; ...@@ -143,8 +143,8 @@ puts $fo { unsigned magic;
unsigned nhashcount; unsigned nhashcount;
vcl_init_f *init_func; vcl_init_f *init_func;
vcl_fini_f *fini_func; vcl_fini_f *fini_func;
} }
foreach m $methods { foreach m $methods {
puts $fo "\tvcl_func_f\t*[lindex $m 0]_func;" puts $fo "\tvcl_func_f\t*[lindex $m 0]_func;"
...@@ -376,7 +376,7 @@ proc copy_include {n} { ...@@ -376,7 +376,7 @@ proc copy_include {n} {
} }
puts -nonewline $fo "\\n" puts -nonewline $fo "\\n"
incr n 2 incr n 2
if {$n > 53} { if {$n > 30} {
puts $fo "\");" puts $fo "\");"
set n 0 set n 0
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment