int Scs; /* Number of optimizations found. */
-STATIC cs_clear()
+STATIC void cs_clear()
{
clr_avails();
clr_entities();
}
}
-main(argc, argv)
- int argc;
- char *argv[];
+int main(int argc, char *argv[])
{
Scs = 0;
go(argc, argv, no_action, cs_optimize, cs_machinit, no_action);
#include "cs.h"
#include "cs_aux.h"
#include "cs_avail.h"
+#include "cs_debug.h"
#include "cs_entity.h"
#ifdef VERBOSE
fprintf(stderr,"\n");
}
-SHOWOCCUR(occur_p ocp)
+void SHOWOCCUR(occur_p ocp)
{
/* Shows all instructions in an occurrence. */
#include "../share/cset.h"
#include "../share/lset.h"
#include "cs.h"
+#include "cs_alloc.h"
#include "cs_aux.h"
#include "cs_debug.h"
#include "cs_avail.h"
*/
#include <stdio.h>
+#include "types.h"
+#include "debug.h"
#include "files.h"
-struct files* findfiles(int argc, const char** argv)
+struct files* findfiles(int argc, char * const *argv)
{
static struct files files;
/* The rest of the arguments. */
- const char** argv;
+ char * const *argv;
int argc;
};
-struct files* findfiles(int argc, const char** argv);
+struct files* findfiles(int argc, char * const *argv);
FILE *openfile(const char *name, const char *mode);
/*
/* getbblocks */
-STATIC argstring(short length, argb_p abp)
+STATIC void argstring(short length, argb_p abp)
{
while (length--) {
fclose(f);
}
-void go(int argc, const char** argv,
+void go(int argc, char * const *argv,
void (*initialize)(void *), void (*optimize)(void *),
void (*phase_machinit)(void *), void (*proc_flag)(void *))
{
* and 'optimize' is called with the current procedure
* as parameter.
*/
-void go(int argc, const char** argv,
+void go(int argc, char * const *argv,
void (*initialize)(void *null),
void (*optimize)(void *), /* (proc_p *p) */
void (*phase_machinit)(void *), /* (FILE *f) */
typedef struct bitvector *cset;
typedef elem_p Lindex;
typedef short Cindex;
-typedef char *Lelem_t;
+typedef void *Lelem_t;
typedef short Celem_t;
typedef union pext_t *pext_p;