Commit 000757fd authored by Matthias Braun's avatar Matthias Braun
Browse files

remove unused declarations from header

[r27560]
parent b283f49a
......@@ -34,25 +34,6 @@
/* forward definition */
struct obstack;
/**
* Something that can append strings and chars to something.
*/
typedef struct _appender_t {
void (*init)(void *object, size_t n);
void (*append_char)(void *object, size_t n, char ch);
void (*append_str)(void *object, size_t n, const char *str);
} appender_t;
/**
* A callback function type to add something to an appender.
*
* @param app The appender.
* @param object The object for the appender.
* @param limit The limit for the appender.
* @param arg The thing to append.
*/
typedef void (ir_printf_cb_t)(const appender_t *app, void *object, size_t limit, const void *arg);
/**
* A string formatting routine for ir objects.
*
......@@ -96,25 +77,6 @@ typedef void (ir_printf_cb_t)(const appender_t *app, void *object, size_t limit,
* @endcode
* The @c it_pset is an iterator interface (of type
* @c iterator_t that allows the dumper to traverse the set.
*
* As special case when working with collections, you can also give a
* callback function which will be invoked on each element in the
* collection. It gets the appender (the thing where the textual
* representation of the element is written to) and its parameters
* passed by the dumping function. Suppose you have your own data type
* @c xyz_t and want to dump a pset of it, you have:
* @code
* void xyz_dump(const appender_t *app, void *object, size_t limit,
* const void *arg)
* {
* const xyz_t *xyz = arg;
* app->append_str(object, limit, xyz->name);
* }
* ...
* pset *xyzs;
*
* ir_printf("A set of xyz\'s: %*C\n", it_pset, xyzs, xyz_dump);
* @endcode
*/
void ir_printf(const char *fmt, ...);
......
Supports Markdown
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