Move YAJL_API to front of declarations.

This commit is contained in:
Andrew Johnson
2012-04-27 13:21:31 -04:00
committed by Michael Davidsaver
parent 625a7adc69
commit 359fc1b69e
2 changed files with 18 additions and 18 deletions
+14 -14
View File
@@ -83,38 +83,38 @@ extern "C" {
*
* \returns an allocated handle on success, NULL on failure (bad params)
*/
yajl_gen YAJL_API yajl_gen_alloc(const yajl_gen_config * config,
YAJL_API yajl_gen yajl_gen_alloc(const yajl_gen_config * config,
const yajl_alloc_funcs * allocFuncs);
/** free a generator handle */
void YAJL_API yajl_gen_free(yajl_gen handle);
YAJL_API void yajl_gen_free(yajl_gen handle);
yajl_gen_status YAJL_API yajl_gen_integer(yajl_gen hand, long int number);
yajl_gen_status YAJL_API yajl_gen_double(yajl_gen hand, double number);
yajl_gen_status YAJL_API yajl_gen_number(yajl_gen hand,
YAJL_API yajl_gen_status yajl_gen_integer(yajl_gen hand, long int number);
YAJL_API yajl_gen_status yajl_gen_double(yajl_gen hand, double number);
YAJL_API yajl_gen_status yajl_gen_number(yajl_gen hand,
const char * num,
unsigned int len);
yajl_gen_status YAJL_API yajl_gen_string(yajl_gen hand,
YAJL_API yajl_gen_status yajl_gen_string(yajl_gen hand,
const unsigned char * str,
unsigned int len);
yajl_gen_status YAJL_API yajl_gen_null(yajl_gen hand);
yajl_gen_status YAJL_API yajl_gen_bool(yajl_gen hand, int boolean);
yajl_gen_status YAJL_API yajl_gen_map_open(yajl_gen hand);
yajl_gen_status YAJL_API yajl_gen_map_close(yajl_gen hand);
yajl_gen_status YAJL_API yajl_gen_array_open(yajl_gen hand);
yajl_gen_status YAJL_API yajl_gen_array_close(yajl_gen hand);
YAJL_API yajl_gen_status yajl_gen_null(yajl_gen hand);
YAJL_API yajl_gen_status yajl_gen_bool(yajl_gen hand, int boolean);
YAJL_API yajl_gen_status yajl_gen_map_open(yajl_gen hand);
YAJL_API yajl_gen_status yajl_gen_map_close(yajl_gen hand);
YAJL_API yajl_gen_status yajl_gen_array_open(yajl_gen hand);
YAJL_API yajl_gen_status yajl_gen_array_close(yajl_gen hand);
/** access the null terminated generator buffer. If incrementally
* outputing JSON, one should call yajl_gen_clear to clear the
* buffer. This allows stream generation. */
yajl_gen_status YAJL_API yajl_gen_get_buf(yajl_gen hand,
YAJL_API yajl_gen_status yajl_gen_get_buf(yajl_gen hand,
const unsigned char ** buf,
unsigned int * len);
/** clear yajl's output buffer, but maintain all internal generation
* state. This function will not "reset" the generator state, and is
* intended to enable incremental JSON outputing. */
void YAJL_API yajl_gen_clear(yajl_gen hand);
YAJL_API void yajl_gen_clear(yajl_gen hand);
#ifdef __cplusplus
}
+4 -4
View File
@@ -127,20 +127,20 @@ extern "C" {
* \param config configuration parameters for the parse.
* \param ctx a context pointer that will be passed to callbacks.
*/
yajl_handle YAJL_API yajl_alloc(const yajl_callbacks * callbacks,
YAJL_API yajl_handle yajl_alloc(const yajl_callbacks * callbacks,
const yajl_parser_config * config,
const yajl_alloc_funcs * allocFuncs,
void * ctx);
/** free a parser handle */
void YAJL_API yajl_free(yajl_handle handle);
YAJL_API void yajl_free(yajl_handle handle);
/** Parse some json!
* \param hand - a handle to the json parser allocated with yajl_alloc
* \param jsonText - a pointer to the UTF8 json text to be parsed
* \param jsonTextLength - the length, in bytes, of input text
*/
yajl_status YAJL_API yajl_parse(yajl_handle hand,
YAJL_API yajl_status yajl_parse(yajl_handle hand,
const unsigned char * jsonText,
unsigned int jsonTextLength);
@@ -170,7 +170,7 @@ extern "C" {
unsigned int jsonTextLength);
/** free an error returned from yajl_get_error */
void YAJL_API yajl_free_error(yajl_handle hand, unsigned char * str);
YAJL_API void yajl_free_error(yajl_handle hand, unsigned char * str);
#ifdef __cplusplus
}