25c8c6fbc1b49012dcde16119ddb1be663ede442 angie Fri Jun 1 11:43:04 2012 -0700 Refactoring for #6152: there's nothing formatter-specific about annoFormatterOption,so move it out into independent annoOption. diff --git src/inc/annoOption.h src/inc/annoOption.h new file mode 100644 index 0000000..0fc7ca9 --- /dev/null +++ src/inc/annoOption.h @@ -0,0 +1,22 @@ +/* annoOption -- optionSpec-style param plus its value */ + +#ifndef ANNOOPTION_H +#define ANNOOPTION_H + +#include "options.h" + +struct annoOption +/* A named and typed option and its value. */ + { + struct annoOption *next; + struct optionSpec spec; + void *value; + }; + +struct annoOption *annoOptionCloneList(struct annoOption *list); +/* Return a newly allocated copy of list. */ + +void annoOptionFreeList(struct annoOption **pList); +/* Free the same things that we clone above. */ + +#endif//ndef ANNOOPTION_H