}
(void) puts("/* This file is automatically generated; to modify it,");
(void) puts(" modify the source file, not this file. */");
+ (void) puts("#include \"config.h\"");
printf("const char* %s=\"\\\n",argv[1]);
colno=0;
while((c=getchar())!=EOF)
if(!forget) while(i--)
if(type==ick_TAIL)
a->data.tail[i]=(ick_type16)tempcp[i]+
- (ick_type16)((rand()/(RAND_MAX/256))*256);
+ (ick_type16)((rand()%256)*256);
else
a->data.hybrid[i]=(ick_type32)tempcp[i]+
- (ick_type32)((rand()/(RAND_MAX/256))*256);
+ (ick_type32)((rand()%256)*256);
free(tempcp);
free(buf);
}
/* stash away the variable's value */
{
/*@-nullassign@*/
- ick_overop dummyoo = {NULL, NULL};
+ ick_overop dummyoo;
/*@=nullassign@*/
/* create a new ick_stashbox and push it onto the stack */
- ick_stashbox *sp = (ick_stashbox*)malloc(sizeof(ick_stashbox));
+ ick_stashbox *sp;
+ dummyoo.get = (ick_type32 (*)(ick_type32))NULL;
+ dummyoo.set = (void (*)(ick_type32, void(*)()))NULL;
+ sp = (ick_stashbox*)malloc(sizeof(ick_stashbox));
if (sp == NULL) ick_lose(IE222, ick_lineno, (const char *)NULL);
sp->ick_next = ick_first;
ick_first = sp;
if(co->bitorder[i]>'l')
{
if((padstyle==1&&(i==1||i==9) && !(outword&(1<<(co->nbytes*8-i)))) ||
- (padstyle==2&&(rand()>RAND_MAX/2||!outword)))
+ (padstyle==2&&(rand()%2||!outword)))
outword |= 1<<(co->nbytes*8-i-1);
}
/* Copy the appropriate bit from val to outword. */
st = ick_jicmatch(unopstr);
if(st)
{
- ick_createdata icd[3]={{16,0,1601,{og1,os1},arg1},
- {16,0,1602,{og2,os2},arg2},
- {16,0,1603,{og3,os3},0}};
+ ick_createdata icd[3];
+ icd[0].width=16; icd[1].width=16; icd[2].width=16;
+ icd[0].isarray=0; icd[1].isarray=0; icd[2].isarray=0;
+ icd[0].varnumber=1601; icd[1].varnumber=1602; icd[2].varnumber=1603;
+ icd[0].accessors.get=og1;icd[1].accessors.get=og2;icd[2].accessors.get=og3;
+ icd[0].accessors.set=os1;icd[1].accessors.set=os2;icd[2].accessors.set=os3;
+ icd[0].value=arg1; icd[1].value=arg2; icd[2].value=0;
+
ick_stash(ick_TWOSPOT, vi1, ick_twospots+vi1, ick_oo_twospots);
ick_stash(ick_TWOSPOT, vi2, ick_twospots+vi2, ick_oo_twospots);
ick_stash(ick_TWOSPOT, vi3, ick_twospots+vi3, ick_oo_twospots);
#if ICK_HAVE_STDINT_H+1 == 2
#include <stdint.h>
#else
+/* Ensure that uint32_t, etc, aren't implemented as compatibility macros
+ so that we can implement them as typedefs. */
+#undef uint32_t
+#undef uint16_t
typedef unsigned int uint32_t;
typedef unsigned short uint16_t;
#endif
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include "config.h"
+
typedef struct
{
/*@observer@*/ const char *name;
extern char** globalargv;
extern int globalargc;
/*@=exportlocal@*/
+
+/* Give our own definition of sig_atomic_t for systems that don't have
+ it. char ought to be atomic, on most systems (especially as we don't
+ touch anything but the bottom byte). */
+#if SIZEOF_SIG_ATOMIC_T + 0 == 0
+#undef sig_atomic_t
+typedef char sig_atomic_t
+#endif