Hi!

- fixed macros in portab.h: added extra parentesis around parameters;
- removed duplicated macro in exeflat.c.

--- Begin Message ---
diff -ruNp old/hdr/portab.h new/hdr/portab.h
--- old/hdr/portab.h    2004-05-09 17:24:02.000000000 +0000
+++ new/hdr/portab.h    2004-05-24 21:31:58.000000000 +0000
@@ -301,10 +301,10 @@ typedef VOID (FAR ASMCFUNC * intvec) (vo
        unreferenced parameter 'x'
        and (hopefully) generates no code
 */
-#define UNREFERENCED_PARAMETER(x) (void)x;
+#define UNREFERENCED_PARAMETER(x) (void)(x)
 
 #ifdef I86                      /* commandline overflow - removing /DPROTO TE */
 #define PROTO
 #endif
 
-#define LENGTH(x) (sizeof(x)/sizeof(x[0]))
+#define LENGTH(x) (sizeof (x)/sizeof *(x))
diff -ruNp old/utils/exeflat.c new/utils/exeflat.c
--- old/utils/exeflat.c 2004-02-07 10:04:24.000000000 +0000
+++ new/utils/exeflat.c 2004-05-11 02:17:54.000000000 +0000
@@ -52,8 +52,6 @@ large portions copied from task.c
 
 #define BUFSIZE 32768u
 
-#define LENGTH(x) (sizeof(x)/sizeof(x[0]))
-
 typedef struct {
   UWORD off, seg;
 } farptr;

--- End Message ---

Reply via email to