summaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2010-05-07 12:55:13 +0800
committerPeng Wu <alexepico@gmail.com>2010-05-19 10:09:33 +0800
commit2f0cb527ea398e0ee8debe86231fd20a0e12d30f (patch)
treef9e9c061ff19f5f20036e81c4df2369d6a8a9035 /lua
parentd3df4ef4811c8a6ef1c5660b8e63d4d916b0369a (diff)
downloadibus-libpinyin-2f0cb527ea398e0ee8debe86231fd20a0e12d30f.tar.gz
ibus-libpinyin-2f0cb527ea398e0ee8debe86231fd20a0e12d30f.tar.xz
ibus-libpinyin-2f0cb527ea398e0ee8debe86231fd20a0e12d30f.zip
add const modifier.
Diffstat (limited to 'lua')
-rw-r--r--lua/lua-ext-console.c2
-rw-r--r--lua/lua-plugin.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/lua/lua-ext-console.c b/lua/lua-ext-console.c
index 9490cc9..352f2af 100644
--- a/lua/lua-ext-console.c
+++ b/lua/lua-ext-console.c
@@ -54,7 +54,7 @@ int print_lua_call_result(IBusEnginePlugin * plugin, size_t num){
}
int do_lua_call(IBusEnginePlugin * plugin, const char * command_name, const char * argument){
- lua_command_t * command;
+ const lua_command_t * command;
size_t num;
g_return_if_fail(2 == strlen(command_name));
diff --git a/lua/lua-plugin.h b/lua/lua-plugin.h
index 8116ae1..9ca3661 100644
--- a/lua/lua-plugin.h
+++ b/lua/lua-plugin.h
@@ -22,8 +22,8 @@ typedef struct{
} lua_command_candidate_t;
typedef struct{
- char * lua_function_name;
- char * description;
+ const char * lua_function_name;
+ const char * description;
/*< private, skip it, and register it into Special Table directly with * wildcard. >*/
/*
* list of input_trigger_strings;