Skip to content

Commit

Permalink
don't need adt.h any more
Browse files Browse the repository at this point in the history
  • Loading branch information
Shuxin Yang committed Nov 30, 2014
1 parent 0827c1e commit ad9fc1d
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 196 deletions.
183 changes: 0 additions & 183 deletions adt.h

This file was deleted.

1 change: 1 addition & 0 deletions parse_array.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <stdint.h>
#include "util.h"
#include "parser.h"

static const char* syntax_err = "Array syntax error, expect ',' or ']'";
Expand Down
1 change: 1 addition & 0 deletions parse_hashtab.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "util.h"
#include "parser.h"

static void
Expand Down
2 changes: 1 addition & 1 deletion parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
#include <inttypes.h>
#include <ctype.h>

#include "util.h"
#include "mempool.h"
#include "adt.h"
#include "scaner.h"
#include "parser.h"

Expand Down
13 changes: 1 addition & 12 deletions parser.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef PARSER_H
#define PARSER_H

#include "adt.h"
//#include "adt.h"
#include "mempool.h"
#include "ljson_parser.h"
#include "scaner.h"
Expand Down Expand Up @@ -59,17 +59,6 @@ composite_state_t* pstack_pop(parser_t*);
*/
int emit_primitive_tk(mempool_t* mp, token_t* tk, obj_composite_t* nesting_obj);

static inline int
insert_primitive_subobj(mempool_t* mp, slist_t* subobj_list, obj_t* subobj) {
slist_elmt_t* subobj_elmt = MEMPOOL_ALLOC_TYPE(mp, slist_elmt_t);
if (unlikely(!subobj_elmt))
return 0;

subobj_elmt->ptr_val = subobj;
slist_prepend(subobj_list, subobj_elmt);
return 1;
}

void insert_subobj(obj_composite_t* nesting, obj_t* nested);

void __attribute__((format(printf, 2, 3), cold))
Expand Down

0 comments on commit ad9fc1d

Please sign in to comment.