Home | History | Annotate | Download | only in gas

Lines Matching refs:sb

0 /* sb.c - string buffer manipulation routines
25 #include "sb.h"
36 They are managed in things called `sb's which is an abbreviation
37 for string buffers. An sb has to be created, things can be glued
55 static void sb_check (sb *, size_t);
57 /* Initializes an sb. */
60 sb_build (sb *ptr, size_t size)
68 sb_new (sb *ptr)
73 /* Deallocate the sb at ptr. */
76 sb_kill (sb *ptr)
81 /* Add the sb at s to the end of the sb at ptr. */
84 sb_add_sb (sb *ptr, sb *s)
93 static sb *sb_to_scrub;
107 /* Run the sb at s through do_scrub_chars and add the result to the sb
111 sb_scrub_and_add_sb (sb *ptr, sb *s)
123 /* Make sure that the sb at ptr has room for another len characters,
127 sb_check (sb *ptr, size_t len)
154 /* Make the sb at ptr point back to the beginning. */
157 sb_reset (sb *ptr)
162 /* Add character c to the end of the sb at ptr. */
165 sb_add_char (sb *ptr, size_t c)
171 /* Add null terminated string s to the end of sb at ptr. */
174 sb_add_string (sb *ptr, const char *s)
182 /* Add string at s of length len to sb at ptr */
185 sb_add_buffer (sb *ptr, const char *s, size_t len)
195 sb_terminate (sb *in)
201 /* Start at the index idx into the string in sb at ptr and skip
205 sb_skip_white (size_t idx, sb *ptr)
214 /* Start at the index idx into the sb at ptr. skips whitespace,
219 sb_skip_comma (size_t idx, sb *ptr)