upgrade foo() --> foo(void) ansi function definition

This commit is contained in:
rlar 2010-06-23 18:57:13 +00:00
parent 4420a3ecdd
commit 5946300a97
7 changed files with 25 additions and 16 deletions

View File

@ -1,3 +1,12 @@
2010-06-23 Robert Larice
* src/main.c,
* src/frontend/com_measure2.c,
* src/frontend/hpgl.c,
* src/frontend/inpcom.c,
* src/frontend/numparam/spicenum.c,
* src/maths/misc/randnumb.c :
ansi function definitions, type foo() {} --> type foo(void) {}
2010-06-23 Robert Larice 2010-06-23 Robert Larice
* src/frontend/breakp.c, * src/frontend/breakp.c,
* src/frontend/com_let.c, * src/frontend/com_let.c,

View File

@ -847,25 +847,25 @@ static void measure_integ(
} }
/* still some more work to do.... */ /* still some more work to do.... */
void measure_deriv( ) { void measure_deriv(void) {
// DERIVATIVE DERIV // DERIVATIVE DERIV
return; return;
} }
// ERR Equations // ERR Equations
void measure_ERR( ) { void measure_ERR(void) {
return; return;
} }
void measure_ERR1( ) { void measure_ERR1(void) {
return; return;
} }
void measure_ERR2( ) { void measure_ERR2(void) {
return; return;
} }
void measure_ERR3( ) { void measure_ERR3(void) {
return; return;
} }

View File

@ -84,7 +84,7 @@ static double tocm = 0.0025;
static double scale; /* Used for fine tuning */ static double scale; /* Used for fine tuning */
static int hcopygraphid; static int hcopygraphid;
int GL_Init() int GL_Init(void)
{ {
if (!cp_getvar("hcopyscale", VT_STRING, psscale)) { if (!cp_getvar("hcopyscale", VT_STRING, psscale)) {
scale = 1.0; scale = 1.0;
@ -163,7 +163,7 @@ GRAPH *graph)
return 0; return 0;
} }
int GL_Close() int GL_Close(void)
{ {
/* in case GL_Close is called as part of an abort, /* in case GL_Close is called as part of an abort,
@ -186,7 +186,7 @@ int GL_Close()
return 0; return 0;
} }
int GL_Clear() int GL_Clear(void)
{ {
/* do nothing */ /* do nothing */
@ -303,7 +303,7 @@ int colorid)
return 0; return 0;
} }
int GL_Update() int GL_Update(void)
{ {
fflush(plotfile); fflush(plotfile);

View File

@ -2001,7 +2001,7 @@ inp_determine_libraries( struct line *deck, char *lib_name )
} }
static void static void
inp_init_lib_data() inp_init_lib_data(void)
{ {
int i; int i;
@ -2626,7 +2626,7 @@ inp_expand_macro_in_str( char *str )
} }
static void static void
inp_expand_macros_in_func() inp_expand_macros_in_func(void)
{ {
int i; int i;

View File

@ -720,7 +720,7 @@ nupa_add_inst_param (char *param_name, double value)
* the global level. Afterwards, the inst_symbols table is freed. * the global level. Afterwards, the inst_symbols table is freed.
* ----------------------------------------------------------------- */ * ----------------------------------------------------------------- */
void void
nupa_copy_inst_dico () nupa_copy_inst_dico (void)
{ {
entry *entry_p ; /* current entry */ entry *entry_p ; /* current entry */
tdico *dico_p ; /* local copy for speed */ tdico *dico_p ; /* local copy for speed */

View File

@ -512,7 +512,7 @@ rl_event_func()
case it falls back to repeatable calling cp_evloop() case it falls back to repeatable calling cp_evloop()
SJB 26th April 2005 */ SJB 26th April 2005 */
static void static void
app_rl_readlines() app_rl_readlines(void)
{ {
#if defined(HAVE_GNUREADLINE) || defined(HAVE_BSDEDITLINE) #if defined(HAVE_GNUREADLINE) || defined(HAVE_BSDEDITLINE)
/* GNU Readline Support -- Andrew Veliath <veliaa@rpi.edu> */ /* GNU Readline Support -- Andrew Veliath <veliaa@rpi.edu> */

View File

@ -28,7 +28,7 @@ double gauss(void);
This will override the call to srand in main.c. This will override the call to srand in main.c.
Checkseed should be put in front of any call to random or rand. Checkseed should be put in front of any call to random or rand.
*/ */
void checkseed() void checkseed(void)
{ {
int newseed; int newseed;
static int oldseed; static int oldseed;
@ -45,7 +45,7 @@ void checkseed()
} }
/* uniform random number generator, interval -1 .. +1 */ /* uniform random number generator, interval -1 .. +1 */
double drand() double drand(void)
{ {
checkseed(); checkseed();
return ( 2.0*((double) (RR_MAX-abs(random())) / (double)RR_MAX-0.5)); return ( 2.0*((double) (RR_MAX-abs(random())) / (double)RR_MAX-0.5));
@ -54,7 +54,7 @@ double drand()
/*** gauss ***/ /*** gauss ***/
double gauss() double gauss(void)
{ {
static bool gliset = TRUE; static bool gliset = TRUE;
static double glgset = 0.0; static double glgset = 0.0;