summaryrefslogtreecommitdiff
path: root/src/common/weechat.h
diff options
context:
space:
mode:
authoruid67137 <uid67137>2003-12-26 12:59:31 +0000
committeruid67137 <uid67137>2003-12-26 12:59:31 +0000
commit3ea696bbc08ed1a2483bee71fc7b9b832624a88d (patch)
treed06fd79e5992324fb2e1818984baba79e622e30b /src/common/weechat.h
parent57e00428caa2001b7bc9e0e85d17ffed128544b6 (diff)
downloadweechat-3ea696bbc08ed1a2483bee71fc7b9b832624a88d.zip
Perl scripts auto-load, if no path given, look in ~/.weechat/perl when loading Perl script, auto create plugin directories at startup (~/.weechat/perl, /perl/autoload, /python, /python/autoload, /ruby, /ruby/autoload)
Diffstat (limited to 'src/common/weechat.h')
-rw-r--r--src/common/weechat.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/common/weechat.h b/src/common/weechat.h
index 53fc0dc21..47b9e12ed 100644
--- a/src/common/weechat.h
+++ b/src/common/weechat.h
@@ -86,6 +86,15 @@
" -l, --license display WeeChat license\n" \
" -v, --version display WeeChat version\n\n"
+/* directory separator, depending on OS */
+
+#ifdef _WIN32
+ #define DIR_SEPARATOR "\\"
+#else
+ #define DIR_SEPARATOR "/"
+#endif
+
+/* global variables and functions */
extern int quit_weechat;
extern char *weechat_home;