GNU PROLOG with UTF8 support
Data Structures | Macros | Functions | Variables
extract_asm.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <unistd.h>
Include dependency graph for extract_asm.c:

Data Structures

struct  AsmLine
 

Macros

#define MAX_FCT   512
 
#define MAX_ASM_INST_PER_FCT   1024
 
#define MAX_LABEL_PER_FCT   1024
 

Functions

int Needs_Quote (char *str)
 
char * Read_Line (char *buff, int size, FILE *f_in)
 
void Gen_Inline (FILE *f_in, FILE *f_out, int nb_fct, char *fct[])
 
void Emit_Fct (int fct_no, char *fct_name, FILE *f_in, FILE *f_out)
 
char * Get_Label (char *str)
 
int Detect_End_Of_Fct (char *buff)
 
int main (int argc, char *argv[])
 

Variables

char buff [4096]
 
char buff1 [4096]
 
int nb_fct
 
char * fct [MAX_FCT]
 
int found [MAX_FCT]
 
int disassemble = 0
 
AsmLine line [MAX_ASM_INST_PER_FCT]
 
int nb_line
 
char * lab [MAX_LABEL_PER_FCT]
 
int nb_lab
 

Macro Definition Documentation

#define MAX_ASM_INST_PER_FCT   1024
#define MAX_FCT   512
#define MAX_LABEL_PER_FCT   1024

Function Documentation

int Detect_End_Of_Fct ( char *  buff)

Here is the caller graph for this function:

void Emit_Fct ( int  fct_no,
char *  fct_name,
FILE *  f_in,
FILE *  f_out 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Gen_Inline ( FILE *  f_in,
FILE *  f_out,
int  nb_fct,
char *  fct[] 
)

Here is the call graph for this function:

Here is the caller graph for this function:

char * Get_Label ( char *  str)

Here is the caller graph for this function:

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

Here is the call graph for this function:

int Needs_Quote ( char *  str)

Here is the caller graph for this function:

char * Read_Line ( char *  buff,
int  size,
FILE *  f_in 
)

Here is the caller graph for this function:

Variable Documentation

char buff[4096]
char buff1[4096]
int disassemble = 0
char* fct[MAX_FCT]
int found[MAX_FCT]
char* lab[MAX_LABEL_PER_FCT]
int nb_fct
int nb_lab
int nb_line