omegalib  13.1
scanctx.h File Reference
#include "libconfig.h"
#include "strbuf.h"
#include <stdio.h>
#include <sys/types.h>

Classes

struct  scan_context
 

Macros

#define MAX_INCLUDE_DEPTH   10
 
#define scanctx_append_string(C, S)   strbuf_append(&((C)->string), (S))
 

Functions

void scanctx_init (struct scan_context *ctx, const char *top_filename)
 
const char ** scanctx_cleanup (struct scan_context *ctx, unsigned int *num_filenames)
 
FILE * scanctx_push_include (struct scan_context *ctx, void *prev_buffer, const char **error)
 
void * scanctx_pop_include (struct scan_context *ctx)
 
char * scanctx_take_string (struct scan_context *ctx)
 
const char * scanctx_current_filename (struct scan_context *ctx)
 

Macro Definition Documentation

#define MAX_INCLUDE_DEPTH   10
#define scanctx_append_string (   C,
 
)    strbuf_append(&((C)->string), (S))

Function Documentation

const char** scanctx_cleanup ( struct scan_context ctx,
unsigned int *  num_filenames 
)
const char* scanctx_current_filename ( struct scan_context ctx)
void scanctx_init ( struct scan_context ctx,
const char *  top_filename 
)
void* scanctx_pop_include ( struct scan_context ctx)
FILE* scanctx_push_include ( struct scan_context ctx,
void *  prev_buffer,
const char **  error 
)
char* scanctx_take_string ( struct scan_context ctx)