mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Fixed function definitions
This commit is contained in:
parent
111cf6f3a6
commit
94993ef05b
2 changed files with 5 additions and 5 deletions
|
@ -292,7 +292,7 @@ object Cyc_has_cycle(object lst) {
|
|||
// to the value returned by (current-output-port). It is an
|
||||
// error to attempt an output operation on a closed port
|
||||
//
|
||||
object dispatch_display_va(int argc, object x, ...) {
|
||||
object dispatch_display_va(int argc, object clo, object cont, object x, ...) {
|
||||
object result;
|
||||
va_list ap;
|
||||
va_start(ap, x);
|
||||
|
@ -405,7 +405,7 @@ object Cyc_display(object x, FILE *port)
|
|||
fprintf(port, "Cyc_display: bad tag x=%ld\n", ((closure)x)->tag); getchar(); exit(0);}
|
||||
return x;}
|
||||
|
||||
object dispatch_write_va(int argc, object x, ...) {
|
||||
object dispatch_write_va(int argc, object clo, object cont, object x, ...) {
|
||||
object result;
|
||||
va_list ap;
|
||||
va_start(ap, x);
|
||||
|
@ -1254,7 +1254,7 @@ void _peek_91char(object cont, object args) {
|
|||
return_funcall1(cont, Cyc_io_peek_char(car(args)));}
|
||||
void _write(object cont, object args) {
|
||||
|
||||
TODO: this and _display below are broken and crashing in icyc. not sure what is going on?
|
||||
// TODO: this and _display below are broken and crashing in icyc. not sure what is going on?
|
||||
integer_type argc = Cyc_length(args);
|
||||
dispatch(argc.value, (function_type)dispatch_write_va, cont, cont, args); }
|
||||
void _display(object cont, object args) {
|
||||
|
|
|
@ -69,11 +69,11 @@ list mcons(object,object);
|
|||
cvar_type *mcvar(object *var);
|
||||
object terpri(void);
|
||||
object Cyc_display(object, FILE *port);
|
||||
object dispatch_display_va(int argc, object x, ...);
|
||||
object dispatch_display_va(int argc, object clo, object cont, object x, ...);
|
||||
object Cyc_display_va(int argc, object x, ...);
|
||||
object Cyc_display_va_list(int argc, object x, va_list ap);
|
||||
object Cyc_write(object, FILE *port);
|
||||
object dispatch_write_va(int argc, object x, ...);
|
||||
object dispatch_write_va(int argc, object clo, object cont, object x, ...);
|
||||
object Cyc_write_va(int argc, object x, ...);
|
||||
object Cyc_write_va_list(int argc, object x, va_list ap);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue