[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
multiple file processing doesn't work on sparc64
From: |
Jan Oravec |
Subject: |
multiple file processing doesn't work on sparc64 |
Date: |
Wed, 20 Aug 2003 09:44:17 +0200 |
User-agent: |
Mutt/1.4.1i |
Hello,
'numfiles' is defined as 'long' in main.c and in awkgram it is defined as
'extern int'. While 'int' is 32-bit and 'long' is 64-bit on 64-bit
architectures and byte ordering is big endian on sparc architectures, the
result is that one cannot specify multiple '-f' flags when gawk is compiled
on sparc64 in 64-bit user space.
I am not on the list, please keep me in CC:.
The patch to solve this problem:
--- gawk-3.1.3/awkgram.c.old 2003-07-04 19:49:50.000000000 +0200
+++ gawk-3.1.3/awkgram.c 2003-08-20 09:34:15.000000000 +0200
@@ -216,7 +216,7 @@
extern char *source;
extern int sourceline;
extern struct src *srcfiles;
-extern int numfiles;
+extern long numfiles;
extern int errcount;
extern NODE *begin_block;
extern NODE *end_block;
--- gawk-3.1.3/awkgram.y.old 2003-07-04 19:25:23.000000000 +0200
+++ gawk-3.1.3/awkgram.y 2003-08-20 09:34:30.000000000 +0200
@@ -90,7 +90,7 @@
extern char *source;
extern int sourceline;
extern struct src *srcfiles;
-extern int numfiles;
+extern long numfiles;
extern int errcount;
extern NODE *begin_block;
extern NODE *end_block;
Best Regards,
--
Jan Oravec
6COM s.r.o.
http://www.6com.sk
- multiple file processing doesn't work on sparc64,
Jan Oravec <=