[libpeas] Shorten Lua plugin loader filenames
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Shorten Lua plugin loader filenames
- Date: Sat, 14 Feb 2015 20:29:32 +0000 (UTC)
commit 2be61ccc64ed40c4bca3208de43d4c13d5c5e36d
Author: Garrett Regier <garrettregier gmail com>
Date: Sun Jan 18 21:49:52 2015 -0800
Shorten Lua plugin loader filenames
Using "peas-plugin-loader-lua" as a
prefix is just too long.
https://bugzilla.gnome.org/show_bug.cgi?id=742410
configure.ac | 2 +-
loaders/lua5.1/Makefile.am | 4 ++--
...-plugin-loader-lua-utils.c => peas-lua-utils.c} | 4 ++--
...-plugin-loader-lua-utils.h => peas-lua-utils.h} | 9 ++++-----
loaders/lua5.1/peas-plugin-loader-lua.c | 2 +-
5 files changed, 10 insertions(+), 11 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 588f990..992eea4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -254,7 +254,7 @@ m4_define([peas_lgi_version_test], [
#include <lauxlib.h>
#include <lualib.h>
-#include "peas-plugin-loader-lua-utils.c"
+#include "peas-lua-utils.c"
int main(int argc, char **argv)
{
diff --git a/loaders/lua5.1/Makefile.am b/loaders/lua5.1/Makefile.am
index c49aa76..6a71650 100644
--- a/loaders/lua5.1/Makefile.am
+++ b/loaders/lua5.1/Makefile.am
@@ -15,8 +15,8 @@ loader_LTLIBRARIES = liblua51loader.la
liblua51loader_la_SOURCES = \
peas-plugin-loader-lua.c \
peas-plugin-loader-lua.h \
- peas-plugin-loader-lua-utils.c \
- peas-plugin-loader-lua-utils.h
+ peas-lua-utils.c \
+ peas-lua-utils.h
liblua51loader_la_LDFLAGS = \
$(LOADER_LIBTOOL_FLAGS) \
diff --git a/loaders/lua5.1/peas-plugin-loader-lua-utils.c b/loaders/lua5.1/peas-lua-utils.c
similarity index 97%
rename from loaders/lua5.1/peas-plugin-loader-lua-utils.c
rename to loaders/lua5.1/peas-lua-utils.c
index fb043fb..4fc6ce9 100644
--- a/loaders/lua5.1/peas-plugin-loader-lua-utils.c
+++ b/loaders/lua5.1/peas-lua-utils.c
@@ -1,5 +1,5 @@
/*
- * peas-plugin-loader-lua-utils.c
+ * peas-lua-utils.c
* This file is part of libpeas
*
* Copyright (C) 2014 - Garrett Regier
@@ -23,7 +23,7 @@
#include <config.h>
#endif
-#include "peas-plugin-loader-lua-utils.h"
+#include "peas-lua-utils.h"
#include <string.h>
diff --git a/loaders/lua5.1/peas-plugin-loader-lua-utils.h b/loaders/lua5.1/peas-lua-utils.h
similarity index 88%
rename from loaders/lua5.1/peas-plugin-loader-lua-utils.h
rename to loaders/lua5.1/peas-lua-utils.h
index dafe94f..03fb792 100644
--- a/loaders/lua5.1/peas-plugin-loader-lua-utils.h
+++ b/loaders/lua5.1/peas-lua-utils.h
@@ -1,5 +1,5 @@
/*
- * peas-plugin-loader-lua-utils.h
+ * peas-lua-utils.h
* This file is part of libpeas
*
* Copyright (C) 2014 - Garrett Regier
@@ -19,8 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#ifndef __PEAS_PLUGIN_LOADER_LUA_UTILS_H__
-#define __PEAS_PLUGIN_LOADER_LUA_UTILS_H__
+#ifndef __PEAS_LUA_UTILS_H__
+#define __PEAS_LUA_UTILS_H__
#include <glib.h>
#include <lua.h>
@@ -38,5 +38,4 @@ gboolean peas_lua_utils_check_version (lua_State *L,
G_END_DECLS
-#endif /* __PEAS_PLUGIN_LOADER_LUA_UTILS_H__ */
-
+#endif /* __PEAS_LUA_UTILS_H__ */
diff --git a/loaders/lua5.1/peas-plugin-loader-lua.c b/loaders/lua5.1/peas-plugin-loader-lua.c
index 11e221b..d477ecb 100644
--- a/loaders/lua5.1/peas-plugin-loader-lua.c
+++ b/loaders/lua5.1/peas-plugin-loader-lua.c
@@ -32,7 +32,7 @@
#include <lauxlib.h>
#include <lualib.h>
-#include "peas-plugin-loader-lua-utils.h"
+#include "peas-lua-utils.h"
typedef void (* LgiLockFunc) (gpointer lgi_lock);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]