From b1f8fb664f302c1ce93d8ffc90f79b236f5bab95 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Fri, 23 Oct 1998 05:35:17 +0000 Subject: [PATCH] Implement SCHEME-PROGRAM-NAME primitive. This returns (argv[0]). --- v7/src/microcode/sysprim.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/v7/src/microcode/sysprim.c b/v7/src/microcode/sysprim.c index 295dbe9ec..8528be783 100644 --- a/v7/src/microcode/sysprim.c +++ b/v7/src/microcode/sysprim.c @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: sysprim.c,v 9.43 1998/10/23 05:34:16 cph Exp $ +$Id: sysprim.c,v 9.44 1998/10/23 05:35:17 cph Exp $ Copyright (c) 1987-98 Massachusetts Institute of Technology @@ -171,5 +171,6 @@ DEFINE_PRIMITIVE ("GC-SPACE-STATUS", Prim_gc_space_status, 0, 0, 0) DEFINE_PRIMITIVE ("SCHEME-PROGRAM-NAME", Prim_scheme_program_name, 0, 0, 0) { + PRIMITIVE_HEADER (0); PRIMITIVE_RETURN (char_pointer_to_string (scheme_program_name)); } -- 2.25.1