Browse Source

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

tags/json-c-0.13-20171207
Eric Haszlakiewicz 7 years ago
parent
commit
d582d3ae5a
4 changed files with 4 additions and 15 deletions
  1. +1
    -0
      arraylist.h
  2. +1
    -15
      json_object.h
  3. +1
    -0
      linkhash.h
  4. +1
    -0
      printbuf.h

+ 1
- 0
arraylist.h View File

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


extern struct array_list* extern struct array_list*
array_list_new(array_list_free_fn *free_fn); array_list_new(array_list_free_fn *free_fn);


+ 1
- 15
json_object.h View File

@@ -35,6 +35,7 @@


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


#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@@ -145,21 +146,6 @@ struct json_object_iter
}; };
typedef struct json_object_iter 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; typedef int json_bool;


/** /**


+ 1
- 0
linkhash.h View File

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




/** /**


+ 1
- 0
printbuf.h View File

@@ -32,6 +32,7 @@ struct printbuf {
int bpos; int bpos;
int size; int size;
}; };
typedef struct printbuf printbuf;


extern struct printbuf* extern struct printbuf*
printbuf_new(void); printbuf_new(void);


Loading…
Cancel
Save