+
+void
+bput_attr_separator(struct fastbuf *b)
+{
+ if (hdr_sep >= 0)
+ bputc(b, hdr_sep);
+}
+
+void
+obj_write(struct fastbuf *f, struct odes *d)
+{
+ for(struct oattr *a=d->attrs; a; a=a->next)
+ for(struct oattr *b=a; b; b=b->same)
+ {
+ byte *z;
+ for (z = b->val; *z; z++)
+ if (*z < ' ' && *z != '\t')
+ {
+ log(L_ERROR, "obj_dump: Found non-ASCII characters (URL might be %s)", obj_find_aval(d, 'U'));
+ *z = '?';
+ }
+ ASSERT(z - b->val <= MAX_ATTR_SIZE-2);
+ bput_attr_str(f, a->attr, b->val);
+ }
+}
+
+void
+obj_write_nocheck(struct fastbuf *f, struct odes *d)
+{
+ for(struct oattr *a=d->attrs; a; a=a->next)
+ for(struct oattr *b=a; b; b=b->same)
+ bput_attr_str(f, a->attr, b->val);
+}