Skip to content

Commit

Permalink
Undeprecate the array_list, lh_table and printbuf typedefs, but move …
Browse files Browse the repository at this point in the history
…each to the corresponding header files.
  • Loading branch information
hawicz committed Dec 7, 2017
1 parent 8c82f0e commit d582d3a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 15 deletions.
1 change: 1 addition & 0 deletions arraylist.h
Expand Up @@ -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);
Expand Down
16 changes: 1 addition & 15 deletions json_object.h
Expand Up @@ -35,6 +35,7 @@

#include <stddef.h>
#include "json_inttypes.h"
#include "printbuf.h"

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -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;

/**
Expand Down
1 change: 1 addition & 0 deletions linkhash.h
Expand Up @@ -139,6 +139,7 @@ struct lh_table {
lh_hash_fn *hash_fn;
lh_equal_fn *equal_fn;
};
typedef struct lh_table lh_table;


/**
Expand Down
1 change: 1 addition & 0 deletions printbuf.h
Expand Up @@ -32,6 +32,7 @@ struct printbuf {
int bpos;
int size;
};
typedef struct printbuf printbuf;

extern struct printbuf*
printbuf_new(void);
Expand Down

0 comments on commit d582d3a

Please sign in to comment.