-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Until now this is without any functionality.
- Loading branch information
Showing
5 changed files
with
111 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** \file | ||
* \short LUA implementation | ||
* \author Klaus Ethgen <Klaus@Ethgen.de> | ||
*/ | ||
|
||
/* | ||
* This file is a part of Geeqie project (http://geeqie.sourceforge.net/). | ||
* Copyright (C) 2008 - 2010 The Geeqie Team | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License as published by the Free | ||
* Software Foundation; either version 2 of the License, or (at your option) | ||
* any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
* more details. | ||
*/ | ||
|
||
#include "config.h" | ||
|
||
#ifdef HAVE_LUA | ||
|
||
#include <lua.h> | ||
#include <lauxlib.h> | ||
|
||
static lua_State *L; /** The LUA object needed for all operations (NOTE: That is | ||
* a upper-case variable to match the documentation!) */ | ||
|
||
/** | ||
* \brief Initialize the lua interpreter. | ||
*/ | ||
void lua_init(void) | ||
{ | ||
L = luaL_newstate(); | ||
luaL_openlibs(L); /* Open all libraries for lua programms */ | ||
} | ||
|
||
#endif | ||
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** \file | ||
* \short LUA implementation | ||
* \author Klaus Ethgen <Klaus@Ethgen.de> | ||
*/ | ||
|
||
/* | ||
* This file is a part of Geeqie project (http://geeqie.sourceforge.net/). | ||
* Copyright (C) 2008 - 2010 The Geeqie Team | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License as published by the Free | ||
* Software Foundation; either version 2 of the License, or (at your option) | ||
* any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
* more details. | ||
*/ | ||
|
||
#ifndef __LUA_H | ||
#define __LUA_H | ||
|
||
#ifdef HAVE_LUA | ||
|
||
void lua_init(void); | ||
|
||
#endif | ||
#endif | ||
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters