GNU PROLOG with UTF8 support
Data Structures | Macros | Functions | Variables
ma2asm.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include "../EnginePl/gp_config.h"
#include "../Wam2Ma/bt_string.c"
#include "../TopComp/copying.c"
#include "ma_parser.h"
#include "ma_protos.h"
Include dependency graph for ma2asm.c:

Data Structures

struct  LongInf
 
struct  CodeInf
 

Macros

#define MA2ASM_FILE
 
#define DEFAULT_OUTPUT_SUFFIX   ASM_SUFFIX
 
#define MASK_LONG_GLOBAL   1
 
#define MASK_LONG_INITIALIZED   2
 
#define Check_Arg(i, str)   (strncmp(argv[i], str, strlen(argv[i])) == 0)
 
#define L(msg)   fprintf(stderr, "%s\n", msg)
 

Functions

void Invoke_Dico_Long (int unused_no, char *name, void *info)
 
void Init_Inline_Data (void)
 
char ** Find_Inline_Data (char *fct_name)
 
void Emit_Inline_Data (char **p_inline)
 
void Switch_Rec (int start, int stop, SwtInf swt[])
 
void Switch_Equal (SwtInf *c)
 
int Switch_Cmp_Int (SwtInf *c1, SwtInf *c2)
 
void Label_Printf (char *label,...)
 
void Inst_Printf (char *op, char *operands,...)
 
void Inst_Out (char *op, char *operands)
 
void Char_Out (char c)
 
void String_Out (char *s)
 
void Int_Out (int d)
 
void Parse_Arguments (int argc, char *argv[])
 
void Display_Help (void)
 
int main (int argc, char *argv[])
 
void Declare_Initializer (char *init_fct)
 
void Call_C (char *fct_name, int fc, int nb_args, int nb_args_in_words, ArgInf arg[])
 
void Switch_Ret (int nb_swt, SwtInf swt[])
 
void Decl_Long (char *name, int global, VType vtype, PlLong value)
 
void Decl_Code (char *name, int prolog, int global)
 
int Is_Code_Defined (char *name)
 
int Get_Long_Infos (char *name, int *global, VType *vtype, int *value)
 

Variables

char * file_name_in
 
char * file_name_out
 
int pic_code
 
int inline_asm
 
int ignore_fc
 
int comment
 
FILE * file_out
 
int work_label = 0
 
BTString bt_string
 
BTString bt_code
 
BTString bt_long
 
char * initializer_fct = NULL
 

Macro Definition Documentation

#define Check_Arg (   i,
  str 
)    (strncmp(argv[i], str, strlen(argv[i])) == 0)
#define DEFAULT_OUTPUT_SUFFIX   ASM_SUFFIX
#define L (   msg)    fprintf(stderr, "%s\n", msg)
#define MA2ASM_FILE
#define MASK_LONG_GLOBAL   1
#define MASK_LONG_INITIALIZED   2

Function Documentation

void Call_C ( char *  fct_name,
int  fc,
int  nb_args,
int  nb_args_in_words,
ArgInf  arg[] 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Char_Out ( char  c)

Here is the caller graph for this function:

void Decl_Code ( char *  name,
int  prolog,
int  global 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Decl_Long ( char *  name,
int  global,
VType  vtype,
PlLong  value 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Declare_Initializer ( char *  init_fct)

Here is the caller graph for this function:

void Display_Help ( void  )

Here is the caller graph for this function:

void Emit_Inline_Data ( char **  p_inline)

Here is the call graph for this function:

Here is the caller graph for this function:

char ** Find_Inline_Data ( char *  fct_name)

Here is the caller graph for this function:

int Get_Long_Infos ( char *  name,
int *  global,
VType vtype,
int *  value 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Init_Inline_Data ( void  )

Here is the caller graph for this function:

void Inst_Out ( char *  op,
char *  operands 
)

Here is the caller graph for this function:

void Inst_Printf ( char *  op,
char *  operands,
  ... 
)

Here is the caller graph for this function:

void Int_Out ( int  d)

Here is the caller graph for this function:

void Invoke_Dico_Long ( int  unused_no,
char *  name,
void *  info 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int Is_Code_Defined ( char *  name)

Here is the call graph for this function:

Here is the caller graph for this function:

void Label_Printf ( char *  label,
  ... 
)

Here is the caller graph for this function:

int main ( int  argc,
char *  argv[] 
)

Here is the call graph for this function:

void Parse_Arguments ( int  argc,
char *  argv[] 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void String_Out ( char *  s)

Here is the caller graph for this function:

int Switch_Cmp_Int ( SwtInf c1,
SwtInf c2 
)

Here is the caller graph for this function:

void Switch_Equal ( SwtInf c)

Here is the call graph for this function:

Here is the caller graph for this function:

void Switch_Rec ( int  start,
int  stop,
SwtInf  swt[] 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Switch_Ret ( int  nb_swt,
SwtInf  swt[] 
)

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

BTString bt_code
BTString bt_long
BTString bt_string
int comment
char* file_name_in
char* file_name_out
FILE* file_out
int ignore_fc
char* initializer_fct = NULL
int inline_asm
int pic_code
int work_label = 0