libgeda

scheme_toplevel.c File Reference

Scheme API procedures for working with the TOPLEVEL. More...

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

Go to the source code of this file.

Functions

void edascm_dynwind_toplevel (TOPLEVEL *toplevel)
 Set the TOPLEVEL fluid in the current dynamic context.
 SCM_DEFINE (edascm_current_toplevel,"%current-toplevel", 0, 0, 0,(),"Get the TOPLEVEL for the current dynamic context.")
 Get the value of the TOPLEVEL fluid.
TOPLEVELedascm_c_current_toplevel ()
 Get the value of the TOPLEVEL fluid.
 SCM_DEFINE (edascm_with_toplevel,"%with-toplevel", 2, 0, 0,(SCM toplevel, SCM thunk),"Call `thunk', setting the TOPLEVEL fluid to `toplevel'.")
 Set the current TOPLEVEL temporarily.
SCM edascm_c_with_toplevel (TOPLEVEL *toplevel, SCM(*func)(void *), void *user_data)
 Set the current TOPLEVEL temporarily.
static void init_module_geda_core_toplevel ()
 Create the (geda core toplevel) Scheme module.
void edascm_init_toplevel ()
 Initialise the TOPLEVEL manipulation procedures.

Variables

SCM scheme_toplevel_fluid = SCM_UNDEFINED

Detailed Description

Definition in file scheme_toplevel.c.


Function Documentation

SCM_DEFINE ( edascm_current_toplevel  ,
"%current-toplevel"  ,
,
,
,
()  ,
"Get the TOPLEVEL for the current dynamic context."   
)
Function Description
Return the value of the TOPLEVEL fluid in the current dynamic context.

Definition at line 56 of file scheme_toplevel.c.

SCM_DEFINE ( edascm_with_toplevel  ,
"%with-toplevel"  ,
,
,
,
(SCM toplevel, SCM thunk)  ,
"Call `thunk'  ,
setting the TOPLEVEL fluid to`toplevel'."   
)
Function Description
Set the TOPLEVEL fluid to toplevel and call thunk.

Definition at line 87 of file scheme_toplevel.c.

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

Definition at line 116 of file scheme_toplevel.c.

void edascm_init_toplevel ( )
Function Description
Registers some Scheme procedures for working with TOPLEVEL smobs and creates the TOPLEVEL fluid. Should only be called by scheme_api_init().

Definition at line 133 of file scheme_toplevel.c.

Here is the call graph for this function:


Variable Documentation

SCM scheme_toplevel_fluid = SCM_UNDEFINED

Definition at line 30 of file scheme_toplevel.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines