Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

rke.h, rke.c: Do not declare alloca nor malloca, include <stdlib.h> i…

…nstead
  • Loading branch information...
commit 7400ca38a57692f287d4bbf437e1b37e79901742 1 parent cc7073b
@pinard authored
Showing with 1 addition and 16 deletions.
  1. +0 −2  Makefile
  2. +0 −12 rke.c
  3. +1 −2  rke.h
View
2  Makefile
@@ -20,13 +20,11 @@ CC = gcc
CFLAGS = -g
LDFLAGS =
-
example: example.o rke.o
$(CC) $(LDFLAGS) example.o rke.o -o example -lm
example.o: rke.h example.c
rke.o: rke.h rke.c
-
clean:
rm -f *~ *.o example
View
12 rke.c
@@ -17,19 +17,11 @@
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-
-
/* Global declarations, initialization and termination. */
-
#include "rke.h"
-
extern double fabs ();
-extern char *malloc ();
-extern char *alloca ();
-
-
/* Initialize a new system of equations. */
@@ -55,8 +47,6 @@ rke_init (number, routine) /* Newly allocated reentrancy block */
return var;
}
-
-
/* Terminate a set of equations. */
void
@@ -69,8 +59,6 @@ rke_term (var)
/* Main routine of the module, ODE solver. */
-
-
/* Perform a consistent move of time in the system. */
int /* !0 if success */
View
3  rke.h
@@ -17,7 +17,7 @@
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-
+#include <stdlib.h>
typedef struct struct_rke_variables
{
@@ -39,7 +39,6 @@ typedef struct struct_rke_variables
}
*rke_variables;
-
extern rke_variables rke_init (int, int (*) ());
extern void rke_term (rke_variables);
extern int rke_solve (rke_variables, double *, double[], double);
Please sign in to comment.
Something went wrong with that request. Please try again.