summaryrefslogtreecommitdiffstats
path: root/src/trigger.c
diff options
context:
space:
mode:
authormongo <andmarti@gmail.com>2017-04-26 19:11:15 -0300
committermongo <andmarti@gmail.com>2017-04-26 19:11:15 -0300
commitb3f75cacdc06f9cc97df87099f0b70bb880e3c4c (patch)
treea8437bcfd0109a186a6b905800cab7d5de44c90f /src/trigger.c
parent4db041841caa49178c53232c24e0523553433e8f (diff)
gnuplot interaction
Diffstat (limited to 'src/trigger.c')
-rw-r--r--src/trigger.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/src/trigger.c b/src/trigger.c
index ca6e69e..4de1a88 100644
--- a/src/trigger.c
+++ b/src/trigger.c
@@ -28,6 +28,7 @@
#include "conf.h"
#include "cmds.h"
#include "trigger.h"
+#include "file.h"
#ifdef XLUA
#include "lua.h"
@@ -155,26 +156,3 @@ void do_C_Trigger_cell(struct ent * p, int rw) {
printf ("%d\n", (*function)(p,rw ));
return;
}
-
-int plugin_exists(char * name, int len, char * path) {
- FILE * fp;
- static char * HomeDir;
-
- if ((HomeDir = getenv("HOME"))) {
- strcpy((char *) path, HomeDir);
- strcat((char *) path, "/.scim/");
- strncat((char *) path, name, len);
- if ((fp = fopen((char *) path, "r"))) {
- fclose(fp);
- return 1;
- }
- }
- strcpy((char *) path, HELP_PATH);
- strcat((char *) path, "/");
- strncat((char *) path, name, len);
- if ((fp = fopen((char *) path, "r"))) {
- fclose(fp);
- return 1;
- }
- return 0;
-}