# HG changeset patch # User Mike Pavone # Date 1246081833 14400 # Node ID 3cc5e4a423445e462dc954ba1e7c8f0dec7c94a7 # Parent d8b4d38fceb60d20bdd5cad413a05c6c7358c1d6 Missed registration for *@Real Number in previous commit diff -r d8b4d38fceb6 -r 3cc5e4a42344 interp.c --- a/interp.c Fri Jun 26 19:57:46 2009 -0400 +++ b/interp.c Sat Jun 27 01:50:33 2009 -0400 @@ -1529,6 +1529,11 @@ aworker->input_types[0] = BUILTIN_TYPE_REAL; aworker->input_types[1] = BUILTIN_TYPE_REAL; + aworker = create_worker(prog, "*@Real Number", 2, 1, WORKER_TYPE); + aworker->implement_func=(custom_worker *)vis_real_mult; + aworker->input_types[0] = BUILTIN_TYPE_REAL; + aworker->input_types[1] = BUILTIN_TYPE_REAL; + aworker = create_worker(prog, "Cosine@Real Number", 1, 1, WORKER_TYPE); aworker->implement_func=(custom_worker *)vis_real_cos; aworker->input_types[0] = BUILTIN_TYPE_REAL; diff -r d8b4d38fceb6 -r 3cc5e4a42344 interp.h --- a/interp.h Fri Jun 26 19:57:46 2009 -0400 +++ b/interp.h Sat Jun 27 01:50:33 2009 -0400 @@ -231,6 +231,7 @@ int init_global_store(datum ** params, queue_entry * worker_entry); int vis_type_of(datum ** params, queue_entry * worker_entry); int vis_real_div(datum ** inputlist, queue_entry * worker_entry); +int vis_real_mult(datum ** inputlist, queue_entry * worker_entry); int vis_real_cos(datum ** inputlist, queue_entry * worker_entry); int vis_real_sin(datum ** inputlist, queue_entry * worker_entry); int vis_real_tan(datum ** inputlist, queue_entry * worker_entry); diff -r d8b4d38fceb6 -r 3cc5e4a42344 string.c --- a/string.c Fri Jun 26 19:57:46 2009 -0400 +++ b/string.c Sat Jun 27 01:50:33 2009 -0400 @@ -48,7 +48,7 @@ #ifndef SEGA int vis_realtostring(datum ** inputlist, queue_entry * worker_entry) { - char temp_buf[30];//Is this enough? + char temp_buf[512];//Is this enough? datum * output; sprintf(temp_buf, "%f", inputlist[0]->c.real); release_ref(inputlist[0]);