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

« back to all changes in this revision

Viewing changes to src/scripting/lua/core.h

  • 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
/* $Id: core.h,v 1.13 2003/12/20 22:42:54 pasky Exp $ */
 
2
 
 
3
#ifndef EL__SCRIPTING_LUA_CORE_H
 
4
#define EL__SCRIPTING_LUA_CORE_H
 
5
 
 
6
#ifdef HAVE_LUA
 
7
 
 
8
#include <lua.h>        /* This is standard include. */
 
9
#ifdef HAVE_LAUXLIB_H
 
10
#include <lauxlib.h>    /* needed for lua_ref, lua_unref */
 
11
#endif
 
12
#ifdef HAVE_LUA_PCALL
 
13
#define lua_call(L,nargs,nresults)     lua_pcall(L,nargs,nresults,0)
 
14
#define lua_open(x)    (lua_open)()
 
15
#endif
 
16
#ifndef LUA_ALERT
 
17
#define LUA_ALERT      "alert"
 
18
#endif
 
19
 
 
20
#include "modules/module.h"
 
21
#include "sched/event.h"
 
22
#include "sched/session.h"
 
23
 
 
24
extern lua_State *lua_state;
 
25
 
 
26
int prepare_lua(struct session *);
 
27
void finish_lua(void);
 
28
 
 
29
void alert_lua_error(unsigned char *);
 
30
void alert_lua_error2(unsigned char *, unsigned char *);
 
31
 
 
32
enum evhook_status dialog_lua_console(va_list ap, void *data);
 
33
enum evhook_status free_lua_console_history(va_list ap, void *data);
 
34
 
 
35
extern struct module lua_scripting_module;
 
36
 
 
37
#endif
 
38
 
 
39
#endif