This is Unofficial EPICS BASE Doxygen Site
yajl_bytestack.h File Reference
#include "yajl_common.h"
+ Include dependency graph for yajl_bytestack.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  yajl_bytestack_t
 

Macros

#define YAJL_BS_INC   128
 
#define yajl_bs_init(obs, _yaf)
 
#define yajl_bs_free(obs)   if ((obs).stack) (obs).yaf->free((obs).yaf->ctx, (obs).stack);
 
#define yajl_bs_current(obs)   (assert((obs).used > 0), (obs).stack[(obs).used - 1])
 
#define yajl_bs_push(obs, byte)
 
#define yajl_bs_pop(obs)   { ((obs).used)--; }
 
#define yajl_bs_set(obs, byte)   (obs).stack[((obs).used) - 1] = (byte);
 

Typedefs

typedef struct yajl_bytestack_t yajl_bytestack
 

Macro Definition Documentation

#define yajl_bs_current (   obs)    (assert((obs).used > 0), (obs).stack[(obs).used - 1])

Definition at line 50 of file yajl_bytestack.h.

#define yajl_bs_free (   obs)    if ((obs).stack) (obs).yaf->free((obs).yaf->ctx, (obs).stack);

Definition at line 47 of file yajl_bytestack.h.

#define YAJL_BS_INC   128

Definition at line 27 of file yajl_bytestack.h.

#define yajl_bs_init (   obs,
  _yaf 
)
Value:
{ \
(obs).stack = NULL; \
(obs).size = 0; \
(obs).used = 0; \
(obs).yaf = (_yaf); \
} \
#define NULL
Definition: catime.c:38

Definition at line 38 of file yajl_bytestack.h.

#define yajl_bs_pop (   obs)    { ((obs).used)--; }

Definition at line 63 of file yajl_bytestack.h.

#define yajl_bs_push (   obs,
  byte 
)
Value:
{ \
if (((obs).size - (obs).used) == 0) { \
(obs).size += YAJL_BS_INC; \
(obs).stack = (obs).yaf->realloc((obs).yaf->ctx,\
(void *) (obs).stack, (obs).size);\
} \
(obs).stack[((obs).used)++] = (byte); \
}
#define YAJL_BS_INC
if(yy_init)
Definition: scan.c:972

Definition at line 53 of file yajl_bytestack.h.

#define yajl_bs_set (   obs,
  byte 
)    (obs).stack[((obs).used) - 1] = (byte);

Definition at line 65 of file yajl_bytestack.h.

Typedef Documentation