Undeprecate the array_list, lh_table and printbuf typedefs, but move each to the corresponding header files.

This commit is contained in:
Eric Haszlakiewicz
2017-12-06 23:56:23 -05:00
parent 8c82f0e5c3
commit d582d3ae5a
4 changed files with 4 additions and 15 deletions

View File

@@ -33,6 +33,7 @@ struct array_list
size_t size;
array_list_free_fn *free_fn;
};
typedef struct array_list array_list;
extern struct array_list*
array_list_new(array_list_free_fn *free_fn);

View File

@@ -35,6 +35,7 @@
#include <stddef.h>
#include "json_inttypes.h"
#include "printbuf.h"
#ifdef __cplusplus
extern "C" {
@@ -145,21 +146,6 @@ struct json_object_iter
};
typedef struct json_object_iter json_object_iter;
/* forward structure definitions */
/**
* @deprecated Unused in json-c sources
*/
typedef struct printbuf printbuf;
/**
* @deprecated Unused in json-c sources
*/
typedef struct lh_table lh_table;
/**
* @deprecated Unused in json-c sources
*/
typedef struct array_list array_list;
typedef int json_bool;
/**

View File

@@ -139,6 +139,7 @@ struct lh_table {
lh_hash_fn *hash_fn;
lh_equal_fn *equal_fn;
};
typedef struct lh_table lh_table;
/**

View File

@@ -32,6 +32,7 @@ struct printbuf {
int bpos;
int size;
};
typedef struct printbuf printbuf;
extern struct printbuf*
printbuf_new(void);