diff options
author | Jim Blandy <jimb@red-bean.com> | 1998-10-12 20:13:11 +0000 |
---|---|---|
committer | Jim Blandy <jimb@red-bean.com> | 1998-10-12 20:13:11 +0000 |
commit | e2fd07535c3ed56e0dd2d31f9e07f6b998140c72 (patch) | |
tree | 1dda3a36f060de8e901d360a4a486ce69f322c1a /libguile | |
parent | 94a4095908e02e026b5482230a73e5b019842a66 (diff) | |
download | guile-e2fd07535c3ed56e0dd2d31f9e07f6b998140c72.tar.gz |
* simpos.c (scm_software_type): Procedure deleted. This isn't the
right way to handle system variation. Autoconf's approach is the
way and the light.
* simpos.h (scm_software_type): Declaration deleted.
Diffstat (limited to 'libguile')
-rw-r--r-- | libguile/simpos.c | 60 | ||||
-rw-r--r-- | libguile/simpos.h | 1 |
2 files changed, 0 insertions, 61 deletions
diff --git a/libguile/simpos.c b/libguile/simpos.c index 93a641ba6..6dfb9727d 100644 --- a/libguile/simpos.c +++ b/libguile/simpos.c @@ -118,66 +118,6 @@ scm_primitive_exit (SCM status) exit (cstatus); } -/* I have a feeling this whole arrangement below is a bad idea. One - should always test for the presence or absence of a particular - feature, instead of checking the system name. Older versions of a - system may lack features posessed by new ones, and a feature - appearing on one system will soon appear on others. And autoconf - provides the mechanisms for detecting features. -JimB */ - -#ifdef _AIX -# define SYSTNAME "AIX" -#endif -#ifdef vms -# define SYSTNAME "VMS" -#endif -#if defined (unix) || defined (__unix) || defined(__CYGWIN32__) -# define SYSTNAME "UNIX" -#endif -#ifdef MWC -# define SYSTNAME "COHERENT" -#endif -#ifdef _Windows -# define SYSTNAME "WINDOWS" -#else -# ifdef MSDOS -# define SYSTNAME "MS-DOS" -# endif -#endif -#ifdef __EMX__ -# define SYSTNAME "OS/2" -#endif -#ifdef __IBMC__ -# define SYSTNAME "OS/2" -#endif -#ifdef THINK_C -# define SYSTNAME "THINKC" -#endif -#ifdef AMIGA -# define SYSTNAME "AMIGA" -#endif -#ifdef atarist -# define SYSTNAME "ATARIST" -#endif -#ifdef mach -# define SYSTNAME "MACH" -#endif -#ifdef ARM_ULIB -# define SYSTNAME "ACORN" -#endif - -SCM_PROC(s_software_type, "software-type", 0, 0, 0, scm_software_type); - -SCM -scm_software_type() -{ -#ifdef nosve - return SCM_CAR(scm_intern("nosve", 5)); -#else - return SCM_CAR(scm_intern(SYSTNAME, sizeof SYSTNAME/sizeof(char) -1)); -#endif -} - void scm_init_simpos () diff --git a/libguile/simpos.h b/libguile/simpos.h index 2d70fbedc..0d90b2979 100644 --- a/libguile/simpos.h +++ b/libguile/simpos.h @@ -50,7 +50,6 @@ extern SCM scm_system SCM_P ((SCM cmd)); extern SCM scm_getenv SCM_P ((SCM nam)); extern SCM scm_primitive_exit SCM_P ((SCM status)); -extern SCM scm_software_type SCM_P ((void)); extern void scm_init_simpos SCM_P ((void)); #endif /* SIMPOSH */ |