$platform - MicroEmacs '99 host platform identifier
$platform "string"; Default is platform specific
The $platform variable is a fixed ASCII string used to identify the current working platform, attempts to set this variable result in an error returned from set-variable(2).
Possible values are:
"dos"
"win32"
"irix"
"hpux"
"unixwr1"
"linux"
"sunos"
"freebsd"
$platform is often used in .emf files to allow portability of macro files across platforms, allowing macro files to perform platform specific operations. $system(5) is also often used for this purpose as its value is easier to assess.
The following example is taken from the me.emf file which uses the $platform variable to load the platform specific initialization files.
; ; load in the platform specific stuff !if &seq $platform "dos" ; is it an IBM-PC running dos ? execute-file "dos" !elif &seq $platform "irix" ; is it an sgi ? execute-file "irix" !elif &seq $platform "hpux" ; is it an hp ? execute-file "hpux" . . !endif
This can be simplified to:
; ; load in the platform specific stuff execute-file $platform
This variable can not be set. Any attempt to set it will result in an error.
(c) Copyright JASSPA 1999
Last Modified: 1998/09/03
Generated On: 1999/12/01