~ubuntu-branches/ubuntu/feisty/elinks/feisty-updates

« back to all changes in this revision

Viewing changes to src/scripting/scripting.c

  • Committer: Bazaar Package Importer
  • Author(s): Peter Gervai
  • Date: 2004-01-21 22:13:45 UTC
  • Revision ID: james.westby@ubuntu.com-20040121221345-ju33hai1yhhqt6kn
Tags: upstream-0.9.1
ImportĀ upstreamĀ versionĀ 0.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* General scripting system functionality */
 
2
/* $Id: scripting.c,v 1.9 2003/10/27 01:12:15 jonas Exp $ */
 
3
 
 
4
#ifdef HAVE_CONFIG_H
 
5
#include "config.h"
 
6
#endif
 
7
 
 
8
#ifdef HAVE_SCRIPTING
 
9
 
 
10
#include "elinks.h"
 
11
 
 
12
#include "intl/gettext/libintl.h"
 
13
#include "modules/module.h"
 
14
#include "sched/event.h"
 
15
#include "scripting/scripting.h"
 
16
 
 
17
 
 
18
/* Backends dynamic area: */
 
19
 
 
20
#include "scripting/guile/core.h"
 
21
#include "scripting/lua/core.h"
 
22
 
 
23
static struct module *scripting_modules[] = {
 
24
#ifdef HAVE_LUA
 
25
        &lua_scripting_module,
 
26
#endif
 
27
#ifdef HAVE_GUILE
 
28
        &guile_scripting_module,
 
29
#endif
 
30
        NULL,
 
31
};
 
32
 
 
33
struct module scripting_module = struct_module(
 
34
        /* name: */             N_("Scripting"),
 
35
        /* options: */          NULL,
 
36
        /* events: */           NULL,
 
37
        /* submodules: */       scripting_modules,
 
38
        /* data: */             NULL,
 
39
        /* init: */             NULL,
 
40
        /* done: */             NULL
 
41
);
 
42
 
 
43
#endif