1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 14:56:39 +02:00

core: add constant WEECHAT_EXTRA_LIBDIR

This commit is contained in:
Sébastien Helleu
2017-07-05 19:56:41 +02:00
parent d626fe9b09
commit 94cd1b037f
5 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -885,7 +885,7 @@ completion_list_add_plugins_installed_cb (const void *pointer, void *data,
(void) buffer;
/* plugins in WeeChat extra lib dir */
extra_libdir = getenv ("WEECHAT_EXTRA_LIBDIR");
extra_libdir = getenv (WEECHAT_EXTRA_LIBDIR);
if (extra_libdir && extra_libdir[0])
{
length = strlen (extra_libdir) + 16 + 1;
+1 -1
View File
@@ -573,7 +573,7 @@ debug_directories ()
{
char *extra_libdir;
extra_libdir = getenv ("WEECHAT_EXTRA_LIBDIR");
extra_libdir = getenv (WEECHAT_EXTRA_LIBDIR);
gui_chat_printf (NULL, "");
gui_chat_printf (NULL, _("Directories:"));
+1 -1
View File
@@ -555,7 +555,7 @@ util_search_full_lib_name_ext (const char *filename, const char *extension,
(strchr (filename, '.')) ? "" : extension);
/* try libdir from environment variable WEECHAT_EXTRA_LIBDIR */
extra_libdir = getenv ("WEECHAT_EXTRA_LIBDIR");
extra_libdir = getenv (WEECHAT_EXTRA_LIBDIR);
if (extra_libdir && extra_libdir[0])
{
length = strlen (extra_libdir) + strlen (name_with_ext) +
+3
View File
@@ -93,6 +93,9 @@
/* internal charset */
#define WEECHAT_INTERNAL_CHARSET "UTF-8"
/* name of environment variable with an extra lib dir */
#define WEECHAT_EXTRA_LIBDIR "WEECHAT_EXTRA_LIBDIR"
/* global variables and functions */
extern int weechat_debug_core;
extern char *weechat_argv0;
+1 -1
View File
@@ -1041,7 +1041,7 @@ plugin_auto_load (int argc, char **argv,
/* auto-load plugins in WEECHAT_EXTRA_LIBDIR environment variable */
if (load_from_extra_lib_dir)
{
extra_libdir = getenv ("WEECHAT_EXTRA_LIBDIR");
extra_libdir = getenv (WEECHAT_EXTRA_LIBDIR);
if (extra_libdir && extra_libdir[0])
{
length = strlen (extra_libdir) + 16 + 1;