on master help sign in
Remove unused msg parameter
commitf1f9b8b9670295925f506b236f68abd39ed9ba98 authorNeil Mitchell <ndmitchell@gmail.com> dateWed 30 Nov 2016, 19:08 (10 years ago) parent226e10b
1 file changed+8−8
cbits/hexml.c+8−8
cbits/hexml.c+8−8
@@ -85,21 +85,21 @@ static inline void render_char(render* r, char c)
8585 r->cursor++;
8686}
8787
88−static inline void bound(const char* msg, int index, int mn, int mx)
88+static inline void bound(int index, int mn, int mx)
8989{
9090 assert(index >= mn && index <= mx);
9191}
9292
93−static inline void bound_str(const char* msg, str s, int mn, int mx)
93+static inline void bound_str(str s, int mn, int mx)
9494{
9595 assert(s.length >= 0);
96− bound(msg, s.start, mn, mx);
97− bound(msg, end(s), mn, mx);
96+ bound(s.start, mn, mx);
97+ bound(end(s), mn, mx);
9898}
9999
100100void render_str(render* r, str s)
101101{
102− bound_str("render_str", s, 0, doc_length(r->d));
102+ bound_str(s, 0, doc_length(r->d));
103103 for (int i = 0; i < s.length; i++)
104104 render_char(r, r->d->body[s.start + i]);
105105}
@@ -108,9 +108,9 @@ void render_tag(render* r, const node* n);
108108
109109void render_content(render* r, const node* n)
110110{
111− bound_str("render_conent inner", n->inner, 0, doc_length(r->d));
112− bound_str("render_conent nodes", n->nodes, 0, r->d->nodes.used_front);
113− bound_str("render_conent attrs", n->attrs, 0, r->d->attrs.used);
111+ bound_str(n->inner, 0, doc_length(r->d));
112+ bound_str(n->nodes, 0, r->d->nodes.used_front);
113+ bound_str(n->attrs, 0, r->d->attrs.used);
114114
115115 int done = n->inner.start;
116116 for (int i = 0; i < n->nodes.length; i++)