1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/math/yacas/files/patch-embed-example4.c
Michael Johnson 2ab696ca9a - Update to 1.0.58
PR:		ports/85387
Submitted by:	Ports Fury
2005-08-30 01:52:16 +00:00

30 lines
594 B
C

--- embed/example4.c.orig Mon Jul 18 04:54:09 2005
+++ embed/example4.c Sun Aug 7 22:28:37 2005
@@ -22,10 +22,12 @@
}
void runexpr(void* object)
{
+ void* result;
+
printf("Input> ");
print_expr(object);
printf("\n");
- void* result = yacas_execute(object);
+ result = yacas_execute(object);
printf("Output> ");
print_expr(result);
printf("\n");
@@ -35,9 +37,10 @@
int main(int argc, char** argv)
{
int i;
+ void *input;
yacas_init();
-
- void *input =
+
+ input =
yacas_create_sublist(
yacas_link_objects(
yacas_create_atom("+"),