Référence du fichier EdBx-Fasm.c

#include <gtk/gtk.h>
#include "Globals.h"

Graphe des dépendances par inclusion de EdBx-Fasm.c:

Aller au code source de ce fichier.

Macros

#define nbEXT   4

Fonctions

void Projet_Compiler ()
int main (int argc, char **argv)

Variables

gchar * AppCAPTION = "Fasm Bx Editor"
gchar * AppConf = "EdBx-Fasm.conf"
gchar * AppEXTproj = "*.bxfp"
gchar * AppCOMPILER = "fasm"
gchar * AppLINKER = "ld"
gchar * AppICON = "img/ico.png"
gchar * EXTs [nbEXT] = { NULL , "asm" , "inc" , "ash" }
gchar * IMGs [nbEXT] = { NULL ,"img/a.png","img/inc.png","img/inc.png"}
gchar * AppNEWfile = "new.asm"
gchar * AppMIME = "text/x-asm"
gchar * AppTEMPLATE = "Templates/hello.asm"
gchar * AppABOUTstr


Documentation des macros

#define nbEXT   4
 

Définition à la ligne 12 du fichier EdBx-Fasm.c.

Référencé par DLG_Open(), et getExtension().


Documentation des fonctions

int main int  argc,
char **  argv
 

Définition à la ligne 116 du fichier EdBx-Fasm.c.

Références Projet_Ouvrir(), et Show_Editor().

00117 {
00118   gtk_init(&argc, &argv);
00119 
00120   Show_Editor();
00121   if (argv[1]) Projet_Ouvrir(argv[1]);
00122 
00123   gtk_main();
00124   return 0;
00125 }

Voici le graphe d'appel pour cette fonction:

void Projet_Compiler  ) 
 

Définition à la ligne 27 du fichier EdBx-Fasm.c.

Référencé par Creer_Menu(), Creer_ToolBar(), et Projet_CompilExec().

00028 {
00029   gshort n, c=0;
00030   gchar *S, *d=NULL;
00031 
00032   gchar  *noms[100];
00033   gchar *chems[100];
00034 
00035   // S'il faut utiliser un makefile, recherche son chemin,
00036   // chdir, make, et chdir dossier d'origine.
00037   if (ProjetUseMAKEFILE)
00038   {
00039     gtk_list_store_clear(GTK_LIST_STORE(model));
00040     for (n=0; n<NB; n++)
00041     {
00042       if (g_strcasecmp(nom[n],"makefile")==0)
00043       {
00044         d = g_get_current_dir();
00045         break;
00046       }
00047     }
00048     if (d)
00049     {
00050       S = g_path_get_dirname(chemin[n]);
00051       chdir(S);
00052       S = g_strdup("make");
00053       Liste_Add_Msg(S);
00054       Creer_Pipe(S);
00055       chdir(d);
00056       g_free(d);
00057     }
00058     else Liste_Add_Msg("Ajoutez le makefile au projet.");
00059   }
00060 
00061   // Pas de makefile
00062   else
00063   {
00064     gtk_list_store_clear(GTK_LIST_STORE (model));
00065 
00066     // Détermine le nombre d' objets à compiler
00067     for (n=0; n<NB; n++)
00068     {
00069       if (ext[n]==1)
00070       {                                                 //      hworld.asm
00071          noms[c] = getNomSansExtension(nom[n]);         //      hworld
00072         chems[c] = g_path_get_dirname (chemin[n]);      //      /src
00073         c++;
00074       }
00075     }
00076 
00077     // 1 seul objet
00078     if (c==1)
00079     {
00080       for (n=0; n<NB; n++)
00081       {
00082         if (ext[n]==1)
00083         {
00084           S = g_strdup_printf("%s %s %s 2>&1", AppCOMPILER, chemin[n], ProjetEXEname);
00085           Liste_Add_Msg(S);
00086           Creer_Pipe(S);
00087         }
00088       }
00089     }
00090 
00091     // Plusieurs objets; les compile puis les linke
00092     else if (c>1)
00093     {
00094       for (n=0; n<c; n++) // compile les objets
00095       {
00096         S = g_strdup_printf("%s %s/%s.asm %s/%s.o", AppCOMPILER,
00097                                                         chems[n],noms[n],
00098                                                         chems[n],noms[n]);
00099         Liste_Add_Msg(S);
00100         Creer_Pipe(S);
00101       }
00102       // Linke les objets
00103       S = g_strdup("ld");
00104       for (n=0; n<c; n++)
00105           S = g_strdup_printf("%s %s/%s.o", S, chems[n], noms[n]);
00106       S = g_strdup_printf("%s -o %s", S, ProjetEXEname);
00107       Liste_Add_Msg(S);
00108       Creer_Pipe(S);
00109     }
00110   }
00111 }


Documentation des variables

gchar* AppABOUTstr
 

Valeur initiale:

 "Fasm Bx Editor\nEcrit en C avec GTK+ 2.0\n\n"
                          "Par Bertrand-Xavier Massot (C) 2006\n"

Définition à la ligne 19 du fichier EdBx-Fasm.c.

Référencé par DLG_About().

gchar* AppCAPTION = "Fasm Bx Editor"
 

Définition à la ligne 5 du fichier EdBx-Fasm.c.

Référencé par Show_Editor().

gchar* AppCOMPILER = "fasm"
 

Définition à la ligne 8 du fichier EdBx-Fasm.c.

Référencé par Projet_Compiler(), et Projet_Generate_Makefile().

gchar* AppConf = "EdBx-Fasm.conf"
 

Définition à la ligne 6 du fichier EdBx-Fasm.c.

Référencé par App_ChargerConfig().

gchar* AppEXTproj = "*.bxfp"
 

Définition à la ligne 7 du fichier EdBx-Fasm.c.

Référencé par DLG_Open().

gchar* AppICON = "img/ico.png"
 

Définition à la ligne 10 du fichier EdBx-Fasm.c.

Référencé par Show_Editor().

gchar* AppLINKER = "ld"
 

Définition à la ligne 9 du fichier EdBx-Fasm.c.

Référencé par Projet_Generate_Makefile().

gchar* AppMIME = "text/x-asm"
 

Définition à la ligne 17 du fichier EdBx-Fasm.c.

Référencé par DLG_EditorOPTIONS().

gchar* AppNEWfile = "new.asm"
 

Définition à la ligne 16 du fichier EdBx-Fasm.c.

Référencé par Fichier_Nouveau().

gchar* AppTEMPLATE = "Templates/hello.asm"
 

Définition à la ligne 18 du fichier EdBx-Fasm.c.

Référencé par DLG_EditorOPTIONS().

gchar* EXTs[nbEXT] = { NULL , "asm" , "inc" , "ash" }
 

Définition à la ligne 13 du fichier EdBx-Fasm.c.

Référencé par DLG_Open(), getExtension(), et Projet_Generate_Makefile().

gchar* IMGs[nbEXT] = { NULL ,"img/a.png","img/inc.png","img/inc.png"}
 

Définition à la ligne 14 du fichier EdBx-Fasm.c.

Référencé par Ajouter_TreeviewItem().


Généré le Sat Jan 13 02:54:18 2007 pour EdBX:IDELangageC,Python,FASMécritavecGTK+ par  doxygen 1.4.2