-/* Copyright 2001, 2002, 2003 Free Software Foundation, Inc.
+/* Copyright 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
This file is part of GNU Binutils.
internal (void)
{
int c = count ();
- struct op *new = (struct op *) xmalloc (sizeof (struct op) * c);
+ struct op *new = xmalloc (sizeof (struct op) * c);
struct op *p = opt;
memcpy (new, p, c * sizeof (struct op));
struct op *p = opt;
int idx = -1;
char *oldname = "";
- struct op *new = (struct op *) xmalloc (sizeof (struct op) * c);
+ struct op *new = xmalloc (sizeof (struct op) * c);
memcpy (new, p, c * sizeof (struct op));
/* Sort all names in table alphabetically. */
- qsort (new, c, sizeof (struct op), (int (*)(const void *, const void *))func);
+ qsort (new, c, sizeof (struct op), (int (*)(const void *, const void *)) func);
printf ("/* DO NOT EDIT! -*- buffer-read-only: t -*-\n");
printf (" This file is automatically generated by z8kgen. */\n\n");
printf ("#endif\n");
printf (" const char *name;\n");
printf (" unsigned char opcode;\n");
- printf (" void (*func) PARAMS ((void));\n");
+ printf (" void (*func) (void);\n");
printf (" unsigned int arg_info[4];\n");
printf (" unsigned int byte_info[%d];\n", BYTE_INFO_LEN);
printf (" int noperands;\n");