pb getopt entre solaris et Linux
This commit is contained in:
parent
2c5b004941
commit
c6eaef8413
|
@ -4,6 +4,6 @@ bin_PROGRAMS = exp
|
|||
|
||||
YACC = @YACC@ -d -v --debug
|
||||
CFLAGS = @CFLAGS@ @ALLIANCE_CFLAGS@
|
||||
exp_LDADD = -lm -lfl
|
||||
exp_LDADD =
|
||||
|
||||
exp_SOURCES = exp.h expy.y expl.l ht.c ht.h main.c
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <getopt.h>
|
||||
// #include <getopt.h>
|
||||
#include "exp.h"
|
||||
#include "ht.h"
|
||||
|
||||
|
@ -20,8 +20,14 @@ void getoption (int ac, char *av[], FILE ** expout, FILE ** expin)
|
|||
{
|
||||
char option;
|
||||
int verbose;
|
||||
|
||||
extern char *optarg;
|
||||
extern long optind;
|
||||
extern char getopt (long, char **, char *);
|
||||
|
||||
*expin = stdin;
|
||||
*expout = stdout;
|
||||
|
||||
yydebug = 0;
|
||||
|
||||
dico=htinit(10000);
|
||||
|
|
Loading…
Reference in New Issue