gschem

gschem.c File Reference

#include <config.h>
#include <version.h>
#include <missing.h>
#include <stdio.h>
#include <glib.h>
#include "gschem.h"
Include dependency graph for gschem.c:

Go to the source code of this file.

Data Structures

struct  gschem_atexit_struct

Functions

void gschem_atexit (gschem_atexit_func func, gpointer data)
 Register a function to be called on program exit.
void gschem_quit (void)
 Cleanup gSchem on exit.
void main_prog (void *closure, int argc, char *argv[])
 Main Scheme(GUILE) program function.
int main (int argc, char *argv[])
 Main executable entrance point.

Variables

SCM s_pre_load_expr
SCM s_post_load_expr
static GList * exit_functions = NULL

Function Documentation

void gschem_atexit ( gschem_atexit_func  func,
gpointer  data 
)
Function Description
This function registers a function to be called on program exit. Multiple functions will be executed in the order they are registered.
Parameters:
[in]funca pointer to the function to be registered
[in]dataan arbitrary argument provided to the function when it is called

Definition at line 66 of file gschem.c.

void gschem_quit ( void  )
Function Description
This function cleans up all memory objects allocated during the gSchem runtime.

Definition at line 81 of file gschem.c.

Here is the call graph for this function:

void main_prog ( void *  closure,
int  argc,
char *  argv[] 
)
Function Description
This function is the main program called from scm_boot_guile. It handles initializing all libraries and gSchem variables and passes control to the gtk main loop.

Todo:
These two messages are the same. Should be integrated.

Definition at line 129 of file gschem.c.

Here is the call graph for this function:

int main ( int  argc,
char *  argv[] 
)
Function Description
This is the main function for gSchem. It sets up the Scheme(GUILE) environment and passes control to via scm_boot_guile to the main_prog function.

Definition at line 339 of file gschem.c.

Here is the call graph for this function:


Variable Documentation

Contains a Scheme expression arising from command-line arguments. This is evaluated after initialising gschem, but before loading any rc files.

Definition at line 63 of file parsecmd.c.

Contains a Scheme expression arising from command-line arguments. This is evaluated after loading gschem and any schematic files specified on the command-line.

Definition at line 69 of file parsecmd.c.

GList* exit_functions = NULL [static]

Definition at line 53 of file gschem.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines