#include cleanups
This commit is contained in:
parent
451e6f2710
commit
47da1d454d
@ -16,9 +16,6 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define __STDC_FORMAT_MACROS
|
||||
#include <inttypes.h>
|
||||
|
||||
#include "rjp.h"
|
||||
#include "rjp_internal.h"
|
||||
#include "rjp_string.h"
|
||||
@ -26,6 +23,8 @@
|
||||
#include "rjp_value.h"
|
||||
#include "rjp_array.h"
|
||||
|
||||
#define __STDC_FORMAT_MACROS
|
||||
#include <inttypes.h> //PRId64
|
||||
#include <string.h> //strlen
|
||||
#include <stdio.h> //sprintf
|
||||
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
#include "rjp_array.h"
|
||||
#include "rjp_value.h"
|
||||
|
||||
#include <stdlib.h> //free, malloc
|
||||
#include <stdlib.h> //free, malloc, calloc
|
||||
|
||||
void* rjp_alloc(RJP_index nbytes){
|
||||
return malloc(nbytes);
|
||||
|
||||
@ -16,14 +16,13 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <stddef.h>
|
||||
#include <string.h> //memset
|
||||
|
||||
#include "rjp_internal.h"
|
||||
#include "rjp_array.h"
|
||||
#include "rjp_value.h"
|
||||
#include "rjp_array_element.h"
|
||||
|
||||
#include <string.h> //memset
|
||||
|
||||
void irjp_copy_array(RJP_value* dest, const RJP_value* src, const RJP_memory_fns* fns){
|
||||
dest->array.elements = dest->array.last = NULL;
|
||||
for(RJP_array_element* curr = src->array.elements;curr;curr = curr->next){
|
||||
|
||||
@ -18,6 +18,7 @@
|
||||
|
||||
#include "rjp_lex.h"
|
||||
#include "rjp.h"
|
||||
|
||||
#include <ctype.h> //isalpha, etc
|
||||
#include <string.h> //memcpy
|
||||
|
||||
|
||||
@ -21,7 +21,6 @@
|
||||
#include "rjp_object.h"
|
||||
#include "rjp_object_member.h"
|
||||
#include "rjp_value.h"
|
||||
#include <string.h> //strlen
|
||||
|
||||
#include <string.h> //strlen, strncpy
|
||||
|
||||
|
||||
@ -23,6 +23,7 @@
|
||||
#include "rjp_value.h"
|
||||
#include "rjp_string.h"
|
||||
#include "rjp_lex.h"
|
||||
|
||||
#include <stdlib.h> //strtod, strtol
|
||||
#include <string.h> //memcpy
|
||||
|
||||
|
||||
@ -16,13 +16,12 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define __STDC_FORMAT_MACROS
|
||||
#include <inttypes.h>
|
||||
|
||||
#include "rjp_internal.h"
|
||||
#include "rjp_string.h"
|
||||
#include "rjp_value.h"
|
||||
|
||||
#define __STDC_FORMAT_MACROS
|
||||
#include <inttypes.h> //PRId64
|
||||
#include <stdio.h> //fprintf
|
||||
#include <stdint.h> //uintN_t
|
||||
#include <string.h> //strcpy
|
||||
|
||||
@ -18,13 +18,12 @@
|
||||
|
||||
#include "tree.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "rjp_string.h"
|
||||
#include "rjp_internal.h"
|
||||
#include "rjp_value.h"
|
||||
|
||||
#include <string.h> //memset, strcmp
|
||||
|
||||
#define BLACK 0
|
||||
#define RED 1
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user