Correction on stdarg

This commit is contained in:
Frederic Petrot 2003-09-11 15:08:54 +00:00
parent 395e59268d
commit bb12c1c00e
5 changed files with 11 additions and 11 deletions

View File

@ -15,7 +15,7 @@
/* les inclusions */
#include <stdio.h>
#include <varargs.h>
#include <stdarg.h>
#include "mut.h"
#include "mlo.h"
#include "rcn.h"
@ -117,4 +117,4 @@ extern float elpLotrsCapaGrid(lotrs_list *) ;
extern int elpLofigCapaDiff(lofig_list *) ;
extern int elpLofigCapaGrid(lofig_list *) ;
extern int elpLofigShrink(lofig_list *) ;
extern short elpError() ;
extern short elpError(short, ...) ;

View File

@ -15,7 +15,6 @@
/* traitement des erreur elp */
/****************************************************************************/
#include <stdarg.h>
#include "elp.h"
@ -36,10 +35,9 @@
/* ------------------- */
/* La fonction renvoie le numero de l'erreur. */
/*****************************************************************************/
elperrorFCT short elpError(errnum, ...)
short errnum ;
elperrorFCT short elpError(short errnum, ...)
{
va_list arg ;
va_list arg;
if(elpLang == elpENGLISH)
fprintf(stderr,"\n!!! elp error: %d !!!\n",errnum) ;

View File

@ -30,6 +30,9 @@
* is provided. *
* Updates : AUGUST, 12th 2002, Pierre Nguyen Tuong *
* $Log: alc_pars_l6.c,v $
* Revision 1.9 2003/09/11 15:08:50 fred
* Correction on stdarg
*
* Revision 1.8 2003/09/11 13:07:06 fred
* Changing varargs into stdarg, and updating the sources accordingly.
*
@ -172,7 +175,7 @@ float decode_capa __P(( losig_list*, chain_list*, char*, int ));
int type_line __P(( chain_list*, char*, int ));
chain_list* read_line __P(( FILE*, char*, int ));
void free_line __P(( chain_list* ));
void mal_error __P(());
void mal_error __P(( char *, ...));
void chk_header __P(( chain_list*, char*, int ));
unsigned char decode_layer __P(( char*, char*, int ));
data_loins* decode_ins __P(( chain_list*, char*, int ));
@ -1289,12 +1292,11 @@ chain_list *head;
void mal_error( char *fname, ... )
{
va_list index;
char *fname;
int line;
char *func;
char *fmt;
va_start( fname, index );
va_start( index, fname );
fname = va_arg( index, char* );
line = va_arg( index, int );
func = va_arg( index, char* );

View File

@ -911,7 +911,7 @@ void tooutput( FILE *fd, ... )
va_list index;
char *fmt;
va_start( fd, index );
va_start( index, fd );
fmt = va_arg( index, char* );

View File

@ -67,7 +67,7 @@ void sorttransistormos __P(( lofig_list *ptfig,
char *vdd
));
void sortcircuit __P(( lofig_list *ptfig, FILE *df ));
void tooutput __P(()); /* va_list. */
void tooutput __P(( FILE *, ...));
int sortconnecteur_ordre __P(( FILE *df, chain_list*, locon_list*, int ));
#endif