![]() |
GNU PROLOG with UTF8 support
|
#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"
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 |
#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 |
void Call_C | ( | char * | fct_name, |
int | fc, | ||
int | nb_args, | ||
int | nb_args_in_words, | ||
ArgInf | arg[] | ||
) |
void Char_Out | ( | char | c | ) |
void Decl_Code | ( | char * | name, |
int | prolog, | ||
int | global | ||
) |
void Declare_Initializer | ( | char * | init_fct | ) |
void Display_Help | ( | void | ) |
void Emit_Inline_Data | ( | char ** | p_inline | ) |
char ** Find_Inline_Data | ( | char * | fct_name | ) |
int Get_Long_Infos | ( | char * | name, |
int * | global, | ||
VType * | vtype, | ||
int * | value | ||
) |
void Init_Inline_Data | ( | void | ) |
void Inst_Out | ( | char * | op, |
char * | operands | ||
) |
void Inst_Printf | ( | char * | op, |
char * | operands, | ||
... | |||
) |
void Int_Out | ( | int | d | ) |
void Invoke_Dico_Long | ( | int | unused_no, |
char * | name, | ||
void * | info | ||
) |
int Is_Code_Defined | ( | char * | name | ) |
void Label_Printf | ( | char * | label, |
... | |||
) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
void Parse_Arguments | ( | int | argc, |
char * | argv[] | ||
) |
void String_Out | ( | char * | s | ) |
void Switch_Equal | ( | SwtInf * | c | ) |
void Switch_Rec | ( | int | start, |
int | stop, | ||
SwtInf | swt[] | ||
) |
void Switch_Ret | ( | int | nb_swt, |
SwtInf | swt[] | ||
) |
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 |