libgeda

scheme_os.c File Reference

Scheme API functions for misc. OS-related stuff. More...

#include <config.h>
#include <libgeda_priv.h>
#include <libgedaguile_priv.h>
#include "scheme_os.x"
Include dependency graph for scheme_os.c:

Go to the source code of this file.

Functions

 SCM_SYMBOL (carbon_sym,"carbon")
 SCM_SYMBOL (cygwin_sym,"cygwin")
 SCM_SYMBOL (linux_sym,"linux")
 SCM_SYMBOL (win32_sym,"win32")
 SCM_SYMBOL (win32_native_sym,"win32-native")
 SCM_DEFINE (platform,"%platform", 0, 0, 0,(),"Return a list of symbols describing the host platform.")
 Get host operating system information.
static void init_module_geda_core_os ()
 Create the (geda core os) Scheme module.
void edascm_init_os ()
 Initialise the host platform support procedures.

Detailed Description

Definition in file scheme_os.c.


Function Documentation

SCM_SYMBOL ( carbon_sym  ,
"carbon"   
)
SCM_SYMBOL ( cygwin_sym  ,
"cygwin"   
)
SCM_SYMBOL ( linux_sym  ,
"linux"   
)
SCM_SYMBOL ( win32_sym  ,
"win32"   
)
SCM_SYMBOL ( win32_native_sym  ,
"win32-native"   
)
SCM_DEFINE ( platform  ,
"%platform"  ,
,
,
,
()  ,
"Return a list of symbols describing the host platform."   
)
Function Description
Returns a list of symbols describing the operating system. The symbols may include:
  • win32 -- Windows
  • win32-native -- Windows, not via Cygwin
  • cygwin -- Cygwin
  • carbon -- Mac OS X Carbon
  • linux -- Linux
Returns:
a list of symbols.

Definition at line 49 of file scheme_os.c.

static void init_module_geda_core_os ( ) [static]
Function Description
Defines procedures in the (geda core os) module. The module can be accessed using (use-modules (geda core os)).

Definition at line 80 of file scheme_os.c.

void edascm_init_os ( )
Function Description

Registers some Scheme procedures that provide cross-platform support. Should only be called by scheme_api_init().

Definition at line 98 of file scheme_os.c.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines