Projet mkd/mkd.c

De Wiki EELL.

(Différences entre les versions)
m
m (Pas fini mis en commentaire)
 
(10 versions intermédiaires masquées)
Ligne 1 : Ligne 1 :
-
{{Modèle:Pas fini/autre}}
+
<!--{{Modèle:Pas fini/autre}}-->
<small>[[Projet mkd/Fichiers en développement|Retour aux fichiers en développement &rarr;]]</small>
<small>[[Projet mkd/Fichiers en développement|Retour aux fichiers en développement &rarr;]]</small>
-
<pre>
+
 
 +
== version.h ==
 +
{{Boîte déroulante/début|titre=version.h Updated 11 may 2013}}
 +
<pre style="color:red">
/*
/*
* © mkd, version 2009.12 et ultérieures
* © mkd, version 2009.12 et ultérieures
Ligne 8 : Ligne 11 :
* Concédée sous licence EUPL, version 1.1 ou – dès leur approbation par la
* Concédée sous licence EUPL, version 1.1 ou – dès leur approbation par la
* Commission européenne - versions ultérieures de l’EUPL (la «Licence»).
* Commission européenne - versions ultérieures de l’EUPL (la «Licence»).
-
* Vous ne pouvez utiliser la présente oeuvre que conformément à la Licence.
+
* Vous ne pouvez utiliser la présente œuvre que conformément à la Licence.
* Vous pouvez obtenir une copie de la Licence à l’adresse suivante:
* Vous pouvez obtenir une copie de la Licence à l’adresse suivante:
*
*
Ligne 20 : Ligne 23 :
*/
*/
 +
/*P
 +
NOM DU FICHIER: version.h
 +
PROJET INITIAL: mkd console linux & MSDOS
 +
DOSSIER INITIAL : mkdoc3.12 Centre d'Electronique de Montpellier
 +
PROGRAMMEUR: JPL
 +
DATE: 18/12/2009
 +
MODIFICATIONS:
 +
le: 09/01/2011 par JPL objet: Ajouté l'option de compilation pour MSDEV41
 +
le: 10/01/2012 par JPL objet: Ajouté la définition std_C pour compilation UNIX STD
 +
le: 25/03/2012 par Clara objet: internationalisation
 +
le: 27/03/2012 par jpl objet: internationalisation en utf-8
 +
le: 10/04/2013 par Cardabela: Modification mineure. Alignement des commentaires.
 +
        le: 11/05/2013 par jpl mise à jour des définitions CD* pour tri.c
 +
*/
 +
// le: ../../.. par .............. objet de la modification ....
 +
 +
/*E ?C?*/
 +
/**# MKD.C ############################*/ /*H*/
 +
/*U            UTILISATEURS            */ /*H*/
 +
/*O            ORGANIGRAMME            */ /*H*/
 +
/*S              STRUCTURE            */ /*H*/
 +
/*T                TESTS              */ /*H*/
 +
/*P            PROGRAMMEUR            */ /*H*/
 +
/*www    remarques particulieres      */ /*H*/
 +
/**####################################*/ /*H*/
 +
 +
// define VERSION line 173
 +
 +
#define UNIX /*O UNIX version */ /* Delete this line for PC version */
 +
//#define GTKMM /*O Version fenêtrée avec gtkmm pour mkdcppw uniquement */
 +
 +
#ifndef UNIX            /*H*/
 +
#define PC              /*O version de compilation PC  */  /*H*/
 +
/*#define PC_ONLY*/    /*H find_ ne reconnaît pas: .s .f .p .sh .csh  */
 +
#define NL "\r\n"      /*H*/
 +
//#define VC10 /*O Microsoft Visual C 10.- */
 +
#define MSDEV41
 +
#endif                  /*H*/
 +
                        /*H*/
 +
#ifdef UNIX            /*H*/
 +
// #define UNIX_ONLY    /*H find_ ne reconnaît pas: .BAS .PAS .FOR ... */
 +
#endif                  /*H*/
 +
                        /*H*/
 +
 +
/*H #D *************************************************************************************/
 +
/*H *** #Define OPTIONS DE COMPILATION:  options par défaut, redéfinissables: **************
 +
          (#D pour l'extraction des options de compilation en ligne avec l'option CD3='#') */
 +
/*H****************** #Define 'l' (ligne) commence par #define en 1ère colonne : ***********/
 +
#define CD1 '%'  /*H #Define Option CD1 en 1ère colonne  prend fin avec NL                */
 +
#define CD2 '<'  /*H #Define Option CD2 en 1ère colonne  prend fin avec NL                */
 +
#define CD3 '!'  /*H #Define Option CD3 dans la ligne    prend fin avec NL                */
 +
                  /*H #Define Option '!' commentaire Fortran 90 et ultérieurs              */
 +
                  /*H #Define Option '%' commentaire postcript                            */
 +
                  /*H #Define Option '#' commentaire shell ou pour Makefile voir option S
 +
                                    ( le commentaire se termine avec new_line )          */
 +
                  /*H #Define Option '\'' commentaires Basic                              */
 +
                  /*H #Define Option ';'  commentaires assembleur                          */
 +
/*H ***************** #Define Option 'p' (dans la page) #define en 1ère colonne : **********/
 +
#define CD4 '\"'  /*H #Define Option CD4 = "  debut de commentaire                        */
 +
#define CD5 '\"'  /*H #Define Option CD5 = "  fin de commentaire                          */
 +
                  /*H #Define **************************************************************/
 +
#define FULL_LINE /*H #Define Option de compil. copier toute la ligne                      */
 +
/*H #D *************************************************************************************/
 +
 +
 +
 +
/*H*/
 +
#define VERSION "13.05 alpha1" /*H*/
 +
/*H*/
 +
#define MAX    85 /*H longueur des buffers des path source et doc */
 +
#define STX    0x2 /*H Start Text */
 +
#include <stdio.h> /*H*/
 +
/*H*/
 +
#ifdef PC /*H*/
 +
#include <conio.h> /*H*/
 +
#include <process.h> /*H*/
 +
#include <io.h> /*H*/
 +
#endif /*H*/
 +
#ifdef VC10 /*H Microsoft Visual C 10.- */
 +
#define putch _putch /*H ISO C++ */
 +
#define getch _getch /*H ISO C++ */
 +
#define access _access /*H ISO C++ */
 +
#endif /*H*/
 +
/*H*/
 +
#ifdef MSDEV41 /*H*/
 +
//#define STD_C /*H SVr4, 4.3BSD, C89, C99.*/
 +
#include <string.h> /*H*/
 +
#endif /*H*/
 +
/*H*/
 +
#ifdef UNIX /*H*/
 +
#define NL "\n"                /*H*/
 +
  #define exit return
 +
#define bool int
 +
//#define STD_C /*H SVr4, 4.3BSD, C89, C99.*/
 +
//#define getch() getchar()*/ defined in mkd.c
 +
#define putch putchar /*H*/
 +
#include <signal.h> /*H*/
 +
#include <sys/file.h> /*H*/
 +
#include <string.h> /*H*/
 +
#endif /*H*/
 +
</pre>
 +
{{Boîte déroulante/fin}}
 +
 +
== mkd.h ==
 +
<pre style="color:green">
 +
// asm.cpp:
 +
extern int asm_(FILE *pfdoc, FILE *pnfile);
 +
 +
   
 +
// File: basic.c
 +
void basic_ (FILE * pfdoc, FILE * pnfile);
 +
 +
   
 +
// File: cpp.c
 +
extern int cpp_ (FILE * pfdoc, FILE * pnfile);
 +
   
 +
// File: fortran.c
 +
void fortran_ (FILE * pfdoc, FILE * pnfile);
 +
   
 +
// File: pascal.c (Comments for UTF-8 text editor)
 +
void pascal_ (FILE * pfdoc, FILE * pnfile);
 +
 +
   
 +
// File: shell.c (Comments for UTF-8 text editor)
 +
void shell_ (FILE * pfdoc, FILE * pnfile);
 +
 +
   
 +
// File: tri.c
 +
void tri_ (FILE * pfdoc, FILE * pnfile);
 +
</pre>
 +
 +
== mkd.c ==
 +
{{Boîte déroulante/début|titre=mkd.c ; Update 11 may 2013}}
 +
<pre style="color:red">
 +
/*D
 +
COPYRIGHT:
 +
  © Contact: http://edeulo.free.fr/contacts/formmail.php
 +
  © EELL, Éditeurs Européens de Logiciels Libres, 2007
 +
  Association à but non lucratif selon l'Article 11 de la convention européenne
 +
  des droits de l'homme.
 +
 +
AUTHORS:
 +
  Designer: intial JP Louyot (JPL)
 +
  Updates : JPL and Clara Jimenez
 +
  Tranlations: Alizée, Clara, JPL, JPT, Luca
 +
*/
/*P
/*P
NOM DU FICHIER: mkd.c
NOM DU FICHIER: mkd.c
PROJET INITIAL: mkd console linux & Windows 7
PROJET INITIAL: mkd console linux & Windows 7
DOSSIER INITIAL : mkdoc3.12 Centre d'Electronique de Montpellier
DOSSIER INITIAL : mkdoc3.12 Centre d'Electronique de Montpellier
-
PROGRAMMEUR: Jean-Paul LOUYOT http://jeanpaullouyot.free.fr
+
PROGRAMMEUR: Jean-Paul LOUYOT
DATE: 18/12/2009
DATE: 18/12/2009
MODIFICATIONS:
MODIFICATIONS:
-
le: 10/03/2010 par JPL objet de la modification Mise à jour pour Visual C 10
+
le: 10/03/2010 par JPL Mise à jour pour Visual C 10
-
le: ../../.. par
+
le: 25/03/2012 par Clara : internationalisation
 +
le: 31/03/2012 par jpl : internationalisation. Conversion du fichier
 +
                                au format UTF-8
 +
le: 18/04/2013 par jpl : mise à jour pour version 2013 alpha
 +
le: 11/05/2013 par jpl : pour compilation avec les fichiers mis à jour
*/
*/
 +
// le: ../../.. par
 +
</pre>
 +
<pre style="color:blue">
#include "version.h"
#include "version.h"
#include "strings.h"
#include "strings.h"
#include "mkd.h"
#include "mkd.h"
-
 
+
#include "internationalisation.h"
unsigned char A,B,C,F,P,S,a,f,j,l,n,p,s,t,v,w; /*P ajout n et v version 3.1 */
unsigned char A,B,C,F,P,S,a,f,j,l,n,p,s,t,v,w; /*P ajout n et v version 3.1 */
Ligne 46 : Ligne 202 :
-
// #include "asm.inc.c"         /* Compilation globale et C standard */
+
// #include "asm.inc.c"     //P old version see asm.c
-
#include "basic.inc.c"
+
// #include "basic.inc.c"   //P old version see basic.c
-
// #include "c.inc.c"
+
// #include "c.inc.c"     //P old version see cpp.c
-
#include "fortran.inc.c"
+
// #include "fortran.inc.c" //P old version see fortran.c
-
#include "pascal.inc.c"
+
// #include "pascal.inc.c" //P old version see pascal.c
-
#include "shell.inc.c"
+
// #include "shell.inc.c"   //P old version see shell.c
-
#include "tri.inc.c"
+
// #include "tri.inc.c"     //P old version see tri.c
-
int tolower(char c)
+
int tolower(int c)
// char c;
// char c;
     {
     {
-
    if( c>='A' && c <='Z' ) c=(c-'A')+'a';
+
        if( c >='A' && c <='Z' ) c=(c-'A')+'a';
-
    return(c);
+
        return(c);
     }
     }
-
 
+
int toupper(int c)
-
int toupper(char c)
+
// char c;
// char c;
     {
     {
-
    if( c>='a' && c <='z' ) c=(c-'a')+'A';
+
        if( c >='a' && c <='z' ) c=(c-'a')+'A';
-
    return(c);
+
        return(c);
     }
     }
-
 
-
 
#ifdef UNIX
#ifdef UNIX
-
int getch()
+
int getch()
     {
     {
-
    int c;
+
        int c;
-
    c=getc(stdin);
+
        c=getc(stdin);
-
    if (c=='\r')c='\n';
+
        if (c=='\r')c='\n';
-
    return(c);
+
        return(c);
     }
     }
 +
#define exit return //P c++
#endif
#endif
Ligne 91 : Ligne 245 :
-
int main (int argc, char * argv[])
+
int main (int argc, char * argv[])
// int argc;
// int argc;
// char *argv[];
// char *argv[];
-
    { /*S main */
+
{ /*S main */
-
    char *fprj;      /* nom fichier projet s'il existe    */
+
//O Internationalization Initialization
-
    char fdoc[MAX];  /* nom fichier documentaire en sortie */
+
// i18n: initializes the entire current locale of the program as per
-
    char fsrc[MAX];  /* nom fichier source a documenter    */
+
//  environment variables set by the user
-
    extern char codes[];  /* codes */
+
     setlocale( LC_ALL, "" );  
-
     extern unsigned char A,B,C,F,P,S,a,f,j,l,n,p,s,t,v,w; /* rappels options booleennes */
+
// i18n: Indicate the path of the i18n catalog file
-
    int i,k;          /* compteurs */
+
     bindtextdomain( "mkd", "/usr/share/locale" );     
-
    char isource;    /* position nom du fichier source dans path source */
+
// i18n: sets the message domain
-
     char itarget;    /* position fin du path_target avec '*' ou ':'(PC) */
+
     textdomain( "mkd" );
-
    char ktar;        /* position du '.' dans p_target */
+
-
    static char O;    /* booleen =1 si option validee */
+
-
    static char L;    /* booleen =1 si option langage */
+
-
     register int c;  /* char (variable) */
+
-
    int c1;           /* char (variable) pour version PC */
+
-
int ret = 0; // essai
+
-
     FILE *pfprj; /* FICHIER PROJET       */
+
     char *fprj;      // nom du fichier de projet s'il existe
-
     FILE *pnfile; /* FICHIER A TRIER     */
+
     char fdoc[MAX];   // nom du fichier cible
-
     FILE *pfdoc;  /* FICHIER DOCUMENTAIRE */
+
     char fsrc[MAX];  // nom du fichier source
 +
     extern  char codes[];  // codes
 +
    extern unsigned char A,B,C,F,P,S,a,f,j,l,n,p,s,t,v,w; // booléennes
 +
    int i,k;          // compteurs
 +
    char isource;    // position nom du fichier source dans path source
 +
    char itarget;    // position fin du path_target avec '*' ou ':'(PC)
 +
    char ktar;        // position du '.' dans p_target
 +
    static char O;    // booléen =1 si option validée
 +
    static char L;    // booléen =1 si option langage
 +
    register int c;  // char (variable)
 +
    int c1;          // char (variable) pour version PC
 +
    int ret = 0;      // essai
 +
    FILE *pfprj;  // fichier de projet      */
 +
    FILE *pnfile; // fichier source
 +
    FILE *pfdoc;  // fichier cible
/*##########################################################################*/
/*##########################################################################*/
/*O si argc < 3 ou arc > 5: */
/*O si argc < 3 ou arc > 5: */
-
    if ( argc < 3 || argc > 5 )
 
/*##########################################################################*/
/*##########################################################################*/
/*O alors ecrire 'USAGE', donner la syntaxe puis quitter */
/*O alors ecrire 'USAGE', donner la syntaxe puis quitter */
-
        { /*S syntaxe */
+
    if ( argc < 3 || argc > 5 )
 +
    { //S argc <3 ou argc > 5 : syntaxe
#ifdef PC
#ifdef PC
-
         ret = printf("mkd PC version, Release %s, USAGE:\n",VERSION);
+
         ret = printf(gettext("mkd PC version, Release %s, USAGE:\n"),VERSION);
-
         printf("syntax: mkd [-ABCFPSafjlnpstvw] char_codes path_source [path_target]\n");
+
         printf(gettext("syntax: mkd [-ABCFPSafjlnpstvw] char_codes path_source [path_target]\n"));
-
         puts  ("    or: mkd ? .See also mkd.doc or manual.");
+
         puts  (gettext("    or: mkd ? .See also mkd.doc or manual."));
#endif
#endif
#ifdef UNIX
#ifdef UNIX
-
         printf("mkdoc UNIX version, Release %s, USAGE:\n",VERSION);
+
         printf(gettext("mkd UNIX version, Release %s, USAGE:\n"),VERSION);
-
         printf("syntax: mkdoc [-ABCFPSafjlnpstvw] char_codes path_source [path_target]\n");
+
         printf(gettext("syntax: mkd [-ABCFPSafjlnpstvw] char_codes path_source [path_target]\n"));
-
         puts  ("    or: mkdoc \\? .See also nanual: \'man mkdoc\'");
+
         puts  (gettext("    or: mkd \\? .See also nanual: \'man mkd\'"));
#endif
#endif
         if( argc==2 && argv[1][0]=='?' )
         if( argc==2 && argv[1][0]=='?' )
-
          { /*S*/
+
        { //S argc=2 et ?
-
           printf(" --> options:\n");
+
           printf(gettext(" --> options:\n"));
-
           printf("      -A decode Assembler comment style only\n");
+
           printf(gettext("      -A decode Assembler comment style only\n"));
/* #ifndef UNIX_ONLY */
/* #ifndef UNIX_ONLY */
-
           printf("      -B        Basic style\n");
+
           printf(gettext("      -B        Basic style\n"));
/* #endif */
/* #endif */
-
           printf("      -C        C++ style\n");
+
           printf(gettext("      -C        C++ style\n"));
-
           printf("      -F        Fortran style\n");
+
           printf(gettext("      -F        Fortran 77 style\n"));
-
           printf("      -P        Pascal style\n");
+
           printf(gettext("      -P        Pascal style\n"));
/* #ifndef PC_ONLY */
/* #ifndef PC_ONLY */
-
           printf("      -S        Shell style\n");
+
           printf(gettext("      -S        Shell style\n"));
/* #endif */
/* #endif */
-
           printf("      -a append target file\n");
+
           printf(gettext("      -a append target file\n"));
-
           printf("      -f:\n");
+
           printf(gettext("      -f:\n"));
#ifndef UNIX_ONLY
#ifndef UNIX_ONLY
-
           printf("          find language ( .ASM .BAS .C .FOR .PAS .PRO )\n");
+
           printf(gettext("          find language ( .ASM .BAS .C .FOR .PAS .PRO )\n"));
#endif
#endif
#ifndef PC_ONLY
#ifndef PC_ONLY
-
           printf("          find language ( .s .S .c .h .i .f .F .r .p .sh .csh )\n");
+
           printf(gettext("          find language ( .s .S .c .h .i .f .F .r .p .sh .csh )\n"));
#endif
#endif
-
           printf("      -j use only with project sources file.\n");
+
           printf(gettext("      -j use only with project sources file.\n"));
-
           printf("      -l and p;  line:  (compil.: %c or %c in first column or %c in line)\n",CD1,CD2,CD3);
+
           printf(gettext("      -l and p;  line:  (compil.: %c or %c in first column or %c in line)\n"),CD1,CD2,CD3);
-
           printf("                  page:  (compil.: begin with %c and end with %c)\n",CD4,CD5);
+
           printf(gettext("                  page:  (compil.: begin with %c and end with %c)\n"),CD4,CD5);
-
           printf("      -n insert line number\n");
+
           printf(gettext("      -n insert line number\n"));
-
           printf("      -s copy and add to screen\n");
+
           printf(gettext("      -s copy and add to screen\n"));
-
           printf("      -t copy the comment only\n");
+
           printf(gettext("      -t copy the comment only\n"));
-
           printf("      -v verbose\n");
+
           printf(gettext("      -v verbose\n"));
-
           printf("      -w overwrite (default option: switch off)\n");
+
           printf(gettext("      -w overwrite (default option: switch off)\n"));
-
           printf(" --> char_codes: all ASCII ");
+
           printf(gettext(" --> char_codes: all ASCII "));
#ifdef PC
#ifdef PC
-
           printf("except space:' '  (5 char max)\n");
+
           printf(gettext("except space:' '  (5 char max)\n"));
-
           printf("                example codes = UM or *OPTw or *HOS or ** for all\n");
+
           printf(gettext("                example codes = UM or *OPTw or *HOS or ** for all\n"));
#endif
#endif
#ifdef UNIX
#ifdef UNIX
-
           printf(" (5 char max)\n");
+
           printf(gettext(" (5 char max)\n"));
-
           printf("                example codes = UM or \\*OPTw or '* HOS' or '**' for all\n");
+
           printf(gettext("                example codes = UM or \\*OPTw or '* HOS' or '**' for all\n"));
#endif
#endif
-
           printf(" --> path_source: source file (option j: if it is a project file) \n");
+
           printf(gettext(" --> path_source: source file (option j: if it is a project file) \n"));
-
           printf(" --> path_target: target file\n");
+
           printf(gettext(" --> path_target: target file\n"));
#ifdef UNIX
#ifdef UNIX
-
           printf("Example: mkdoc -Csnv '*S' file.c \\*.verif_struct\n");
+
           printf(gettext("Example: mkd -Csnv '*S' file.c \\*.verif_struct\n"));
#endif
#endif
#ifdef PC
#ifdef PC
-
           printf("Example: mkd -Cs *Snv file.c *.str\n");
+
           printf(gettext("Example: mkd -Cs *Snv file.c *.str\n"));
#endif
#endif
-
           printf(".Exit 2\n");
+
           printf(gettext(".Exit 2\n"));
-
           exit(2); /* Pour un controle eventuel (make) */
+
           exit(2); /* Pour un contrôle éventuel (make) */
-
          } /*S*/
+
        } //S argc=2 et ?
-
        } /*S syntaxe */
+
    } //S argc <3 ou argc > 5 : syntaxe
-
 
+
-
/*O sinon executer la suite de la commande: */
+
/*O sinon exécuter la suite de la commande: */
     else
     else
         { /*S corps */
         { /*S corps */
Ligne 204 : Ligne 365 :
/*www n'est pas utile lorsque break est 'on' avant lancement de mkd
/*www n'est pas utile lorsque break est 'on' avant lancement de mkd
-
  eliminer cette procedure evite la recherche de command.com sur disque.
+
  éliminer cette procédure évite la recherche de command.com sur disque.
#ifdef PC
#ifdef PC
         c=system("BREAK ON");
         c=system("BREAK ON");
Ligne 212 : Ligne 373 :
/*O    init fsrc & fdoc buffers */
/*O    init fsrc & fdoc buffers */
           for(i=0;i<MAX;fsrc[i]='\0',fdoc[i]='\0',++i);
           for(i=0;i<MAX;fsrc[i]='\0',fdoc[i]='\0',++i);
-
/*O    init options par defaut */
+
/*O    init options par défaut */
           {A=0;B=0;C=0;F=0;P=0;S=0;a=0;f=0;j=0;l=0;n=0,p=0;s=0;t=0;v=0;w=0;} /*O*/
           {A=0;B=0;C=0;F=0;P=0;S=0;a=0;f=0;j=0;l=0;n=0,p=0;s=0;t=0;v=0;w=0;} /*O*/
           O=0; /* Option=0 */
           O=0; /* Option=0 */
Ligne 218 : Ligne 379 :
           if (argc>3)
           if (argc>3)
           { /*S argc>3 */
           { /*S argc>3 */
-
/*O      si en 2 eme parametre 1er char = '-' decoder les options */
+
/*O      si en 2ème paramètre 1er char = '-' décoder les options */
               if( argv[1][0]=='-')
               if( argv[1][0]=='-')
               { /*S*/
               { /*S*/
-
/*O          initialiser les parametres du tant que */
+
/*O          initialiser les paramètres du tant que */
                 O=1; /* Option=1 */
                 O=1; /* Option=1 */
                 c=1;
                 c=1;
                 i=1;
                 i=1;
-
/*O          tant que pas fin parametres options & (5 options max) */
+
/*O          tant que pas fin paramètres options & (5 options max) */
                 while (c != '\0' && i < 13)
                 while (c != '\0' && i < 13)
                 { /*S*/
                 { /*S*/
Ligne 250 : Ligne 411 :
               if((L=A+B+C+F+P+S)>1)
               if((L=A+B+C+F+P+S)>1)
                 {
                 {
-
                 printf("Syntax error: Too many 'Language' options:\n");
+
                 printf(gettext("Syntax error: Too many 'Language' options:\n"));
-
                 printf(" A or B or C or...please.\n.Exit 2\n");
+
                 printf(gettext(" A or B or C or...please.\n.Exit 2\n"));
                 exit(2);
                 exit(2);
                 }
                 }
Ligne 265 : Ligne 426 :
                 if (a==1 && w==1)
                 if (a==1 && w==1)
                 {
                 {
-
                 if (v) printf("Options a or w please... ");
+
                 if (v) printf(gettext("Options a or w please... "));
                 a=w=0;
                 a=w=0;
                 }
                 }
               } /*S*/
               } /*S*/
-
               /*wwwO sinon ecrire Option syntax error (OPTION DE COMPILATION) */
+
               /*wwwO sinon écrire Option syntax error (OPTION DE COMPILATION) */
               /*www else {printf("Option '-' syntax error\n");exit(2);} */
               /*www else {printf("Option '-' syntax error\n");exit(2);} */
           } /*S argc>3 */
           } /*S argc>3 */
Ligne 276 : Ligne 437 :
         if(L && v)
         if(L && v)
           { /*SL*/
           { /*SL*/
-
/*O      donner les options a l'ecran */
+
/*O      donner les options a l'écran */
-
           printf ("Force language comment, style ");
+
           printf (gettext("Force language comment, style "));
-
           if(A)printf("ASSEMBLER\n");
+
           if(A)printf(gettext("ASSEMBLER\n"));
-
           else if(B)printf("BASIC\n");
+
           else if(B)printf(gettext("BASIC\n"));
-
               else if(C)printf("C\n");
+
               else if(C)printf(gettext("C\n"));
-
                 else if(F)printf("FORTRAN\n");
+
                 else if(F)printf(gettext("FORTRAN\n"));
-
                     else if(P)printf("PASCAL\n");
+
                     else if(P)printf(gettext("PASCAL\n"));
-
                       else if(S)printf("SHELL\n");
+
                       else if(S)printf(gettext("SHELL\n"));
           } /*SL*/
           } /*SL*/
-
           if (v) printf ("Options a=%d f=%d j=%d l=%d n=%d p=%d s=%d t=%d w=%d\n",a,f,j,l,n,p,s,t,w);
+
           if (v) printf (gettext("Options a=%d f=%d j=%d l=%d n=%d p=%d s=%d t=%d w=%d\n"),a,f,j,l,n,p,s,t,w);
/*###########################################################################*/
/*###########################################################################*/
-
/*O    si ( argc > 3 et Opt ) examiner les cas ramenes a path_target=""     */
+
/*O    si ( argc > 3 et Opt ) examiner les cas *. *.* pour path_target=""   */
/*###########################################################################*/
/*###########################################################################*/
         if (argc > 3+O && ((c=argv[O+3][0])=='.'||c=='*') )
         if (argc > 3+O && ((c=argv[O+3][0])=='.'||c=='*') )
-
           { /*S cas ramenes */
+
           { /*S cas ramenés */
           if(c=='*')
           if(c=='*')
               { /*S *. *.* */
               { /*S *. *.* */
Ligne 298 : Ligne 459 :
               } /*S * */
               } /*S * */
           else
           else
-
               { /*S . */ /*P meme repertoire */
+
               { /*S . */ /*P même répertoire */
               if(argv[O+3][1]=='\0')argc=O+3;
               if(argv[O+3][1]=='\0')argc=O+3;
/*      Les cas '\*'.... sont examines plus loin */
/*      Les cas '\*'.... sont examines plus loin */
               } /*S . */
               } /*S . */
-
           } /*S cas ramenes */
+
           } /*S cas ramenés */
/*##########################################################################*/
/*##########################################################################*/
/*O    si argc<4 ou (argc<5 avec Options)
/*O    si argc<4 ou (argc<5 avec Options)
-
                   - ligne de commande "mkdoc -options char_codes path"
+
                   - ligne de commande "mkd -options char_codes path"
-
                   -                ou "mkdoc char_codes path"
+
                   -                ou "mkd char_codes path"
-
                   - (source et dest auront meme path avec suffixe different) */
+
                   - (source et dest auront même path avec suffixe différent) */
/*###########################################################################*/
/*###########################################################################*/
           if (argc<4+O)
           if (argc<4+O)
-
           { /*S meme path */
+
           { /*S même path */
-
/*O      alors si j=1 fprj=4eme argument de la ligne de commande */
+
/*O      alors si j=1 fprj=4ème argument de la ligne de commande */
               if (j==1) fprj=argv[3]; /* fichier projet si j */
               if (j==1) fprj=argv[3]; /* fichier projet si j */
-
/*O      fsrc=O+2eme arg. de la ligne de commande a copier dans fsrc */
+
/*O      fsrc=O+2ème arg. de la ligne de commande a copier dans fsrc */
               { /*S source */
               { /*S source */
               k=0;isource=0;
               k=0;isource=0;
Ligne 334 : Ligne 495 :
                     else if(c=='*')
                     else if(c=='*')
                     { /*S*/
                     { /*S*/
-
                     printf("Syntax error '*' in path_source.\n.Exit 2\n");
+
                     printf(gettext("Syntax error '*' in path_source.\n.Exit 2\n"));
                     exit(2);
                     exit(2);
                     } /*S*/
                     } /*S*/
Ligne 343 : Ligne 504 :
                 if (isource==1&&argv[O+2][1]==':')
                 if (isource==1&&argv[O+2][1]==':')
                 { /*S*/
                 { /*S*/
-
                 printf("Arg. syntax error '\\:'\n.Exit 2 \n");
+
                 printf(gettext("Arg. syntax error '\\:'\n.Exit 2 \n"));
                 exit(2);
                 exit(2);
                 } /*S*/
                 } /*S*/
Ligne 351 : Ligne 512 :
                 if(f&&!j)
                 if(f&&!j)
                 { /*S*/
                 { /*S*/
 +
                // puts("\nTEST: f positionné et pas j ... rechercher avec find"); //T
#include"find.inc.c"
#include"find.inc.c"
Ligne 372 : Ligne 534 :
                                 && ((c=(fdoc[i+3]))=='c'||c=='C'))
                                 && ((c=(fdoc[i+3]))=='c'||c=='C'))
                 { /*S*/
                 { /*S*/
-
                 printf("Syntax error: path_source, suffixe '.doc'\n.Exit 2\n");
+
                 printf(gettext("Syntax error: path_source, suffixe '.doc'\n.Exit 2\n"));
                 exit(2);
                 exit(2);
                 } /*S*/
                 } /*S*/
Ligne 389 : Ligne 551 :
/*###########################################################################*/
/*###########################################################################*/
/*O    sinon si ( argc > 3 et Opt )
/*O    sinon si ( argc > 3 et Opt )
-
                     -ligne de commande "mkdoc char_codes path_src path_target
+
                     -ligne de commande "mkd char_codes path_src path_target
-
                     -    ou " mkdoc -options char_codes path_src path_target
+
                     -    ou " mkd -options char_codes path_src path_target
-
                     -(path doc et path src seront differents) */
+
                     -(path doc et path src seront différents) */
/*##########################################################################*/
/*##########################################################################*/
           else if (argc > 3+O)
           else if (argc > 3+O)
-
               { /*S path differents */
+
               { /*S path différents */
/*O          copier les noms de fichier: */
/*O          copier les noms de fichier: */
-
/*O            si j=1 fprj=4eme argument de la ligne de commande */
+
/*O            si j=1 fprj=4ème argument de la ligne de commande */
                     if (j==1) fprj=argv[3];  /* 3 = O+2 */
                     if (j==1) fprj=argv[3];  /* 3 = O+2 */
-
/*              fsrc est O+2eme arg. de la ligne de commande a copier dans fsrc */
+
/*              fsrc est O+2ème arg. de la ligne de commande a copier dans fsrc */
-
/*O            copier le path source dans fsrc pour evaluation des parametres */
+
/*O            copier le path source dans fsrc pour évaluation des paramètres */
                     { /*S source */
                     { /*S source */
                     isource=0;itarget=0;
                     isource=0;itarget=0;
Ligne 419 : Ligne 581 :
                           else if(c=='*')
                           else if(c=='*')
                           { /*S*/
                           { /*S*/
-
                           printf("Syntax error '*' in path_source.\n.Exit 2\n");
+
                           printf(gettext("Syntax error '*' in path_source.\n.Exit 2\n"));
                           exit(2);
                           exit(2);
                           } /*S*/
                           } /*S*/
Ligne 430 : Ligne 592 :
                       if (isource==1&&argv[O+2][1]==':')
                       if (isource==1&&argv[O+2][1]==':')
                       { /*S*/
                       { /*S*/
-
                       printf("Arg. syntax error '\\:'\n.Exit 2\n");
+
                       printf(gettext("Arg. syntax error '\\:'\n.Exit 2\n"));
                       exit(2);
                       exit(2);
                       } /*S*/
                       } /*S*/
Ligne 457 : Ligne 619 :
                           if(c=='\0')
                           if(c=='\0')
                             { /* err */
                             { /* err */
-
                             printf("Path_target: syntax error at or near '\\'\n.Exit 2\n");
+
                             printf(gettext("Path_target: syntax error at or near '\\'\n.Exit 2\n"));
                             exit(2);
                             exit(2);
                             } /* err */
                             } /* err */
Ligne 474 : Ligne 636 :
                           if(c=='\0')
                           if(c=='\0')
                             { /* err */
                             { /* err */
-
                             printf("Path_target: syntax error at or near '/'\n.Exit 2\n");
+
                             printf(gettext("Path_target: syntax error at or near '/'\n.Exit 2\n"));
                             exit(2);
                             exit(2);
                             } /* err */
                             } /* err */
Ligne 487 : Ligne 649 :
/*O                  si * n'est pas en 1ere position copier le path target dans fdoc tq pas '*' */
/*O                  si * n'est pas en 1ere position copier le path target dans fdoc tq pas '*' */
                       if(itarget){for(i=0;i<itarget;i++)fdoc[i]=argv[argc-1][i];}
                       if(itarget){for(i=0;i<itarget;i++)fdoc[i]=argv[argc-1][i];}
-
/*O                  concatener le nom du fichier source  */
+
/*O                  concaténer le nom du fichier source  */
                       k=0;
                       k=0;
                       for(i=0;(c=argv[argc-2][i+isource]) !=0 && i < (MAX-5); ++i)
                       for(i=0;(c=argv[argc-2][i+isource]) !=0 && i < (MAX-5); ++i)
                       { /*S*/
                       { /*S*/
                           fdoc[i+itarget]=c;
                           fdoc[i+itarget]=c;
-
/*O                      si il y a un point, noter la derniere place */
+
/*O                      si il y a un point, noter la dernière place */
                           if(c=='.') k=i+itarget; /* position du dernier '.' dans la recopie */
                           if(c=='.') k=i+itarget; /* position du dernier '.' dans la recopie */
                       } /*S*/
                       } /*S*/
Ligne 499 : Ligne 661 :
                           if( argv[argc-1][ktar]== '.')
                           if( argv[argc-1][ktar]== '.')
                           { /*S*/
                           { /*S*/
-
/*O                        si c'est .* ou s'il n'est pas suivi d'une chaine */
+
/*O                        si c'est .* ou s'il n'est pas suivi d'une chaîne */
                             if( (c=argv[argc-1][ktar+1]) =='\0'||c=='*')
                             if( (c=argv[argc-1][ktar+1]) =='\0'||c=='*')
/*O                        alors donner le suffixe .doc au fichier documentaire */
/*O                        alors donner le suffixe .doc au fichier documentaire */
Ligne 510 : Ligne 672 :
                             fdoc[i+4] = '\0' ;
                             fdoc[i+4] = '\0' ;
                             } /*S*/
                             } /*S*/
-
/*O                        sinon (le '.' existe) concatener le suffixe demande */
+
/*O                        sinon (le '.' existe) concaténer le suffixe demande */
                             else
                             else
                             { /*S*/
                             { /*S*/
Ligne 521 : Ligne 683 :
                             } /*S*/
                             } /*S*/
                           } /*S*/
                           } /*S*/
-
/*O                      sinon le nom du suffixe est indedermine */
+
/*O                      sinon le nom du suffixe est indéterminé */
                           else
                           else
                           { /*S*/
                           { /*S*/
-
                           printf("Path target: suffixe not determined.\n");
+
                           printf(gettext("Path target: suffixe not determined.\n"));
                           fdoc[k]='\0';
                           fdoc[k]='\0';
                           } /*S*/
                           } /*S*/
Ligne 554 : Ligne 716 :
                           fdoc[k+4] = '\0' ;
                           fdoc[k+4] = '\0' ;
                           } /*S xxx.* */
                           } /*S xxx.* */
-
/*O                      sinon (le '.' existe) concatener le suffixe demande */
+
/*O                      sinon (le '.' existe) concaténer le suffixe demande */
                           else
                           else
                           { /*S xxx.abc */
                           { /*S xxx.abc */
Ligne 565 : Ligne 727 :
                       } /*S '.' */
                       } /*S '.' */
-
/*O                  sinon le nom du suffixe est indedermine */
+
/*O                  sinon le nom du suffixe est indéterminé */
                       else /* abcde */
                       else /* abcde */
                       { /*S*/
                       { /*S*/
                       for(i=0;(c=argv[argc-1][i]) != '\0' && i<MAX-1;fdoc[i]=c,++i);
                       for(i=0;(c=argv[argc-1][i]) != '\0' && i<MAX-1;fdoc[i]=c,++i);
-
                       printf("Path target: suffixe not determined.\n");
+
                       printf(gettext("Path target: suffixe not determined.\n"));
                       fdoc[i]='\0';
                       fdoc[i]='\0';
                       } /*S*/
                       } /*S*/
Ligne 576 : Ligne 738 :
/*########### controle des arguments ########################################*/
/*########### controle des arguments ########################################*/
-
/*O    si le fichier source est idendique au fichier target : */
+
/*O    si le fichier source est identique au fichier target : */
         k=1;
         k=1;
         for(i=0;k>0&&i<MAX;i++)
         for(i=0;k>0&&i<MAX;i++)
Ligne 596 : Ligne 758 :
           { /*S*/
           { /*S*/
/*O      envoi du message d'erreur et quitter */
/*O      envoi du message d'erreur et quitter */
-
           printf("Syntax error: (path_source : \'%s\') == (path_target = \'%s\')\n",fsrc,fdoc);
+
           printf(gettext("Syntax error: (path_source : \'%s\') == (path_target = \'%s\')\n"),fsrc,fdoc);
           printf(".Exit 2 \n");
           printf(".Exit 2 \n");
           exit(2);
           exit(2);
Ligne 608 : Ligne 770 :
           /*T printf("code nx1 pour test: %c\n",codes[0]); T*/
           /*T printf("code nx1 pour test: %c\n",codes[0]); T*/
-
/*O    si option v ecrire le nom du fichier documentaire a l'ecran */
+
/*O    si option v écrire le nom du fichier documentaire sur la sortie standard */
-
         if(v) printf("doc file : \'%s\' \n", fdoc);
+
         if(v) printf(gettext("doc file : \'%s\' \n"), fdoc);
-
/*O    si pas d'option a ni w v‚rifier l'existence et ses protections */
+
/*O    si pas d'option a ni w vérifier l'existence et ses protections */
         if (w==0 && a==0)
         if (w==0 && a==0)
           { /*S si !a !w */
           { /*S si !a !w */
/*O      si le fichier existe: */
/*O      si le fichier existe: */
           if( (access(fdoc, 00 )) == 0 )
           if( (access(fdoc, 00 )) == 0 )
-
/*O      alors si il n'est pas prot‚g‚ en ‚criture */
+
/*O      alors si il n'est pas protégé en écriture */
               if( (access(fdoc, 02 )) == 0 )
               if( (access(fdoc, 02 )) == 0 )
               { /*S*/
               { /*S*/
/*O          alors demander si overwrit ...si pas 'y'es quitter le programme */
/*O          alors demander si overwrit ...si pas 'y'es quitter le programme */
                 {
                 {
-
                 printf("\n OVERWRIT \'%s\' ...  y?\n",fdoc);
+
                 printf(gettext("\n OVERWRIT \'%s\' ...  y?\n"),fdoc);
                 if ( (c=(getch()))=='y' || c=='Y');
                 if ( (c=(getch()))=='y' || c=='Y');
                 else
                 else
                     { /*S*/
                     { /*S*/
-
                     printf(".Exit 1\n");
+
                     printf(gettext(".Exit 1\n"));
                     exit(1);
                     exit(1);
                     } /*S*/
                     } /*S*/
                 }
                 }
               } /*S*/
               } /*S*/
-
/*O          sinon pr‚ciser qu'il existe et est prot‚g‚ puis quitter avec retour = 2 */
+
/*O          sinon préciser qu'il existe et est protégé puis quitter avec retour = 2 */
               else
               else
               { /*S*/
               { /*S*/
-
                 printf("%s is write protected.\n", fdoc);
+
                 printf(gettext("%s is write protected.\n"), fdoc);
-
                 puts(".Exit 2\n");
+
                 puts(gettext(".Exit 2\n"));
                 exit(2);
                 exit(2);
               } /*S*/
               } /*S*/
Ligne 651 : Ligne 813 :
#endif
#endif
               {
               {
-
               printf("fopen file \'%s\' error for append\n.Exit 2\n",fdoc);
+
               printf(gettext("fopen file \'%s\' error for append\n.Exit 2\n"),fdoc);
               exit(2);
               exit(2);
               }
               }
           } /*S option a */
           } /*S option a */
-
/*O      sinon si option w ouvrir fdoc en ecriture */
+
/*O      sinon si option w ouvrir fdoc en écriture */
               else if (w==1)
               else if (w==1)
                 { /*S option w */
                 { /*S option w */
-
/*O            si erreur l'ecrire et sortir */
+
/*O            si erreur l'écrire et sortir */
#ifdef VC10
#ifdef VC10
if (fopen_s(&pfdoc,fdoc,"wb") != 0)
if (fopen_s(&pfdoc,fdoc,"wb") != 0)
Ligne 665 : Ligne 827 :
#endif
#endif
                     { /*S*/
                     { /*S*/
-
                     printf("fopen file \'%s\' error for overwrit\n.Exit 2\n",fdoc);
+
                     printf(gettext("fopen file \'%s\' error for overwrit\n.Exit 2\n"),fdoc);
                     exit(2);
                     exit(2);
                     } /*S*/
                     } /*S*/
Ligne 672 : Ligne 834 :
                 else /* ne doit jamais arriver.... */
                 else /* ne doit jamais arriver.... */
                 { /*Test*/
                 { /*Test*/
-
                 printf("error option -a or -w not found\n");
+
                 printf(gettext("error option -a or -w not found\n"));
                 exit(255);
                 exit(255);
                 } /*Test*/
                 } /*Test*/
Ligne 679 : Ligne 841 :
           if (j==1)
           if (j==1)
           { /*S si option j */
           { /*S si option j */
-
/*O      ecrire le nom du fichier projet a l'ecran */
+
/*O      écrire le nom du fichier projet a l'écran */
-
               printf("project file : \'%s\' \n", fprj);
+
               printf(gettext("project file : \'%s\' \n"), fprj);
-
/*O      si erreur d'ouverture ecrire not found et quitter le programme */
+
/*O      si erreur d'ouverture écrire not found et quitter le programme */
#ifdef VC10
#ifdef VC10
  if ( fopen_s(&pfprj,fprj,"r") != 0 )
  if ( fopen_s(&pfprj,fprj,"r") != 0 )
Ligne 688 : Ligne 850 :
#endif
#endif
               { /*S*/
               { /*S*/
-
               printf ("project file \'%s\' not found\n.Exit 2\n",fprj);
+
               printf (gettext("project file \'%s\' not found\n.Exit 2\n"),fprj);
               exit(2);
               exit(2);
               } /*S*/
               } /*S*/
Ligne 705 : Ligne 867 :
                 if( fsrc[0]!='\0' || fsrc[0]!='#' )
                 if( fsrc[0]!='\0' || fsrc[0]!='#' )
                 { /*S namefile exist */
                 { /*S namefile exist */
-
/*O                si option v ecrire le nom du fichier a documenter */
+
/*O                si option v écrire le nom du fichier a documenter */
-
                     if(v) printf("\n\nfile for doc: \'%s\'\n",fsrc);
+
                     if(v) printf(gettext("\n\nfile for doc: \'%s\'\n"),fsrc);
-
/*O                si option f determiner la place du point separateur du langage */
+
/*O                si option f déterminer la place du point séparateur du langage */
                     if(f)
                     if(f)
                     { /*S source */
                     { /*S source */
                     k=0;
                     k=0;
                     c=1;
                     c=1;
-
/*O                  determiner l'emplacement du point s'il existe */
+
/*O                  déterminer l'emplacement du point s'il existe */
                       for (i=0; fsrc[i] != '\0' && i < MAX-5;++i)
                       for (i=0; fsrc[i] != '\0' && i < MAX-5;++i)
                       { /*S*/
                       { /*S*/
Ligne 722 : Ligne 884 :
                     } /*S source */
                     } /*S source */
-
/*O                si le decriptage (langage) est determine */
+
/*O                si le décryptage (langage) est détermine */
                     if(L==1||p||l)
                     if(L==1||p||l)
/*O                alors: */
/*O                alors: */
Ligne 728 : Ligne 890 :
/*O                  si l'ouverture du fichier source n'est pas correcte */
/*O                  si l'ouverture du fichier source n'est pas correcte */
#ifdef VC10
#ifdef VC10
-
  if ( fopen_s(&pnfile,fsrc,"rb" ) != 0 )
+
                      if ( fopen_s(&pnfile,fsrc,"rb" ) != 0 )
#else
#else
-
                          if  (( pnfile = fopen ( fsrc,"rb" )) == 0 )
+
                      if  (( pnfile = fopen ( fsrc,"rb" )) == 0 )
#endif
#endif
-
/*O                     ecrire file "nomfich" not found */
+
/*O                   écrire file "nomfich" not found */
-
                            printf ("file \'%s\' not found for read\n",fsrc);
+
                      printf (gettext("file \'%s\' not found for read\n"),fsrc);
/*O                  sinon call tri ou langage */
/*O                  sinon call tri ou langage */
                           else
                           else
Ligne 740 : Ligne 902 :
if(n||s||v) /*www modifié le 10/03/2010 par JPL */
if(n||s||v) /*www modifié le 10/03/2010 par JPL */
{ /*S si*/
{ /*S si*/
-
if(v)fprintf(pfdoc,"%s\n(file %s :)", NL, fsrc );
+
if(v)fprintf(pfdoc,gettext("%s\n(file %s :)"), NL, fsrc );
-
if( v || s ) printf("\n\n(file %s :)\n",fsrc);
+
if( v || s ) printf(gettext("\n\n(file %s :)\n"),fsrc);
-
if(v)fprintf (pfdoc,"Options a=%d f=%d j=%d l=%d n=%d p=%d s=%d t=%d w=%d",a,f,j,l,n,p,s,t,w);
+
if(v)fprintf (pfdoc,gettext("Options a=%d f=%d j=%d l=%d n=%d p=%d s=%d t=%d w=%d"),a,f,j,l,n,p,s,t,w);
fprintf (pfdoc, "%s", NL );
fprintf (pfdoc, "%s", NL );
} /*S fin si*/
} /*S fin si*/
Ligne 752 : Ligne 914 :
                                       else if(P)pascal_(pfdoc,pnfile);
                                       else if(P)pascal_(pfdoc,pnfile);
                                         else if(S)shell_(pfdoc,pnfile);
                                         else if(S)shell_(pfdoc,pnfile);
-
                                             else if(l==0&&p==0)printf("Error, language not determined !.\n");
+
                                             else if(l==0&&p==0)printf(gettext("Error, language not determined !.\n"));
/*O                      fermer le fichier source */
/*O                      fermer le fichier source */
                           if (fclose(pnfile))
                           if (fclose(pnfile))
                             { /*S si*/
                             { /*S si*/
-
                             printf("Closure error: \'%s\'\n.Exit 2\n",fsrc);
+
                             printf(gettext("Closure error: \'%s\'\n.Exit 2\n"),fsrc);
                             /*www exit(2); */
                             /*www exit(2); */
                             } /*S fin si*/
                             } /*S fin si*/
Ligne 766 : Ligne 928 :
                 if (fclose(pfprj))
                 if (fclose(pfprj))
                 { /*S*/
                 { /*S*/
-
                 printf("Closure error: \'%s\'\n.Exit 2\n",fprj);
+
                 printf(gettext("Closure error: \'%s\'\n.Exit 2\n"),fprj);
                 exit(2);
                 exit(2);
                 } /*S*/
                 } /*S*/
Ligne 774 : Ligne 936 :
           else
           else
           { /*S !j */
           { /*S !j */
-
/*O      si option v ecrire le nom du fichier a documenter */
+
/*O      si option v écrire le nom du fichier a documenter */
-
               if(v) printf("\n\nfile for doc: \'%s\' \n",fsrc);
+
               if(v) printf(gettext("\n\nfile for doc: \'%s\' \n"),fsrc);
/*O      si l'ouverture du fichier n'est pas correcte */
/*O      si l'ouverture du fichier n'est pas correcte */
#ifdef VC10
#ifdef VC10
Ligne 783 : Ligne 945 :
#endif
#endif
               { /*S*/
               { /*S*/
-
/*O          ecrire file "nomfich" not found */
+
/*O          écrire file "nomfich" not found */
-
                 printf("file \'%s\' not found for read\n.Exit 2\n",fsrc);
+
                 printf(gettext("file \'%s\' not found for read\n.Exit 2\n"),fsrc);
                 exit(2);
                 exit(2);
               } /*S*/
               } /*S*/
Ligne 793 : Ligne 955 :
               if(n||v||s) /*www modifié le 10/03/2010 par JPL */
               if(n||v||s) /*www modifié le 10/03/2010 par JPL */
                 { /*S*/
                 { /*S*/
-
if(v)fprintf(pfdoc,"%s\n(file %s :)", NL, fsrc );
+
if(v)fprintf(pfdoc,gettext("%s\n(file %s :)"), NL, fsrc );
-
if( v || s ) printf("\n\n(file %s :)\n",fsrc);
+
if( v || s ) printf(gettext("\n\n(file %s :)\n"),fsrc);
-
if(v)fprintf (pfdoc,"Options a=%d f=%d j=%d l=%d n=%d p=%d s=%d t=%d w=%d",a,f,j,l,n,p,s,t,w);
+
if(v)fprintf (pfdoc,gettext("Options a=%d f=%d j=%d l=%d n=%d p=%d s=%d t=%d w=%d"),a,f,j,l,n,p,s,t,w);
fprintf (pfdoc, "%s", NL );
fprintf (pfdoc, "%s", NL );
                 } /*S*/
                 } /*S*/
Ligne 807 : Ligne 969 :
                                 else if(l==0&&p==0)
                                 else if(l==0&&p==0)
                                 { /*S*/
                                 { /*S*/
-
                                 printf("Error, language not determined !.\n.Exit 2\n");
+
                                 printf(gettext("Error, programming language not found !.\n.Exit 2\n"));
                                 exit(2);
                                 exit(2);
                                 } /*S*/
                                 } /*S*/
Ligne 813 : Ligne 975 :
                 if (fclose(pnfile))
                 if (fclose(pnfile))
                 { /*S*/
                 { /*S*/
-
                 printf("Closure error: \'%s\'\n.Exit 2 \n",fdoc);
+
                 printf(gettext("Closure error: \'%s\'\n.Exit 2 \n"),fdoc);
                 exit(2);
                 exit(2);
                 } /*S*/
                 } /*S*/
Ligne 821 : Ligne 983 :
           if (fclose(pfdoc))
           if (fclose(pfdoc))
           { /*S*/
           { /*S*/
-
           printf("Closure \'%s\' error\n.Exit 2\n",fdoc);
+
           printf(gettext("Closure \'%s\' error\n.Exit 2\n"),fdoc);
           exit(2);
           exit(2);
           } /*S*/
           } /*S*/
/*O    ecrire DOC "file_src" END */
/*O    ecrire DOC "file_src" END */
-
           if(v) printf("\n\nDOC %s END\n",fdoc);
+
           if(v) printf(gettext("\n\nDOC %s END\n"),fdoc);
         } /*S corps */
         } /*S corps */
} /*S main */
} /*S main */
</pre>
</pre>
 +
{{Boîte déroulante/fin}}
[[Catégorie:Générateurs de documentation]]
[[Catégorie:Générateurs de documentation]]

Version actuelle en date du 11 mai 2013 à 14:48

Retour aux fichiers en développement →


version.h

mkd.h

	// asm.cpp:
	extern int asm_(FILE *pfdoc, FILE *pnfile);

     
	// File: basic.c
	void basic_ (FILE * pfdoc, FILE * pnfile);

     
	// File: cpp.c
	extern int cpp_ (FILE * pfdoc, FILE * pnfile);
     
	// File: fortran.c
	void fortran_ (FILE * pfdoc, FILE * pnfile);
     
	// File: pascal.c (Comments for UTF-8 text editor)
	void pascal_ (FILE * pfdoc, FILE * pnfile);

     
	// File: shell.c (Comments for UTF-8 text editor)
	void shell_ (FILE * pfdoc, FILE * pnfile);

     
	// File: tri.c
	void tri_ (FILE * pfdoc, FILE * pnfile);

mkd.c

Outils personnels