on master help sign in
Clean up some debug gunk
39cf897Neil Mitchell
cbits/hexml.c+1−3
@@ -89,7 +89,7 @@ void static inline bound(char* msg, int index, int mn, int mx)
89{
89{
90 if (index < mn || index > mx)
90 if (index < mn || index > mx)
91 {
91 {
92− printf("Bounds checking failed %s, got %i, which should be in %i:%i\n", msg, index, mn, mx);
92+ //printf("Bounds checking failed %s, got %i, which should be in %i:%i\n", msg, index, mn, mx);
93 assert(0);
93 assert(0);
94 }
94 }
95}
95}
@@ -104,10 +104,8 @@ void static inline bound_str(char* msg, str s, int mn, int mx)
104void render_str(render* r, str s)
104void render_str(render* r, str s)
105{
105{
106 bound_str("render_str", s, 0, doc_length(r->d));
106 bound_str("render_str", s, 0, doc_length(r->d));
107− render_char(r, '[');
108 for (int i = 0; i < s.length; i++)
107 for (int i = 0; i < s.length; i++)
109 render_char(r, r->d->body[s.start + i]);
108 render_char(r, r->d->body[s.start + i]);
110− render_char(r, ']');
111}
109}
112
110
113void render_tag(render* r, node* n);
111void render_tag(render* r, node* n);