Defines | Functions | Variables
json_journal.c File Reference
#include <assert.h>
#include "json_journal.h"
Include dependency graph for json_journal.c:

Go to the source code of this file.

Defines

#define MAX_STACK   1000

Functions

void jj_add (const char *name, JO jo)
void jj_add_double (const char *name, double v)
void jj_add_double_array (const char *name, double *v, int n)
void jj_add_int (const char *name, int v)
void jj_add_int_array (const char *name, int *v, int n)
void jj_context_enter (const char *context_name)
void jj_context_exit ()
int jj_enabled ()
FILE * jj_get_stream ()
void jj_loop_enter (const char *loop_name)
void jj_loop_exit ()
void jj_loop_iteration ()
void jj_must_be_array ()
void jj_must_be_hash ()
void jj_set_stream (FILE *f)
void jj_stack_pop ()
void jj_stack_push (JO jo)
JO jj_stack_top ()

Variables

static FILE * jj_file = 0
static JO jj_stack [MAX_STACK]
static int jj_stack_index = -1

Define Documentation

#define MAX_STACK   1000

Definition at line 5 of file json_journal.c.


Function Documentation

void jj_add ( const char *  name,
JO  jo 
)

Definition at line 104 of file json_journal.c.

void jj_add_double ( const char *  name,
double  v 
)

Definition at line 91 of file json_journal.c.

void jj_add_double_array ( const char *  name,
double *  v,
int  n 
)

Definition at line 96 of file json_journal.c.

void jj_add_int ( const char *  name,
int  v 
)

Definition at line 86 of file json_journal.c.

void jj_add_int_array ( const char *  name,
int *  v,
int  n 
)

Definition at line 100 of file json_journal.c.

void jj_context_enter ( const char *  context_name)

Definition at line 36 of file json_journal.c.

void jj_context_exit ( void  )

Definition at line 56 of file json_journal.c.

int jj_enabled ( void  )

Definition at line 12 of file json_journal.c.

FILE* jj_get_stream ( void  )

Definition at line 113 of file json_journal.c.

void jj_loop_enter ( const char *  loop_name)

Definition at line 61 of file json_journal.c.

void jj_loop_exit ( void  )

Definition at line 78 of file json_journal.c.

void jj_loop_iteration ( void  )

Definition at line 68 of file json_journal.c.

void jj_must_be_array ( void  )

(private) Asserts if the stack top is not an array.

Definition at line 52 of file json_journal.c.

void jj_must_be_hash ( void  )

(private) Asserts if the stack top is not an hash.

Definition at line 48 of file json_journal.c.

void jj_set_stream ( FILE *  f)

Definition at line 109 of file json_journal.c.

void jj_stack_pop ( void  )

Definition at line 26 of file json_journal.c.

void jj_stack_push ( JO  jo)

(private) Pushes an object onto the stack.

Definition at line 21 of file json_journal.c.

JO jj_stack_top ( void  )

(private) Gets the top of the stack.

Definition at line 16 of file json_journal.c.


Variable Documentation

FILE* jj_file = 0 [static]

Definition at line 9 of file json_journal.c.

JO jj_stack[MAX_STACK] [static]

Definition at line 7 of file json_journal.c.

int jj_stack_index = -1 [static]

Definition at line 8 of file json_journal.c.



csm_ros
Author(s): Gaƫl Ecorchard , Ivan Dryanovski, William Morris, Andrea Censi
autogenerated on Sat Jun 8 2019 19:52:42