Guest User

Untitled

a guest
Dec 10th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.05 KB | None | 0 0
  1. #ifdef __cplusplus
  2. extern "C" {
  3. #endif
  4.     cpf_error cpf_parse(const char* source, cpf_node* out, cpf_alloc_fn alloc, cpf_realloc_fn realloc, unsigned int *err_line);
  5.     void cpf_free(cpf_node *node, cpf_free_fn fn);
  6.     cpf_node* cpf_alloc(cpf_size count, cpf_alloc_fn fn);
  7.     cpf_node* cpf_realloc(cpf_node* node, cpf_size count, cpf_realloc_fn fn);
  8.     cpf_dict cpf_dict_new(cpf_alloc_fn fn);
  9.     cpf_node* cpf_dict_add(cpf_dict d, const char* str, cpf_realloc_fn fn);
  10.     cpf_node* cpf_dict_find(cpf_dict d, const char* str);
  11.  
  12.     cpf_error cpfc_parse(cpf_context *ctx, const char* source, cpf_node* out, unsigned int *err_line);
  13.     void cpfc_free(cpf_context *ctx, cpf_node *node);
  14.     cpf_node* cpfc_alloc(cpf_context *ctx, cpf_size count);
  15.     cpf_node* cpfc_realloc(cpf_context *ctx, cpf_node* node, cpf_size count);
  16.     cpf_dict cpfc_dict_new(cpf_context *ctx);
  17.     cpf_node* cpfc_dict_add(cpf_context *ctx, cpf_dict d, const char* str);
  18.    
  19.     void cpf_node_free(cpf_node *node, cpf_free_fn fn, cpf_bool self);
  20.     const char* cpf_error_string(cpf_error err);
  21. #ifdef __cplusplus
  22. }
  23. #endif
Add Comment
Please, Sign In to add comment