translat.c File Reference

Go to the source code of this file.

Defines

#define tr_err(...)   do { con_p_ctx(p); con_err(__VA_ARGS__); } while(0)
#define tr_err_if(expr)   do { if( (expr) ) { con_p_ctx(p); u_con("%s", #expr); goto err; } } while(0)
#define tr_err_ifm(expr,...)   do { if( (expr) ) { con_p_ctx(p); u_con(__VA_ARGS__); goto err; } } while(0)

Typedefs

typedef struct kblock_s kblock_t
typedef struct ppctx_s ppctx_t

Functions

int translate_makefile_filepath (const char *filepath, const char *prefix, char *buf, size_t size)
int translate_is_a_script (const char *filename)
int translate (trans_info_t *pti)

Define Documentation

#define tr_err ( ...   )     do { con_p_ctx(p); con_err(__VA_ARGS__); } while(0)

Definition at line 31 of file translat.c.

#define tr_err_if ( expr   )     do { if( (expr) ) { con_p_ctx(p); u_con("%s", #expr); goto err; } } while(0)

Definition at line 33 of file translat.c.

#define tr_err_ifm ( expr,
...   )     do { if( (expr) ) { con_p_ctx(p); u_con(__VA_ARGS__); goto err; } } while(0)

Definition at line 35 of file translat.c.


Typedef Documentation

typedef struct kblock_s kblock_t
typedef struct ppctx_s ppctx_t

Function Documentation

int translate ( trans_info_t pti  ) 

Definition at line 842 of file translat.c.

int translate_is_a_script ( const char *  filename  ) 

Definition at line 305 of file translat.c.

int translate_makefile_filepath ( const char *  filepath,
const char *  prefix,
char *  buf,
size_t  size 
)

Definition at line 280 of file translat.c.