gschem

g_register.c File Reference

#include <config.h>
#include <stdio.h>
#include <sys/stat.h>
#include "gschem.h"
Include dependency graph for g_register.c:

Go to the source code of this file.

Data Structures

struct  gsubr_t

Functions

static SCM create_hook (const char *name, int n_args)
 Define a hook.
void g_register_funcs (void)
 Register function with Scheme.

Variables

static struct gsubr_t gschem_funcs []

Function Documentation

static SCM create_hook ( const char *  name,
int  n_args 
) [static]
Function Description
Creates a Guile new hook with n_args arguments, and binds it to the variable name, returning the newly created hook.
Parameters:
n_argsNumber of arguments the hook should take.
nameName of variable to bind the hook to.
Returns:
the newly-created hook.

Definition at line 308 of file g_register.c.

void g_register_funcs ( void  )
Function Description
Creates subr objects to make g_rc_* functions that are defined * #g_rc.c, #g_keys.c and #g_funcs.c visible to Scheme.

Definition at line 319 of file g_register.c.

Here is the call graph for this function:


Variable Documentation

struct gsubr_t gschem_funcs[] [static]

Definition at line 50 of file g_register.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines