upgrade foo() --> foo(void) ansi function definition
This commit is contained in:
parent
4420a3ecdd
commit
5946300a97
|
|
@ -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
|
||||
* src/frontend/breakp.c,
|
||||
* src/frontend/com_let.c,
|
||||
|
|
|
|||
|
|
@ -847,25 +847,25 @@ static void measure_integ(
|
|||
}
|
||||
|
||||
/* still some more work to do.... */
|
||||
void measure_deriv( ) {
|
||||
void measure_deriv(void) {
|
||||
// DERIVATIVE DERIV
|
||||
return;
|
||||
}
|
||||
|
||||
// ERR Equations
|
||||
void measure_ERR( ) {
|
||||
void measure_ERR(void) {
|
||||
return;
|
||||
}
|
||||
|
||||
void measure_ERR1( ) {
|
||||
void measure_ERR1(void) {
|
||||
return;
|
||||
}
|
||||
|
||||
void measure_ERR2( ) {
|
||||
void measure_ERR2(void) {
|
||||
return;
|
||||
}
|
||||
|
||||
void measure_ERR3( ) {
|
||||
void measure_ERR3(void) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ static double tocm = 0.0025;
|
|||
static double scale; /* Used for fine tuning */
|
||||
static int hcopygraphid;
|
||||
|
||||
int GL_Init()
|
||||
int GL_Init(void)
|
||||
{
|
||||
if (!cp_getvar("hcopyscale", VT_STRING, psscale)) {
|
||||
scale = 1.0;
|
||||
|
|
@ -163,7 +163,7 @@ GRAPH *graph)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int GL_Close()
|
||||
int GL_Close(void)
|
||||
{
|
||||
|
||||
/* in case GL_Close is called as part of an abort,
|
||||
|
|
@ -186,7 +186,7 @@ int GL_Close()
|
|||
return 0;
|
||||
}
|
||||
|
||||
int GL_Clear()
|
||||
int GL_Clear(void)
|
||||
{
|
||||
|
||||
/* do nothing */
|
||||
|
|
@ -303,7 +303,7 @@ int colorid)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int GL_Update()
|
||||
int GL_Update(void)
|
||||
{
|
||||
|
||||
fflush(plotfile);
|
||||
|
|
|
|||
|
|
@ -2001,7 +2001,7 @@ inp_determine_libraries( struct line *deck, char *lib_name )
|
|||
}
|
||||
|
||||
static void
|
||||
inp_init_lib_data()
|
||||
inp_init_lib_data(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
|
@ -2626,7 +2626,7 @@ inp_expand_macro_in_str( char *str )
|
|||
}
|
||||
|
||||
static void
|
||||
inp_expand_macros_in_func()
|
||||
inp_expand_macros_in_func(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
|
|
|||
|
|
@ -720,7 +720,7 @@ nupa_add_inst_param (char *param_name, double value)
|
|||
* the global level. Afterwards, the inst_symbols table is freed.
|
||||
* ----------------------------------------------------------------- */
|
||||
void
|
||||
nupa_copy_inst_dico ()
|
||||
nupa_copy_inst_dico (void)
|
||||
{
|
||||
entry *entry_p ; /* current entry */
|
||||
tdico *dico_p ; /* local copy for speed */
|
||||
|
|
|
|||
|
|
@ -512,7 +512,7 @@ rl_event_func()
|
|||
case it falls back to repeatable calling cp_evloop()
|
||||
SJB 26th April 2005 */
|
||||
static void
|
||||
app_rl_readlines()
|
||||
app_rl_readlines(void)
|
||||
{
|
||||
#if defined(HAVE_GNUREADLINE) || defined(HAVE_BSDEDITLINE)
|
||||
/* GNU Readline Support -- Andrew Veliath <veliaa@rpi.edu> */
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ double gauss(void);
|
|||
This will override the call to srand in main.c.
|
||||
Checkseed should be put in front of any call to random or rand.
|
||||
*/
|
||||
void checkseed()
|
||||
void checkseed(void)
|
||||
{
|
||||
int newseed;
|
||||
static int oldseed;
|
||||
|
|
@ -45,7 +45,7 @@ void checkseed()
|
|||
}
|
||||
|
||||
/* uniform random number generator, interval -1 .. +1 */
|
||||
double drand()
|
||||
double drand(void)
|
||||
{
|
||||
checkseed();
|
||||
return ( 2.0*((double) (RR_MAX-abs(random())) / (double)RR_MAX-0.5));
|
||||
|
|
@ -54,7 +54,7 @@ double drand()
|
|||
|
||||
/*** gauss ***/
|
||||
|
||||
double gauss()
|
||||
double gauss(void)
|
||||
{
|
||||
static bool gliset = TRUE;
|
||||
static double glgset = 0.0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue