From f8804023c6e194ee64dd25d5f83953b820c43f21 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Fri, 23 Oct 1998 05:34:16 +0000 Subject: [PATCH] Implement SCHEME-PROGRAM-NAME primitive. This returns (argv[0]). --- v7/src/microcode/sysprim.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/v7/src/microcode/sysprim.c b/v7/src/microcode/sysprim.c index 649e75fe3..295dbe9ec 100644 --- a/v7/src/microcode/sysprim.c +++ b/v7/src/microcode/sysprim.c @@ -1,8 +1,8 @@ /* -*-C-*- -$Id: sysprim.c,v 9.42 1996/10/02 18:58:56 cph Exp $ +$Id: sysprim.c,v 9.43 1998/10/23 05:34:16 cph Exp $ -Copyright (c) 1987-96 Massachusetts Institute of Technology +Copyright (c) 1987-98 Massachusetts Institute of Technology This material was developed by the Scheme project at the Massachusetts Institute of Technology, Department of Electrical Engineering and @@ -168,3 +168,8 @@ DEFINE_PRIMITIVE ("GC-SPACE-STATUS", Prim_gc_space_status, 0, 0, 0) #endif /* USE_STACKLETS */ PRIMITIVE_RETURN (result); } + +DEFINE_PRIMITIVE ("SCHEME-PROGRAM-NAME", Prim_scheme_program_name, 0, 0, 0) +{ + PRIMITIVE_RETURN (char_pointer_to_string (scheme_program_name)); +} -- 2.25.1