]> www.ginac.de Git - cln.git/commitdiff
Replace unused macro with cl_unused.
authorRichard Kreckel <kreckel@ginac.de>
Mon, 19 Oct 2020 08:36:57 +0000 (10:36 +0200)
committerRichard Kreckel <kreckel@ginac.de>
Mon, 19 Oct 2020 08:36:57 +0000 (10:36 +0200)
It has become customary to use 'unused' within bitfields. Better avoid
this conflict. This fixes cross-compilation issues on several ARM-based
host platforms.

39 files changed:
src/base/cl_low.h
src/base/cl_macros.h
src/base/digitseq/cl_DS.h
src/base/digitseq/cl_DS_mul_fftm.h
src/base/digitseq/cl_DS_mul_nuss.h
src/base/hash/cl_hash.h
src/base/ring/cl_no_ring.cc
src/base/symbol/cl_symbol.cc
src/complex/cl_C.h
src/complex/input/cl_N_read.cc
src/complex/ring/cl_C_ring.cc
src/complex/transcendental/cl_C_expt_C.cc
src/float/dfloat/cl_DF.h
src/float/dfloat/misc/cl_DF_digits.cc
src/float/ffloat/cl_FF.h
src/float/ffloat/misc/cl_FF_digits.cc
src/float/input/cl_F_read.cc
src/float/lfloat/cl_LF_impl.h
src/float/sfloat/cl_SF.h
src/float/sfloat/misc/cl_SF_digits.cc
src/float/transcendental/cl_LF_ratseries_.cc
src/integer/cl_I.h
src/integer/ring/cl_0_ring.cc
src/integer/ring/cl_I_ring.cc
src/modinteger/cl_MI.cc
src/modinteger/cl_MI_int.h
src/modinteger/cl_MI_std.h
src/polynomial/elem/cl_UP_GF2.h
src/polynomial/elem/cl_UP_MI.h
src/polynomial/elem/cl_UP_gen.h
src/polynomial/elem/cl_UP_no_ring.cc
src/polynomial/elem/cl_UP_number.h
src/rational/cl_RA.h
src/rational/ring/cl_RA_ring.cc
src/real/input/cl_R_read.cc
src/real/ring/cl_R_ring.cc
src/vector/cl_GV_I.cc
src/vector/cl_GV_number_debug.cc
src/vector/cl_SV_number_debug.cc

index ee47bf13d7d12d34c51659249d3796f6d57eff64..8d094245562b11ecce671744ba6aa0917608ad83 100644 (file)
@@ -161,7 +161,7 @@ inline uint32 mulu16 (uint16 arg1, uint16 arg2)
       var union { double f; uint32 i[2]; uint16 s[4]; } __fi;  \
       __fi.f = (double)(sint32)(_x)*(double)(sint32)(_y)       \
                + (double)(4503599627370496.0L); /* + 2^52, zum Normalisieren */\
-      unused (hi_zuweisung __fi.s[1]); /* mittlere 16 Bit herausholen, (benutzt CL_CPU_BIG_ENDIAN_P !) */\
+      cl_unused (hi_zuweisung __fi.s[1]); /* mittlere 16 Bit herausholen, (benutzt CL_CPU_BIG_ENDIAN_P !) */\
       lo_zuweisung __fi.i[1]; /* untere 32 Bit herausholen (benutzt CL_CPU_BIG_ENDIAN_P !)    */\
     }
 #else
@@ -212,7 +212,7 @@ inline uint32 mulu32_unchecked (uint32 arg1, uint32 arg2)
        var uint32 _hi;            \
        var uint32 _lo;            \
        __asm__("mulul %3,%0:%1" : "=d" (_hi), "=d"(_lo) : "1" (_x), "dm" (_y) ); \
-       unused (hi_zuweisung _hi); \
+       cl_unused (hi_zuweisung _hi); \
        lo_zuweisung _lo;          \
      })
 #elif defined(__GNUC__) && defined(__m68k__)
@@ -233,7 +233,7 @@ inline uint32 mulu32_unchecked (uint32 arg1, uint32 arg2)
         _hi += high16(_mid); _mid = highlow32_0(low16(_mid));          \
         _lo += _mid; if (_lo < _mid) { _hi += 1; } /* 64-Bit-Addition */\
        }                                                               \
-       unused (hi_zuweisung _hi);                                      \
+       cl_unused (hi_zuweisung _hi);                                   \
        lo_zuweisung _lo;                                               \
      })
 #elif defined(__GNUC__) && defined(__sparc64__) && !defined(NO_ASM)
@@ -243,20 +243,20 @@ inline uint32 mulu32_unchecked (uint32 arg1, uint32 arg2)
               : "=r" (_prod)                                   \
               : "r" ((uint32)(x)), "r" ((uint32)(y))           \
              );                                                \
-       unused (hi_zuweisung (uint32)(_prod>>32));              \
+       cl_unused (hi_zuweisung (uint32)(_prod>>32));           \
        lo_zuweisung (uint32)(_prod);                           \
      })
 #elif defined(__GNUC__) && defined(__sparc__) && !defined(NO_ASM)
   #define mulu32(x,y,hi_zuweisung,lo_zuweisung)  \
     ({ lo_zuweisung mulu32_(x,y); /* extern in Assembler */    \
       {var register uint32 _hi __asm__("%g1");                 \
-       unused (hi_zuweisung _hi);                              \
+       cl_unused (hi_zuweisung _hi);                           \
      }})
 #elif defined(__GNUC__) && defined(__arm__) && 0 // see comment cl_asm_arm.cc
   #define mulu32(x,y,hi_zuweisung,lo_zuweisung)  \
     ({ lo_zuweisung mulu32_(x,y); /* extern in Assembler */    \
       {var register uint32 _hi __asm__("%r1"/*"%a2"*/);                \
-       unused (hi_zuweisung _hi);                              \
+       cl_unused (hi_zuweisung _hi);                           \
      }})
 #elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) && !defined(NO_ASM)
   #define mulu32(x,y,hi_zuweisung,lo_zuweisung)  \
@@ -266,7 +266,7 @@ inline uint32 mulu32_unchecked (uint32 arg1, uint32 arg2)
                : "=d" /* %edx */ (_hi), "=a" /* %eax */ (_lo)    \
                : "g" ((uint32)(x)), "1" /* %eax */ ((uint32)(y)) \
               );                                                 \
-       unused (hi_zuweisung _hi); lo_zuweisung _lo;              \
+       cl_unused (hi_zuweisung _hi); lo_zuweisung _lo;              \
      })
 #elif defined(__GNUC__) && defined(__mips__) && !defined(NO_ASM)
   #if __mips_isa_rev >= 6
@@ -281,12 +281,12 @@ inline uint32 mulu32_unchecked (uint32 arg1, uint32 arg2)
                : "=r" (_hi), "=r" (_lo)               \
                : "r" ((uint32)(x)), "r" ((uint32)(y)) \
               );                                      \
-       unused (hi_zuweisung _hi); lo_zuweisung _lo;   \
+       cl_unused (hi_zuweisung _hi); lo_zuweisung _lo;   \
      })
 #elif defined(__GNUC__) && !defined(__arm__)
   #define mulu32(x,y,hi_zuweisung,lo_zuweisung)  \
     ({ var register uint64 _prod = (uint64)(uint32)(x) * (uint64)(uint32)(y); \
-       unused (hi_zuweisung (uint32)(_prod>>32));                             \
+       cl_unused (hi_zuweisung (uint32)(_prod>>32));                             \
        lo_zuweisung (uint32)(_prod);                                          \
      })
 #elif defined(WATCOM) && defined(__i386__) && !defined(NO_ASM)
@@ -294,14 +294,14 @@ inline uint32 mulu32_unchecked (uint32 arg1, uint32 arg2)
     { var register uint32 _hi;                     \
       var register uint32 _lo;                     \
       _lo = mulu32_(x,y), _hi = mulu32_high_();    \
-      unused (hi_zuweisung _hi); lo_zuweisung _lo; \
+      cl_unused (hi_zuweisung _hi); lo_zuweisung _lo; \
     }
   extern "C" uint32 mulu32_high_ (void);
   #pragma aux mulu32_ = 0xF7 0xE2 /* mull %edx */ parm [eax] [edx] value [eax] modify [eax edx];
   #pragma aux mulu32_high_ = /* */ value [edx] modify [];
 #else
   #define mulu32(x,y,hi_zuweisung,lo_zuweisung)  \
-    { lo_zuweisung mulu32_(x,y); unused (hi_zuweisung mulu32_high); }
+    { lo_zuweisung mulu32_(x,y); cl_unused (hi_zuweisung mulu32_high); }
   #if (defined(__m68k__) || defined(__sparc__) || defined(__sparc64__) || defined(__arm__) || (defined(__i386__) && !defined(WATCOM) && !defined(MICROSOFT)) || defined(__x86_64__) || defined(__mips__) || defined(__hppa__)) && !defined(NO_ASM)
     // mulu32_ extern in Assembler
     #if defined(__sparc__) || defined(__sparc64__)
@@ -363,14 +363,14 @@ inline uint32 mulu32_unchecked (uint32 arg1, uint32 arg2)
                : "=r" (_hi)            \
                : "r" (_x), "r" (_y)    \
               );                       \
-       unused (hi_zuweisung _hi);      \
+       cl_unused (hi_zuweisung _hi);   \
        lo_zuweisung _lo;               \
      })
 #elif defined(__GNUC__) && defined(__sparc64__) && !defined(NO_ASM)
   #define mulu64(x,y,hi_zuweisung,lo_zuweisung)  \
     ({ lo_zuweisung mulu64_(x,y); /* extern in Assembler */    \
       {var register uint64 _hi __asm__("%g2");                 \
-       unused (hi_zuweisung _hi);                              \
+       cl_unused (hi_zuweisung _hi);                           \
      }})
 #elif defined(__GNUC__) && defined(__x86_64__) && !defined(NO_ASM)
   #define mulu64(x,y,hi_zuweisung,lo_zuweisung)         \
@@ -380,7 +380,7 @@ inline uint32 mulu32_unchecked (uint32 arg1, uint32 arg2)
                : "=d" /* %rdx */ (_hi), "=a" /* %rax */ (_lo)     \
                : "rm" ((uint64)(x)), "1" /* %rax */ ((uint64)(y)) \
               );                                                  \
-       unused (hi_zuweisung _hi); lo_zuweisung _lo;               \
+       cl_unused (hi_zuweisung _hi); lo_zuweisung _lo;               \
      })
 #elif defined(__GNUC__) && defined(__ia64__) && !defined(NO_ASM)
   #define mulu64(x,y,hi_zuweisung,lo_zuweisung)         \
@@ -391,11 +391,11 @@ inline uint32 mulu32_unchecked (uint32 arg1, uint32 arg2)
                : "=f" (_hi)                                                \
                : "f" ((uint64)(_x)), "f" ((uint64)(_y))                            \
               );                                                           \
-       unused (hi_zuweisung _hi); lo_zuweisung ((uint64)(_x)*(uint64)(_y)); \
+       cl_unused (hi_zuweisung _hi); lo_zuweisung ((uint64)(_x)*(uint64)(_y)); \
      })
 #else
   #define mulu64(x,y,hi_zuweisung,lo_zuweisung)  \
-    { lo_zuweisung mulu64_(x,y); unused (hi_zuweisung mulu64_high); }
+    { lo_zuweisung mulu64_(x,y); cl_unused (hi_zuweisung mulu64_high); }
   #if defined(__sparc64__) && !defined(NO_ASM)
     // mulu64_ extern in Assembler
     extern "C" uint64 _get_g2 (void);
@@ -456,13 +456,13 @@ inline uint32 mulu32_unchecked (uint32 arg1, uint32 arg2)
         "sub %2,%1,%1"                  \
         : "=&r" (__q), "=&r" (__r)      \
         : "r" (__x), "r" (__y));        \
-      unused (q_zuweisung (uint16)__q); \
+      cl_unused (q_zuweisung (uint16)__q); \
       r_zuweisung (uint16)__r;          \
      })
 #elif defined(__GNUC__) && (defined(__sparc__) || defined(__sparc64__)) && !defined(NO_ASM)
   #define divu_3216_1616(x,y,q_zuweisung,r_zuweisung)  \
     ({ var uint32 __qr = divu_3216_1616_(x,y); /* extern in Assembler */\
-       unused (q_zuweisung low16(__qr));                               \
+       cl_unused (q_zuweisung low16(__qr));                            \
        r_zuweisung high16(__qr);                                       \
      })
 #elif defined(__GNUC__) && defined(__m68k__) && !defined(NO_ASM)
@@ -473,7 +473,7 @@ inline uint32 mulu32_unchecked (uint32 arg1, uint32 arg2)
       __asm__ __volatile__ ("                                          \
         divu %2,%0                                                     \
         " : "=d" (__qr) : "0" (__x), "dm" (__y));                      \
-      unused (q_zuweisung low16(__qr));                                        \
+      cl_unused (q_zuweisung low16(__qr));                                     \
       r_zuweisung high16(__qr);                                                \
      })
 #elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) && !defined(NO_ASM)
@@ -486,38 +486,38 @@ inline uint32 mulu32_unchecked (uint32 arg1, uint32 arg2)
               : "=a" /* %ax */ (__q), "=d" /* %dx */ (__r)             \
               : "1" /* %dx */ ((uint16)(high16(__x))), "0" /* %ax */ ((uint16)(low16(__x))), "rm" (__y) \
              );                                                                \
-      unused (q_zuweisung __q);                                                \
+      cl_unused (q_zuweisung __q);                                             \
       r_zuweisung __r;                                                 \
      })
 #elif defined(__GNUC__) && defined(__arm__) && 0 // see comment cl_asm_arm.cc
   #define divu_3216_1616(x,y,q_zuweisung,r_zuweisung)  \
     { var uint32 __q = divu_3216_1616_(x,y); /* extern in Assembler */ \
       var register uint32 __r __asm__("%r1"/*"%a2"*/);                 \
-      unused (q_zuweisung __q); r_zuweisung __r;                       \
+      cl_unused (q_zuweisung __q); r_zuweisung __r;                    \
     }
 #elif defined(__GNUC__) && !defined(__arm__)
   #define divu_3216_1616(x,y,q_zuweisung,r_zuweisung)  \
     ({var uint32 __x = (x);                                            \
       var uint16 __y = (y);                                            \
       var uint16 __q = floor(__x,__y);                                 \
-      unused (q_zuweisung __q);                                                \
+      cl_unused (q_zuweisung __q);                                             \
       r_zuweisung (__x - __q * __y);                                   \
      })
 #elif (defined(__sparc__) || defined(__sparc64__)) && !defined(NO_ASM)
   #define divu_3216_1616(x,y,q_zuweisung,r_zuweisung)  \
     { var uint32 __qr = divu_3216_1616_(x,y); /* extern in Assembler */        \
-      unused (q_zuweisung low16(__qr));                                        \
+      cl_unused (q_zuweisung low16(__qr));                                     \
       r_zuweisung high16(__qr);                                                \
     }
 #elif defined(__arm__) && !defined(NO_ASM)
   #define divu_3216_1616(x,y,q_zuweisung,r_zuweisung)  \
-    { unused (q_zuweisung divu_3216_1616_(x,y)); /* extern in Assembler */ \
+    { cl_unused (q_zuweisung divu_3216_1616_(x,y)); /* extern in Assembler */ \
       r_zuweisung divu_16_rest;                                                   \
     }
   #define NEED_VAR_divu_16_rest
 #else
   #define divu_3216_1616(x,y,q_zuweisung,r_zuweisung)  \
-    { unused (q_zuweisung divu_3216_1616_(x,y)); r_zuweisung divu_16_rest; }
+    { cl_unused (q_zuweisung divu_3216_1616_(x,y)); r_zuweisung divu_16_rest; }
   #define NEED_FUNCTION_divu_3216_1616_
 #endif
 
@@ -704,7 +704,7 @@ inline uint32 mulu32_unchecked (uint32 arg1, uint32 arg2)
       __asm__ __volatile__ ("                                          \
         divul %4,%1:%0                                                 \
         " : "=d" (__q), "=d" (__r) : "1" (__xhi), "0" (__xlo), "dm" (__y)); \
-      unused (q_zuweisung __q);                                                \
+      cl_unused (q_zuweisung __q);                                             \
       r_zuweisung __r;                                                 \
      })
   #define divu_6432_3232_(xhi,xlo,y) \
@@ -723,20 +723,20 @@ inline uint32 mulu32_unchecked (uint32 arg1, uint32 arg2)
         "sub %3,%1,%1"             \
         : "=&r" (__q), "=&r" (__r) \
         : "r" (__xhi), "r" (__xlo), "r" (__y)); \
-      unused (q_zuweisung (uint32)__q); \
+      cl_unused (q_zuweisung (uint32)__q); \
       r_zuweisung (uint32)__r;     \
      })
 #elif defined(__GNUC__) && (defined(__sparc__) || defined(__sparc64__)) && !defined(NO_ASM)
   #define divu_6432_3232(xhi,xlo,y,q_zuweisung,r_zuweisung)  \
     ({ var uint32 _q = divu_6432_3232_(xhi,xlo,y); /* extern in Assembler */\
        var register uint32 _r __asm__("%g1");                              \
-       unused (q_zuweisung _q); r_zuweisung _r;                                    \
+       cl_unused (q_zuweisung _q); r_zuweisung _r;                                 \
      })
 #elif defined(__GNUC__) && defined(__arm__) && 0 // see comment cl_asm_arm.cc
   #define divu_6432_3232(xhi,xlo,y,q_zuweisung,r_zuweisung)  \
     ({ var uint32 _q = divu_6432_3232_(xhi,xlo,y); /* extern in Assembler */\
        var register uint32 _r __asm__("%r1"/*"%a2"*/);                     \
-       unused (q_zuweisung _q); r_zuweisung _r;                                    \
+       cl_unused (q_zuweisung _q); r_zuweisung _r;                                 \
      })
 #elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) && !defined(NO_ASM)
   #define divu_6432_3232(xhi,xlo,y,q_zuweisung,r_zuweisung)  \
@@ -750,7 +750,7 @@ inline uint32 mulu32_unchecked (uint32 arg1, uint32 arg2)
          : "=a" /* %eax */ (__q), "=d" /* %edx */ (__r)                        \
          : "1" /* %edx */ (__xhi), "0" /* %eax */ (__xlo), "rm" (__y)  \
          );                                                            \
-      unused (q_zuweisung __q);                                                \
+      cl_unused (q_zuweisung __q);                                             \
       r_zuweisung __r;                                                 \
      })
   #define divu_6432_3232_(xhi,xlo,y) \
@@ -762,7 +762,7 @@ inline uint32 mulu32_unchecked (uint32 arg1, uint32 arg2)
       var uint64 __x = ((uint64)__xhi << 32) | (uint64)__xlo;          \
       var uint32 __y = (y);                                            \
       var uint32 __q = floor(__x,(uint64)__y);                         \
-      unused (q_zuweisung __q); r_zuweisung __xlo - __q * __y;         \
+      cl_unused (q_zuweisung __q); r_zuweisung __xlo - __q * __y;              \
      })
   #define divu_6432_3232_(xhi,xlo,y) \
     ({var uint32 ___q; divu_6432_3232(xhi,xlo,y,___q=,); ___q; })
@@ -774,7 +774,7 @@ inline uint32 mulu32_unchecked (uint32 arg1, uint32 arg2)
       var uint32 __q;                                                  \
       var uint32 __r;                                                  \
       __q = divu_6432_3232_(__xhi,__xlo,__y); __r = divu_6432_3232_rest(); \
-      unused (q_zuweisung __q);                                                \
+      cl_unused (q_zuweisung __q);                                             \
       r_zuweisung __r;                                                 \
     }
   extern "C" uint32 divu_6432_3232_rest (void);
@@ -782,7 +782,7 @@ inline uint32 mulu32_unchecked (uint32 arg1, uint32 arg2)
   #pragma aux divu_6432_3232_rest = /* */ value [edx] modify [];
 #else
   #define divu_6432_3232(xhi,xlo,y,q_zuweisung,r_zuweisung)  \
-    { unused (q_zuweisung divu_6432_3232_(xhi,xlo,y)); r_zuweisung divu_32_rest; }
+    { cl_unused (q_zuweisung divu_6432_3232_(xhi,xlo,y)); r_zuweisung divu_32_rest; }
   #if (defined(__m68k__) || defined(__sparc__) || defined(__sparc64__) || defined(__arm__) || (defined(__i386__) && !defined(WATCOM) && !defined(MICROSOFT)) || defined(__x86_64__) || defined(__hppa__)) && !defined(NO_ASM)
     // divu_6432_3232_ extern in Assembler
     #if defined(__sparc__) || defined(__sparc64__)
@@ -1057,10 +1057,10 @@ inline uint32 mulu32_unchecked (uint32 arg1, uint32 arg2)
         { var uint16 _z;                                               \
           var uint16 _r;                                               \
           if (_x1 >= _y) /* Division _x/_y ergäbe Ãœberlauf -> _z > _y */\
-            { unused (sqrtp_zuweisung FALSE); break; }                         \
+            { cl_unused (sqrtp_zuweisung FALSE); break; }                      \
           divu_3216_1616(_x,_y, _z=,_r=); /* Dividiere _x/_y */                \
           if (_z >= _y)                                                        \
-            { unused (sqrtp_zuweisung (_z == _y) && (_r == 0)); break; } \
+            { cl_unused (sqrtp_zuweisung (_z == _y) && (_r == 0)); break; } \
           _y = floor((uint16)(_z+_y),2) | bit(16-1); /* _y muß >= 2^15 bleiben */\
         }                                                              \
       y_zuweisung _y;                                                  \
@@ -1158,12 +1158,12 @@ inline uint32 mulu32_unchecked (uint32 arg1, uint32 arg2)
       /* Rest := Rest + 2^17*yhi = xlo + 2^17*yhi >= 2^32 > z, also x>y^2. */\
       if (_r < bit(15))                                                        \
         { if (_xlo < _z)                                               \
-            { _ylo -= 1; unused (sqrtp_zuweisung FALSE); }             \
+            { _ylo -= 1; cl_unused (sqrtp_zuweisung FALSE); }          \
             else                                                       \
-            { unused (sqrtp_zuweisung (_xlo == _z)); }                 \
+            { cl_unused (sqrtp_zuweisung (_xlo == _z)); }                      \
         }                                                              \
         else                                                           \
-        { unused (sqrtp_zuweisung FALSE); }                            \
+        { cl_unused (sqrtp_zuweisung FALSE); }                         \
       y_zuweisung highlow32(_yhi,_ylo);                                        \
     }}
 #endif
index 30b819cd4b1917ba429c962d97997753760c97bc..4b4ba0dcf2540545ad0bbce0256b7b688770d9bb 100644 (file)
   #define TRUE   1
 
 // Ignore a value (instead of assigning it to a variable).
-// unused ...
+// cl_unused ...
   #if defined(__GNUC__) || defined(__KCC) // avoid a gcc warning "statement with no effect"
-    #define unused  (void)
+    #define cl_unused  (void)
   #else
-    #define unused
+    #define cl_unused
   #endif
 
 // Denotes a point where control flow can never arrive.
     /* Ability to place an object at a given address. */               \
 public:                                                                        \
     void* operator new (size_t size) { return malloc_hook(size); }     \
-    void* operator new (size_t size, classname* ptr) { unused size; return ptr; } \
+    void* operator new (size_t size, classname* ptr) { cl_unused size; return ptr; } \
     void operator delete (void* ptr) { free_hook(ptr); }
 
 // init1(type, object) (value);
index 95430234324546dcd7b3b4b5226c4771db5aa9db..a4389cc208fa6eff8c0133ceccabfb2dfc066e82 100644 (file)
@@ -2495,12 +2495,12 @@ inline uintD divucopy_loop_down (uintD digit, const uintD* sourceptr, uintD* des
 #define num_stack_array(need,low_zuweisung,high_zuweisung)  \
   {var uintC __need = (uintC)(need);                           \
    var uintD* __array = cl_alloc_array(uintD,__need);          \
-   unused (low_zuweisung &__array[0]); unused (high_zuweisung &__array[__need]); \
+   cl_unused (low_zuweisung &__array[0]); cl_unused (high_zuweisung &__array[__need]); \
   }
 #define num_stack_small_array(need,low_zuweisung,high_zuweisung)  \
   {var uintC __need = (uintC)(need);                           \
    var uintD* __array = cl_small_alloc_array(uintD,__need);    \
-   unused (low_zuweisung &__array[0]); unused (high_zuweisung &__array[__need]); \
+   cl_unused (low_zuweisung &__array[0]); cl_unused (high_zuweisung &__array[__need]); \
   }
 #if CL_DS_BIG_ENDIAN_P
   #define num_stack_alloc(need,MSDptr_zuweisung,LSDptr_zuweisung)  \
@@ -2591,7 +2591,7 @@ extern void cl_UDS_mul_square (const uintD* sourceptr, uintC len,
   #define UDS_UDS_mul_UDS(len1,LSDptr1,len2,LSDptr2, MSDptr_zuweisung,len_zuweisung,LSDptr_zuweisung)  \
     var uintC CONCAT(len_from_UDSmul_,__LINE__) = (uintC)(len1) + (uintC)(len2); \
     var uintD* CONCAT(LSDptr_from_UDSmul_,__LINE__);                           \
-    unused (len_zuweisung CONCAT(len_from_UDSmul_,__LINE__));                  \
+    cl_unused (len_zuweisung CONCAT(len_from_UDSmul_,__LINE__));                       \
     num_stack_alloc(CONCAT(len_from_UDSmul_,__LINE__),MSDptr_zuweisung,LSDptr_zuweisung CONCAT(LSDptr_from_UDSmul_,__LINE__) =); \
     cl_UDS_mul((LSDptr1),(len1),(LSDptr2),(len2),CONCAT(LSDptr_from_UDSmul_,__LINE__));
 
@@ -2616,7 +2616,7 @@ extern void cl_UDS_mul_square (const uintD* sourceptr, uintC len,
     var uintD* MSDptr0;                                                        \
     var uintD* LSDptr0;                                                        \
     var uintC len_from_DSmal = (uintC)(len1) + (uintC)(len2);          \
-    unused (len_zuweisung len_from_DSmal);                             \
+    cl_unused (len_zuweisung len_from_DSmal);                          \
     num_stack_alloc(len_from_DSmal,MSDptr_zuweisung MSDptr0 =,LSDptr_zuweisung LSDptr0 =); \
     var uintD MSD1_from_DSmal = mspref(MSDptr1,0);                     \
     var uintD MSD2_from_DSmal = mspref(MSDptr2,0);                     \
index a984802ce039e8179a26fda2681a2e133dba6fbd..212b58d248615fb1987231e8a1de602541866169 100644 (file)
@@ -60,7 +60,7 @@
 static inline void assign (const uintC R, const uintC chlen,
                            const uintD* a, uintD* r)
 {
-       unused R;
+       cl_unused R;
        copy_loop_lsp(a,r,chlen);
 }
 
@@ -68,7 +68,7 @@ static inline void assign (const uintC R, const uintC chlen,
 static void addm (const uintC R, const uintC chlen,
                   const uintD* a, const uintD* b, uintD* r)
 {
-       unused R;
+       cl_unused R;
        // r := a+b.
        add_loop_lsp(a,b, r, chlen);
 #if 0
@@ -96,7 +96,7 @@ static void addm (const uintC R, const uintC chlen,
 static void subm (const uintC R, const uintC chlen,
                   const uintD* a, const uintD* b, uintD* r)
 {
-       unused R;
+       cl_unused R;
        // r := a-b.
        sub_loop_lsp(a,b, r, chlen);
 #if 0
@@ -178,7 +178,7 @@ static void shiftleftm (const uintC R, const uintC chlen,
 static void mulm (const uintC R, const uintC chlen,
                   const uintD* a, const uintD* b, uintD* r)
 {
-       unused R;
+       cl_unused R;
        // The leading digits are very likely to be 0.
        var uintP a_len = chlen;
        if (lspref(a,a_len-1) == 0)
@@ -233,7 +233,7 @@ static void mulm (const uintC R, const uintC chlen,
 static void shiftm (const uintC R, const uintC chlen,
                     const uintD* a, uintD* b)
 {
-       unused R;
+       cl_unused R;
        shiftrightcopy_loop_msp(a lspop chlen,b lspop chlen,chlen,1,0);
        if (lspref(a,0) & 1) {
                // ((a + p) >> 1) = (a >> 1) + (p>>1) + 1.
index fc9602fdb823485e39d34369d723626594523465..75e8f17d5d15182b1a21beebb296bc01187e2e63 100644 (file)
@@ -1229,7 +1229,7 @@ static void mulu_nuss_cyclic (const uintL n, const uintC N, // N = 2^n
                               nuss_outword * z // N words result
                              )
 {
-       unused N;
+       cl_unused N;
        #if 0 // always n > 0
        if (n == 0) {
                // z[0] := x0 y0
index 46803c16637e74f0ebbcac141fdcdec5e5301495..798f2b770fb0ab44c7c9d04629e0a66276a67e76 100644 (file)
@@ -142,7 +142,7 @@ protected:
     }
 private:
     // Default function to make room in a hash table.
-    static bool no_garcol (cl_heap* ht) { unused ht; return false; }
+    static bool no_garcol (cl_heap* ht) { cl_unused ht; return false; }
 };
 
 template <class htentry>
index a5df996713a46e68f7f9719fb9f09e75a37e1b52..018e1863923f7d521346f411ad771de5afab0c15 100644 (file)
@@ -55,38 +55,38 @@ uninitialized_exception::uninitialized_exception (const _cl_ring_element& obj_x,
 
 static const _cl_ring_element dummy_op0 (cl_heap_ring* R)
 {
-       unused R;
+       cl_unused R;
        throw uninitialized_ring_exception();
 }
 
 static const _cl_ring_element dummy_op1 (cl_heap_ring* R, const _cl_ring_element& x)
 {
-       unused R;
+       cl_unused R;
        throw uninitialized_exception(x);
 }
 
 static const _cl_ring_element dummy_op2 (cl_heap_ring* R, const _cl_ring_element& x, const _cl_ring_element& y)
 {
-       unused R;
+       cl_unused R;
        throw uninitialized_exception(x, y);
 }
 
 static void dummy_fprint (cl_heap_ring* R, std::ostream& stream, const _cl_ring_element& x)
 {
-       unused R;
-       unused stream;
+       cl_unused R;
+       cl_unused stream;
        throw uninitialized_exception(x);
 }
 static bool dummy_equal (cl_heap_ring* R, const _cl_ring_element& x, const _cl_ring_element& y)
 {
-       unused R;
+       cl_unused R;
        throw uninitialized_exception(x, y);
 }
 
 #define dummy_zero dummy_op0
 static bool dummy_zerop (cl_heap_ring* R, const _cl_ring_element& x)
 {
-       unused R;
+       cl_unused R;
        throw uninitialized_exception(x);
 }
 #define dummy_plus dummy_op2
@@ -96,7 +96,7 @@ static bool dummy_zerop (cl_heap_ring* R, const _cl_ring_element& x)
 #define dummy_one dummy_op0
 static const _cl_ring_element dummy_canonhom (cl_heap_ring* R, const cl_I& x)
 {
-       unused R;
+       cl_unused R;
        (void)&x; // unused x;
        throw uninitialized_ring_exception();
 }
@@ -104,7 +104,7 @@ static const _cl_ring_element dummy_canonhom (cl_heap_ring* R, const cl_I& x)
 #define dummy_square dummy_op1
 static const _cl_ring_element dummy_expt_pos (cl_heap_ring* R, const _cl_ring_element& x, const cl_I& y)
 {
-       unused R;
+       cl_unused R;
        (void)&y; // unused y;
        throw uninitialized_exception(x);
 }
@@ -146,7 +146,7 @@ static void cl_no_ring_destructor (cl_heap* pointer)
 
 static void cl_no_ring_dprint (cl_heap* pointer)
 {
-       unused pointer;
+       cl_unused pointer;
        fprint(cl_debugout, "(cl_ring) cl_no_ring");
 }
 
index 8e38f710e2792da2d2493c29f9469f670ff95bd0..c868e0ba4a34c6d0daaf5c73cde2648717a78764 100644 (file)
@@ -21,7 +21,7 @@ inline const cl_string hashkey (const cl_symbol& sym)
 // A symbol points to a string, so to convert cl_string -> cl_symbol, we just
 // take the pointer and put it into a cl_symbol.
 inline cl_symbol::cl_symbol (struct hashuniq * null, const cl_string& s)
-       : cl_rcpointer (as_cl_private_thing(s)) { unused null; }
+       : cl_rcpointer (as_cl_private_thing(s)) { cl_unused null; }
 
 typedef cl_htuniqentry<cl_string,cl_symbol> cl_htentry_from_string_to_symbol;
 
index 11a3d06019a518f3ccfde65512977234a13d2302..abbf12279000997efc2b535fdd2157c74fbc037f 100644 (file)
@@ -83,9 +83,9 @@ public:
 };
 
 inline bool realp (const cl_C& x)
-       { unused x; return false; }
+       { cl_unused x; return false; }
 inline bool complexp (const cl_C& x)
-       { unused x; return true; }
+       { cl_unused x; return true; }
 
 
 // Liefert zu reellen Zahlen a und b /= Fixnum 0 die komplexe Zahl a+bi.
index 9365972a5d71227fbc1c49c7dd936681fa339353..53b23214ea898c58096af9dce0db4afb4ece6597 100644 (file)
@@ -250,7 +250,7 @@ not_rational_syntax:
                ,       if (!(flags.syntax & syntax_sfloat)) goto not_float_syntax;
                ,       if (!(flags.syntax & syntax_ffloat)) goto not_float_syntax;
                ,       if (!(flags.syntax & syntax_dfloat)) goto not_float_syntax;
-               ,       unused len;
+               ,       cl_unused len;
                        if (!(flags.syntax & syntax_lfloat)) goto not_float_syntax;
                );
                return read_complex_number_rest(flags,ptr_after_prec,string,string_limit,end_of_parse,
@@ -301,7 +301,7 @@ not_complex_syntax:
 
 static const cl_N read_complex_number_rest (const cl_read_flags& flags, const char * string_rest, const char * string, const char * string_limit, const char * * end_of_parse, const cl_R& x)
 {
-       unused string;
+       cl_unused string;
        if ((flags.syntax & syntax_complex) && (flags.lsyntax & lsyntax_algebraic)) {
                // Finish reading the "+yi" part of "x+yi".
                // We allow "y" to begin with a '-'.
index ab941c8b6ac72b8e219c0f392aab6f54b27dc670..626cc5b3ad7c23613e55607d31c36bcfeed5dd94 100644 (file)
@@ -17,13 +17,13 @@ namespace cln {
 
 static void N_fprint (cl_heap_ring* R, std::ostream& stream, const _cl_ring_element& x)
 {
-       unused R;
+       cl_unused R;
        fprint(stream,The(cl_N)(x));
 }
 
 static bool N_equal (cl_heap_ring* R, const _cl_ring_element& x, const _cl_ring_element& y)
 {
-       unused R;
+       cl_unused R;
        return equal(The(cl_N)(x),The(cl_N)(y));
 }
 
@@ -34,7 +34,7 @@ static const _cl_ring_element N_zero (cl_heap_ring* R)
 
 static bool N_zerop (cl_heap_ring* R, const _cl_ring_element& x)
 {
-       unused R;
+       cl_unused R;
        // Here we return true only if x is the *exact* zero. Because we
        // don't want the degree of polynomials to depend on rounding errors.
        // For all ring theoretic purposes, we treat 0.0, 0+0.0i etc. as if
@@ -138,7 +138,7 @@ static void cl_complex_ring_destructor (cl_heap* pointer)
 
 static void cl_complex_ring_dprint (cl_heap* pointer)
 {
-       unused pointer;
+       cl_unused pointer;
        fprint(cl_debugout, "(cl_complex_ring) cl_C_ring");
 }
 
index f4b8d2754dcf22fc82e99e5688dcd6867dfcc053..3e48acbb4fe38c1098e9278a60c179f79162b181 100644 (file)
@@ -89,7 +89,7 @@ inline const cl_N expt_0 (const cl_N& x)
        }
 #else
        // Exponent exakt 0 -> Ergebnis exakt 1
-       unused x;
+       cl_unused x;
        return 1;
 #endif
 }
index 7d93c8596db8a01fc2a7b6d0a997ddc57f11871e..6951bf23ea38f550322e243f72d7e8ecdbba1b0c 100644 (file)
@@ -121,7 +121,7 @@ inline cl_heap_dfloat* allocate_dfloat (uint32 semhi, uint32 mlo)
         { zero_statement } /* e=0 -> Zahl 0.0 */                       \
         else                                                           \
         { exp_zuweisung (sintL)(uexp - DF_exp_mid); /* Exponent */     \
-          unused (sign_zuweisung ((sint64)_x >> 63)); /* Vorzeichen */ \
+          cl_unused (sign_zuweisung ((sint64)_x >> 63)); /* Vorzeichen */      \
           mant_zuweisung (bit(DF_mant_len) | (_x & (bit(DF_mant_len)-1))); \
     }   }
 #else
@@ -142,7 +142,7 @@ inline cl_heap_dfloat* allocate_dfloat (uint32 semhi, uint32 mlo)
         { zero_statement } /* e=0 -> Zahl 0.0 */                       \
         else                                                           \
         { exp_zuweisung (sintL)(uexp - DF_exp_mid); /* Exponent */     \
-          unused (sign_zuweisung sign_of((sint32)(semhi))); /* Vorzeichen */\
+          cl_unused (sign_zuweisung sign_of((sint32)(semhi))); /* Vorzeichen */\
           manthi_zuweisung (bit(DF_mant_len-32) | (semhi & (bit(DF_mant_len-32)-1))); \
           mantlo_zuweisung mlo;                                                \
     }   }
index 9b9f5553cb69b4e70fe240caa9f20641ef24098c..d7457ae5e72b1f0306ea1113496a38ae46cb60bf 100644 (file)
@@ -15,7 +15,7 @@ namespace cln {
 
 CL_INLINE uintC CL_INLINE_DECL(float_digits) (const cl_DF& x)
 {
-       unused x;
+       cl_unused x;
        return DF_mant_len+1; // 53
 }
 
index 370bffca907b19d232a42a67ddaf8a7a6992c4ab..efe7886d2e5496f18a824d28a68bd3e3a23b9ab8 100644 (file)
@@ -66,7 +66,7 @@ extern cl_class cl_class_ffloat;
 // Builds a float from the explicit word.
 #if defined(CL_WIDE_POINTERS)
 inline cl_FF::cl_FF (struct cl_heap_ffloat * null, cl_uint w)
-       : cl_F ((cl_private_thing) w) { unused null; }
+       : cl_F ((cl_private_thing) w) { cl_unused null; }
 inline const cl_FF allocate_ffloat (ffloat eksplicit)
 {
        return cl_FF((struct cl_heap_ffloat *) 0, ((cl_uint)eksplicit << FF_value_shift) | (cl_FF_tag << cl_tag_shift));
@@ -128,7 +128,7 @@ inline const cl_FF make_FF (cl_sint sign, unsigned int exp, cl_uint mant)
       { zero_statement } /* e=0 -> Zahl 0.0 */                         \
       else                                                             \
       { exp_zuweisung (sintL)(uexp - FF_exp_mid); /* Exponent */       \
-        unused (sign_zuweisung sign_of((sint32)(_x))); /* Vorzeichen */\
+        cl_unused (sign_zuweisung sign_of((sint32)(_x))); /* Vorzeichen */\
         mant_zuweisung (bit(FF_mant_len) | (_x & (bit(FF_mant_len)-1))); \
   }   }
 
index 3e7cd6a0a80876715b356dbec502b8b9ed34c32d..0afd1f32f747fc3771f0e41c96123e8ea3cceb87 100644 (file)
@@ -15,7 +15,7 @@ namespace cln {
 
 CL_INLINE uintC CL_INLINE_DECL(float_digits) (const cl_FF& x)
 {
-       unused x;
+       cl_unused x;
        return FF_mant_len+1; // 24
 }
 
index f1097b34d4d4be7fb480e6cbeb5bc04ccd130a05..48abe1a91437f42dca3ac78e3dbf07b93c6fe781 100644 (file)
@@ -161,7 +161,7 @@ const cl_F read_float (const cl_read_flags& flags, const char * string, const ch
                ,       if (!(flags.syntax & syntax_sfloat)) goto not_float_syntax;
                ,       if (!(flags.syntax & syntax_ffloat)) goto not_float_syntax;
                ,       if (!(flags.syntax & syntax_dfloat)) goto not_float_syntax;
-               ,       unused len;
+               ,       cl_unused len;
                        if (!(flags.syntax & syntax_lfloat)) goto not_float_syntax;
                );
                at_end_of_parse(ptr_after_prec);
index 72a91efd515b9df24812fb7249fdca209aa00e93..64b71639cf829ee7b7382315852517fe2eb00466 100644 (file)
@@ -68,12 +68,12 @@ inline cl_LF::cl_LF (cl_heap_lfloat* ptr) : cl_F ((cl_private_thing) ptr) {}
     { var Lfloat _x = TheLfloat(obj);                                  \
       var uintE uexp = _x->expo;                                       \
       if (uexp==0)                                                     \
-        { unused (mantlen_zuweisung _x->len); zero_statement } /* e=0 -> Zahl 0.0 */\
+        { cl_unused (mantlen_zuweisung _x->len); zero_statement } /* e=0 -> Zahl 0.0 */\
         else                                                           \
         { exp_zuweisung (sintE)(uexp - LF_exp_mid);    /* Exponent */  \
           sign_zuweisung _x->sign;                     /* Vorzeichen */\
-          unused (mantMSDptr_zuweisung arrayMSDptr(_x->data, (uintP)(mantlen_zuweisung _x->len))); /* Mantissen-UDS */\
-          unused (mantLSDptr_zuweisung arrayLSDptr(_x->data, (uintP)(mantlen_zuweisung _x->len))); \
+          cl_unused (mantMSDptr_zuweisung arrayMSDptr(_x->data, (uintP)(mantlen_zuweisung _x->len))); /* Mantissen-UDS */\
+          cl_unused (mantLSDptr_zuweisung arrayLSDptr(_x->data, (uintP)(mantlen_zuweisung _x->len))); \
     }   }
 
 // Einpacken eines Long-Float:
index 450601646cf9b9edb70468d7b755ab187fc752f4..8f92e2bfe43493f610de3de09ca384b81c9fa4cc 100644 (file)
@@ -27,7 +27,7 @@ namespace cln {
 
 // Builds a float from the immediate word.
 inline cl_SF::cl_SF (struct cl_sfloat * null, cl_uint w)
-       : cl_F ((cl_private_thing) w) { unused null; }
+       : cl_F ((cl_private_thing) w) { cl_unused null; }
 inline const cl_SF cl_SF_from_word (cl_uint word)
 {
        return cl_SF((struct cl_sfloat *) 0, word);
@@ -89,7 +89,7 @@ inline uintL SF_mant (const cl_SF& x)
       { zero_statement } /* e=0 -> Zahl 0.0 */                         \
       else                                                             \
       { exp_zuweisung (sintL)(uexp - SF_exp_mid);      /* Exponent */  \
-        unused (sign_zuweisung SF_sign(_x));           /* Vorzeichen */\
+        cl_unused (sign_zuweisung SF_sign(_x));                /* Vorzeichen */\
         mant_zuweisung SF_mant(_x);                    /* Mantisse */  \
   }   }
 
index 4501f42e70d3658aedaf679e15bb0479cd640c4f..e4ea7dbcb5d97aeed52a4ee1d12c956ee1302223 100644 (file)
@@ -15,7 +15,7 @@ namespace cln {
 
 CL_INLINE uintC CL_INLINE_DECL(float_digits) (const cl_SF& x)
 {
-       unused x;
+       cl_unused x;
        return SF_mant_len+1; // 17
 }
 
index b7c04fc61760a337e374b48c3e5746fbcc1fe59c..ae13cf2803b9c4b439e8302dff5fb2bafbfc1c53 100644 (file)
@@ -25,7 +25,7 @@ static inline void eval__series_aux (uintC N1, uintC N2,
                                      const cl__series& args,
                                      cl_I* T)
 {
-       unused args;
+       cl_unused args;
        *T = N2-N1;
 }
 
index f5545047af270ff7616cbca4cfceaea22f85e437..c814bdbff0fab01272ff4fb0606bb134ee997db5 100644 (file)
@@ -27,7 +27,7 @@ namespace cln {
 
 // Private fixnum constructor.
 inline cl_I::cl_I (struct cl_fixnum * null, cl_uint w)
-       : cl_RA ((cl_private_thing) w) { unused null; }
+       : cl_RA ((cl_private_thing) w) { cl_unused null; }
 inline const cl_I cl_I_from_word (cl_uint w)
 {
        return cl_I((struct cl_fixnum *) 0, w);
@@ -78,7 +78,7 @@ inline cl_I::cl_I (cl_heap_bignum* ptr)
 
 // Type tests.
 inline bool integerp (const cl_I& x)
-       { unused x; return true; }
+       { cl_unused x; return true; }
 inline bool fixnump (const cl_I& x)
        { return !x.pointer_p(); }
 inline bool bignump (const cl_I& x)
@@ -546,9 +546,9 @@ inline sintD FN_MSD (cl_uint word)
           lspref(destLSDptr,3) = FN_LSD3(word);                                \
         }                                                              \
     }                                                                  \
-  unused (MSDptr_zuweisung (destLSDptr) lspop len_from_FN_to_NDS);     \
-  unused (len_zuweisung len_from_FN_to_NDS);                           \
-  unused (LSDptr_zuweisung (destLSDptr));                              \
+  cl_unused (MSDptr_zuweisung (destLSDptr) lspop len_from_FN_to_NDS);  \
+  cl_unused (len_zuweisung len_from_FN_to_NDS);                                \
+  cl_unused (LSDptr_zuweisung (destLSDptr));                           \
 }
 
 // Bignum to Normalized Digit sequence, Kopieren unnötig
@@ -558,14 +558,14 @@ inline sintD FN_MSD (cl_uint word)
 #if CL_DS_BIG_ENDIAN_P
   #define BN_to_NDS_nocopy(obj, MSDptr_zuweisung,len_zuweisung,LSDptr_zuweisung)  \
     { var Bignum bn_from_BN_to_NDS_nocopy = TheBignum(obj);            \
-      unused (MSDptr_zuweisung (const uintD*) &bn_from_BN_to_NDS_nocopy->data[0]);     \
-      unused (LSDptr_zuweisung (const uintD*) &bn_from_BN_to_NDS_nocopy->data[(uintP)( len_zuweisung bn_from_BN_to_NDS_nocopy->length )]);             \
+      cl_unused (MSDptr_zuweisung (const uintD*) &bn_from_BN_to_NDS_nocopy->data[0]);  \
+      cl_unused (LSDptr_zuweisung (const uintD*) &bn_from_BN_to_NDS_nocopy->data[(uintP)( len_zuweisung bn_from_BN_to_NDS_nocopy->length )]);          \
     }
 #else
   #define BN_to_NDS_nocopy(obj, MSDptr_zuweisung,len_zuweisung,LSDptr_zuweisung)  \
     { var Bignum bn_from_BN_to_NDS_nocopy = TheBignum(obj);            \
-      unused (LSDptr_zuweisung (const uintD*) &bn_from_BN_to_NDS_nocopy->data[0]);     \
-      unused (MSDptr_zuweisung (const uintD*) &bn_from_BN_to_NDS_nocopy->data[(uintP)( len_zuweisung bn_from_BN_to_NDS_nocopy->length )]);             \
+      cl_unused (LSDptr_zuweisung (const uintD*) &bn_from_BN_to_NDS_nocopy->data[0]);  \
+      cl_unused (MSDptr_zuweisung (const uintD*) &bn_from_BN_to_NDS_nocopy->data[(uintP)( len_zuweisung bn_from_BN_to_NDS_nocopy->length )]);          \
     }
 #endif
   inline const uintD* BN_MSDptr (const cl_I& obj)
@@ -726,9 +726,9 @@ public:
 };
 
 inline bool fixnump (const cl_FN& x)
-       { unused x; return true; }
+       { cl_unused x; return true; }
 inline bool bignump (const cl_FN& x)
-       { unused x; return false; }
+       { cl_unused x; return false; }
 
 inline bool minusp (const cl_FN& x)
 {
@@ -748,16 +748,16 @@ public:
 };
 
 inline bool fixnump (const cl_BN& x)
-       { unused x; return false; }
+       { cl_unused x; return false; }
 inline bool bignump (const cl_BN& x)
-       { unused x; return true; }
+       { cl_unused x; return true; }
 
 inline bool minusp (const cl_BN& x)
 {
        return (sintD)mspref(arrayMSDptr(TheBignum(x)->data,TheBignum(x)->length),0) < 0;
 }
 inline bool zerop (const cl_BN& x)
-       { unused x; return false; }
+       { cl_unused x; return false; }
 
 }  // namespace cln
 
index 41f2d1dde17749aff3f54fc608f64d625778ee38..def663d918728037fcc04fabc87cb21d3b2a0d58 100644 (file)
@@ -21,37 +21,37 @@ static const _cl_ring_element null_op0 (cl_heap_ring* R)
 
 static const _cl_ring_element null_op1 (cl_heap_ring* R, const _cl_ring_element& x)
 {
-       unused x;
+       cl_unused x;
        return _cl_ring_element(R, (cl_I)0);
 }
 
 static const _cl_ring_element null_op2 (cl_heap_ring* R, const _cl_ring_element& x, const _cl_ring_element& y)
 {
-       unused x;
-       unused y;
+       cl_unused x;
+       cl_unused y;
        return _cl_ring_element(R, (cl_I)0);
 }
 
 static void null_fprint (cl_heap_ring* R, std::ostream& stream, const _cl_ring_element& x)
 {
-       unused R;
-       unused x;
+       cl_unused R;
+       cl_unused x;
        fprint(stream,"0");
 }
 
 static bool null_equal (cl_heap_ring* R, const _cl_ring_element& x, const _cl_ring_element& y)
 {
-       unused R;
-       unused x;
-       unused y;
+       cl_unused R;
+       cl_unused x;
+       cl_unused y;
        return true;
 }
 
 #define null_zero null_op0
 static bool null_zerop (cl_heap_ring* R, const _cl_ring_element& x)
 {
-       unused R;
-       unused x;
+       cl_unused R;
+       cl_unused x;
        return true;
 }
 #define null_plus null_op2
@@ -61,15 +61,15 @@ static bool null_zerop (cl_heap_ring* R, const _cl_ring_element& x)
 #define null_one null_op0
 static const _cl_ring_element null_canonhom (cl_heap_ring* R, const cl_I& x)
 {
-       unused x;
+       cl_unused x;
        return _cl_ring_element(R, (cl_I)0);
 }
 #define null_mul null_op2
 #define null_square null_op1
 static const _cl_ring_element null_expt_pos (cl_heap_ring* R, const _cl_ring_element& x, const cl_I& y)
 {
-       unused x;
-       unused y;
+       cl_unused x;
+       cl_unused y;
        return _cl_ring_element(R, (cl_I)0);
 }
 
@@ -126,7 +126,7 @@ static void cl_null_ring_destructor (cl_heap* pointer)
 
 static void cl_null_ring_dprint (cl_heap* pointer)
 {
-       unused pointer;
+       cl_unused pointer;
        fprint(cl_debugout, "(cl_null_ring) cl_0_ring");
 }
 
index f09588b6fc30943f27a3c9e39e7c4645126e4664..bdbedf71bcd8e3555dc1bc4fb88054fa4b2be5ba 100644 (file)
@@ -19,13 +19,13 @@ namespace cln {
 
 static void I_fprint (cl_heap_ring* R, std::ostream& stream, const _cl_ring_element& x)
 {
-       unused R;
+       cl_unused R;
        fprint(stream,The(cl_I)(x));
 }
 
 static bool I_equal (cl_heap_ring* R, const _cl_ring_element& x, const _cl_ring_element& y)
 {
-       unused R;
+       cl_unused R;
        return equal(The(cl_I)(x),The(cl_I)(y));
 }
 
@@ -36,7 +36,7 @@ static const _cl_ring_element I_zero (cl_heap_ring* R)
 
 static bool CL_FLATTEN I_zerop (cl_heap_ring* R, const _cl_ring_element& x)
 {
-       unused R;
+       cl_unused R;
        return zerop_inline(The(cl_I)(x));
 }
 
@@ -137,7 +137,7 @@ static void cl_integer_ring_destructor (cl_heap* pointer)
 
 static void cl_integer_ring_dprint (cl_heap* pointer)
 {
-       unused pointer;
+       cl_unused pointer;
        fprint(cl_debugout, "(cl_integer_ring) cl_I_ring");
 }
 
index 1458b5ba9481e782d98a92334d253d1a2f88cb5a..6b2237c4d0be41af55e4e3ab318ff722756e4cf0 100644 (file)
@@ -57,7 +57,7 @@ cl_heap_modint_ring::cl_heap_modint_ring (cl_I m, cl_modint_setops* setopv, cl_m
 
 static bool modint_equal (cl_heap_modint_ring* R, const _cl_MI& x, const _cl_MI& y)
 {
-       unused R;
+       cl_unused R;
        return equal(x.rep,y.rep);
 }
 
index 6abac3c5ceeeec9db6f589d8084fbe16a57988bb..7224e5d2cce047af16a373a46a87d67f4252a11e 100644 (file)
@@ -9,7 +9,7 @@ static void int_fprint (cl_heap_modint_ring* R, std::ostream& stream, const _cl_
 
 static const cl_I int_reduce_modulo (cl_heap_modint_ring* R, const cl_I& x)
 {
-       unused R;
+       cl_unused R;
        return x; // reducing modulo 0 does nothing
 }
 
@@ -22,15 +22,15 @@ static const _cl_MI int_canonhom (cl_heap_modint_ring* R, const cl_I& x)
 // This is the only case where retract is surjective.
 static const cl_I int_retract (cl_heap_modint_ring* R, const _cl_MI& x)
 {
-       unused R;
+       cl_unused R;
        return x.rep;
 }
 
 // This is the only case where random yields an error.
 static const _cl_MI int_random (cl_heap_modint_ring* R, random_state& randomstate)
 {
-       unused R;
-       unused randomstate;
+       cl_unused R;
+       cl_unused randomstate;
        throw runtime_exception("Z / 0 Z not a finite set - no equidistributed random function.");
 }
 
@@ -41,7 +41,7 @@ static const _cl_MI int_zero (cl_heap_modint_ring* R)
 
 static bool int_zerop (cl_heap_modint_ring* R, const _cl_MI& x)
 {
-       unused R;
+       cl_unused R;
        return zerop(x.rep);
 }
 
index ede3818d5918cb57e54cba87beaf726ff15daf62..007ed27b92aaebbf0c040ed815bb33c2cec05406 100644 (file)
@@ -21,7 +21,7 @@ static const _cl_MI std_canonhom (cl_heap_modint_ring* R, const cl_I& x)
 
 static const cl_I std_retract (cl_heap_modint_ring* R, const _cl_MI& x)
 {
-       unused R;
+       cl_unused R;
        return x.rep;
 }
 
@@ -37,7 +37,7 @@ static const _cl_MI std_zero (cl_heap_modint_ring* R)
 
 static bool std_zerop (cl_heap_modint_ring* R, const _cl_MI& x)
 {
-       unused R;
+       cl_unused R;
        return zerop(x.rep);
 }
 
index 1a348feed26514f5f27240bb4aa1471d2fc86621..49e1e5d7115e3fbae6ba9c0bf0a49cc3c4e43b7c 100644 (file)
@@ -17,7 +17,7 @@ static bool gf2_equal (cl_heap_univpoly_ring* UPR, const _cl_UP& x, const _cl_UP
 {{
        DeclarePoly(cl_GV_MI,x);
        DeclarePoly(cl_GV_MI,y);
-       unused UPR;
+       cl_unused UPR;
        var const cl_heap_GV_I_bits1 * xv = (const cl_heap_GV_I_bits1 *) x.heappointer;
        var const cl_heap_GV_I_bits1 * yv = (const cl_heap_GV_I_bits1 *) y.heappointer;
        var uintL xlen = xv->v.size();
@@ -91,7 +91,7 @@ static const _cl_UP gf2_plus (cl_heap_univpoly_ring* UPR, const _cl_UP& x, const
 // In characteristic 2, -x = x.
 static const _cl_UP gf2_uminus (cl_heap_univpoly_ring* UPR, const _cl_UP& x)
 {
-       unused UPR;
+       cl_unused UPR;
        return x;
 }
 
index a35c14d049716d02a9332d4b7d847e2432db158b..8ace327402735062e346e39cb13ecab29236abe0 100644 (file)
@@ -82,7 +82,7 @@ static const _cl_UP modint_zero (cl_heap_univpoly_ring* UPR)
 
 static bool modint_zerop (cl_heap_univpoly_ring* UPR, const _cl_UP& x)
 {
-       unused UPR;
+       cl_unused UPR;
  {     DeclarePoly(cl_GV_MI,x);
        var sintL xlen = x.size();
        if (xlen == 0)
@@ -348,7 +348,7 @@ static const _cl_UP modint_scalmul (cl_heap_univpoly_ring* UPR, const cl_ring_el
 
 static sintL modint_degree (cl_heap_univpoly_ring* UPR, const _cl_UP& x)
 {
-       unused UPR;
+       cl_unused UPR;
  {     DeclarePoly(cl_GV_MI,x);
        return (sintL) x.size() - 1;
 }}
index 623a212ddb43bfffee1fd58b9708cb75c5014094..dc88ed1bc04658069a8c3624186e02ee402da515 100644 (file)
@@ -78,7 +78,7 @@ static const _cl_UP gen_zero (cl_heap_univpoly_ring* UPR)
 
 static bool gen_zerop (cl_heap_univpoly_ring* UPR, const _cl_UP& x)
 {
-       unused UPR;
+       cl_unused UPR;
  {     DeclarePoly(cl_SV_ringelt,x);
        var sintL xlen = x.size();
        if (xlen == 0)
@@ -332,7 +332,7 @@ static const _cl_UP gen_scalmul (cl_heap_univpoly_ring* UPR, const cl_ring_eleme
 
 static sintL gen_degree (cl_heap_univpoly_ring* UPR, const _cl_UP& x)
 {
-       unused UPR;
+       cl_unused UPR;
  {     DeclarePoly(cl_SV_ringelt,x);
        return (sintL) x.size() - 1;
 }}
index 92f4259c5a623bf97e3470f6d6e993428ca01aa2..585a42a67cf19f404391887cc6cc3fe49d1af70e 100644 (file)
@@ -15,38 +15,38 @@ namespace cln {
 
 static const _cl_UP dummy_op0 (cl_heap_univpoly_ring* R)
 {
-       unused R;
+       cl_unused R;
        throw uninitialized_ring_exception();
 }
 
 static const _cl_UP dummy_op1 (cl_heap_univpoly_ring* R, const _cl_UP& x)
 {
-       unused R;
+       cl_unused R;
        throw uninitialized_exception(x);
 }
 
 static const _cl_UP dummy_op2 (cl_heap_univpoly_ring* R, const _cl_UP& x, const _cl_UP& y)
 {
-       unused R;
+       cl_unused R;
        throw uninitialized_exception(x, y);
 }
 
 static void dummy_fprint (cl_heap_univpoly_ring* R, std::ostream& stream, const _cl_UP& x)
 {
-       unused R;
-       unused stream;
+       cl_unused R;
+       cl_unused stream;
        throw uninitialized_exception(x);
 }
 static bool dummy_equal (cl_heap_univpoly_ring* R, const _cl_UP& x, const _cl_UP& y)
 {
-       unused R;
+       cl_unused R;
        throw uninitialized_exception(x, y);
 }
 
 #define dummy_zero dummy_op0
 static bool dummy_zerop (cl_heap_univpoly_ring* R, const _cl_UP& x)
 {
-       unused R;
+       cl_unused R;
        throw uninitialized_exception(x);
 }
 #define dummy_plus dummy_op2
@@ -56,7 +56,7 @@ static bool dummy_zerop (cl_heap_univpoly_ring* R, const _cl_UP& x)
 #define dummy_one dummy_op0
 static const _cl_UP dummy_canonhom (cl_heap_univpoly_ring* R, const cl_I& x)
 {
-       unused R;
+       cl_unused R;
        (void)&x; // unused x;
        throw uninitialized_ring_exception();
 }
@@ -64,63 +64,63 @@ static const _cl_UP dummy_canonhom (cl_heap_univpoly_ring* R, const cl_I& x)
 #define dummy_square dummy_op1
 static const _cl_UP dummy_expt_pos (cl_heap_univpoly_ring* R, const _cl_UP& x, const cl_I& y)
 {
-       unused R;
+       cl_unused R;
        (void)&y; // unused y;
        throw uninitialized_exception(x);
 }
 
 static const _cl_UP dummy_scalmul (cl_heap_univpoly_ring* R, const cl_ring_element& x, const _cl_UP& y)
 {
-       unused R;
-       unused x;
+       cl_unused R;
+       cl_unused x;
        throw uninitialized_exception(y);
 }
 
 static sintL dummy_degree (cl_heap_univpoly_ring* R, const _cl_UP& x)
 {
-       unused R;
+       cl_unused R;
        throw uninitialized_exception(x);
 }
 static sintL dummy_ldegree (cl_heap_univpoly_ring* R, const _cl_UP& x)
 {
-       unused R;
+       cl_unused R;
        throw uninitialized_exception(x);
 }
 static const _cl_UP dummy_monomial (cl_heap_univpoly_ring* R, const cl_ring_element& x, uintL e)
 {
-       unused R;
-       unused x;
-       unused e;
+       cl_unused R;
+       cl_unused x;
+       cl_unused e;
        throw uninitialized_ring_exception();
 }
 static const cl_ring_element dummy_coeff (cl_heap_univpoly_ring* R, const _cl_UP& x, uintL index)
 {
-       unused R;
-       unused index;
+       cl_unused R;
+       cl_unused index;
        throw uninitialized_exception(x);
 }
 static const _cl_UP dummy_create (cl_heap_univpoly_ring* R, sintL deg)
 {
-       unused R;
-       unused deg;
+       cl_unused R;
+       cl_unused deg;
        throw uninitialized_ring_exception();
 }
 static void dummy_set_coeff (cl_heap_univpoly_ring* R, _cl_UP& x, uintL index, const cl_ring_element& y)
 {
-       unused R;
-       unused index;
-       unused y;
+       cl_unused R;
+       cl_unused index;
+       cl_unused y;
        throw uninitialized_exception(x);
 }
 static void dummy_finalize (cl_heap_univpoly_ring* R, _cl_UP& x)
 {
-       unused R;
+       cl_unused R;
        throw uninitialized_exception(x);
 }
 static const cl_ring_element dummy_eval (cl_heap_univpoly_ring* R, const _cl_UP& x, const cl_ring_element& y)
 {
-       unused R;
-       unused y;
+       cl_unused R;
+       cl_unused y;
        throw uninitialized_exception(x);
 }
 
index 50e5cb1052bd5fccfea419929c03c409c59b626e..1007c5e62036246c4b0608dab14ef14b0a8e727b 100644 (file)
@@ -78,7 +78,7 @@ static const _cl_UP num_zero (cl_heap_univpoly_ring* UPR)
 
 static bool num_zerop (cl_heap_univpoly_ring* UPR, const _cl_UP& x)
 {
-       unused UPR;
+       cl_unused UPR;
  {     DeclarePoly(cl_SV_number,x);
        var sintL xlen = x.size();
        if (xlen == 0)
@@ -330,7 +330,7 @@ static const _cl_UP num_scalmul (cl_heap_univpoly_ring* UPR, const cl_ring_eleme
 
 static sintL num_degree (cl_heap_univpoly_ring* UPR, const _cl_UP& x)
 {
-       unused UPR;
+       cl_unused UPR;
  {     DeclarePoly(cl_SV_number,x);
        return (sintL) x.size() - 1;
 }}
index bdd911c4cee46c3406f7750c717eb49a1962d5ae..e0adf30fbe7ede2632e3b3b0e5f1019134d9119a 100644 (file)
@@ -46,7 +46,7 @@ inline cl_RA::cl_RA (cl_heap_ratio* ptr)
 
 // Type tests.
 inline bool rationalp (const cl_RA& x)
-       { unused x; return true; }
+       { cl_unused x; return true; }
 inline bool integerp (const cl_RA& x)
 {
        if (!x.pointer_p())
@@ -75,9 +75,9 @@ public:
 };
 
 inline bool integerp (const cl_RT& x)
-       { unused x; return false; }
+       { cl_unused x; return false; }
 inline bool ratiop (const cl_RT& x)
-       { unused x; return true; }
+       { cl_unused x; return true; }
 
 // Access numerator and denominator.
 inline const cl_I& numerator (const cl_RT& x)
@@ -104,7 +104,7 @@ inline bool minusp (const cl_RA& x)
 
 // (ZEROP x) == (= x 0)
 inline bool zerop (const cl_RT& x)
-       { unused x; return false; }
+       { cl_unused x; return false; }
 inline bool zerop (const cl_RA& x)
 {
        return x.word == cl_combine(cl_FN_tag,0);
index 50fa33d63e19f990e575b38e177e1b2b7b6ea0fe..bc15753293e04234e1935bbced02c27568fd2795 100644 (file)
@@ -19,13 +19,13 @@ namespace cln {
 
 static void RA_fprint (cl_heap_ring* R, std::ostream& stream, const _cl_ring_element& x)
 {
-       unused R;
+       cl_unused R;
        fprint(stream,The(cl_RA)(x));
 }
 
 static bool RA_equal (cl_heap_ring* R, const _cl_ring_element& x, const _cl_ring_element& y)
 {
-       unused R;
+       cl_unused R;
        return equal(The(cl_RA)(x),The(cl_RA)(y));
 }
 
@@ -36,7 +36,7 @@ static const _cl_ring_element RA_zero (cl_heap_ring* R)
 
 static bool CL_FLATTEN RA_zerop (cl_heap_ring* R, const _cl_ring_element& x)
 {
-       unused R;
+       cl_unused R;
        return zerop_inline(The(cl_RA)(x));
 }
 
@@ -137,7 +137,7 @@ static void cl_rational_ring_destructor (cl_heap* pointer)
 
 static void cl_rational_ring_dprint (cl_heap* pointer)
 {
-       unused pointer;
+       cl_unused pointer;
        fprint(cl_debugout, "(cl_rational_ring) cl_RA_ring");
 }
 
index 4577cf45537bc767d3e49939f50f937db63d373c..af7b59e40e7d24a106d95be65330492357f3e420 100644 (file)
@@ -251,7 +251,7 @@ not_rational_syntax:
                ,       if (!(flags.syntax & syntax_sfloat)) goto not_float_syntax;
                ,       if (!(flags.syntax & syntax_ffloat)) goto not_float_syntax;
                ,       if (!(flags.syntax & syntax_dfloat)) goto not_float_syntax;
-               ,       unused len;
+               ,       cl_unused len;
                        if (!(flags.syntax & syntax_lfloat)) goto not_float_syntax;
                );
                at_end_of_parse(ptr_after_prec);
index d733a97247b76c6b0856864043da4e0027bdacec..748c3c9f38d3728f173fee0f47ea98bdc4e437a0 100644 (file)
@@ -18,13 +18,13 @@ namespace cln {
 
 static void R_fprint (cl_heap_ring* R, std::ostream& stream, const _cl_ring_element& x)
 {
-       unused R;
+       cl_unused R;
        fprint(stream,The(cl_R)(x));
 }
 
 static bool R_equal (cl_heap_ring* R, const _cl_ring_element& x, const _cl_ring_element& y)
 {
-       unused R;
+       cl_unused R;
        return equal(The(cl_R)(x),The(cl_R)(y));
 }
 
@@ -35,7 +35,7 @@ static const _cl_ring_element R_zero (cl_heap_ring* R)
 
 static bool R_zerop (cl_heap_ring* R, const _cl_ring_element& x)
 {
-       unused R;
+       cl_unused R;
        // Here we return true only if x is the *exact* zero. Because we
        // don't want the degree of polynomials to depend on rounding errors.
        // For all ring theoretic purposes, we treat 0.0 as if it were a
@@ -139,7 +139,7 @@ static void cl_real_ring_destructor (cl_heap* pointer)
 
 static void cl_real_ring_dprint (cl_heap* pointer)
 {
-       unused pointer;
+       cl_unused pointer;
        fprint(cl_debugout, "(cl_real_ring) cl_R_ring");
 }
 
index 328b31b4c6c237496130d332d184fe8042c404e5..dc8aab3224b992dc8a77fa9dee8ea8ab3ae91dc0 100644 (file)
@@ -180,7 +180,7 @@ static cl_GV_I_vectorops bits##m##_vectorops = {{                   \
 
 static void bits_do_delete (cl_GV_inner<cl_I>* vec)
 {
-       unused vec;
+       cl_unused vec;
 }
 
 // Copy bits srcptr.bits[srcindex..srcindex+count-1] into destptr.bits[destindex..destindex+count-1].
index 2ceb5b4ddb70acc588795a581fd2d6af01d09f8d..555483d4bac6b024381a87697afff0c90a45c7a2 100644 (file)
@@ -17,8 +17,8 @@ namespace cln {
 
 static void print_for_debug (std::ostream& stream, const cl_print_flags& flags, const cl_number& z)
 {
-       unused stream; // must be cl_debugout
-       unused flags; // must be default_print_flags
+       cl_unused stream; // must be cl_debugout
+       cl_unused flags; // must be default_print_flags
        z.debug_print();
 }
 
index cec65ec3dabc81847f78b755a96b95bb47d1ecbb..22fbc0fbee0cb1c5d6cd4963bed9a34d180d944d 100644 (file)
@@ -17,8 +17,8 @@ namespace cln {
 
 static void print_for_debug (std::ostream& stream, const cl_print_flags& flags, const cl_number& z)
 {
-       unused stream; // must be cl_debugout
-       unused flags; // must be default_print_flags
+       cl_unused stream; // must be cl_debugout
+       cl_unused flags; // must be default_print_flags
        z.debug_print();
 }