From 0a2dab8ac8bbfb0f1dc534ef4fe1b821bc2f43f6 Mon Sep 17 00:00:00 2001 From: mongo Date: Tue, 2 May 2017 16:47:01 -0300 Subject: renamed files to examples --- files/Module/module.c | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 files/Module/module.c (limited to 'files/Module/module.c') diff --git a/files/Module/module.c b/files/Module/module.c deleted file mode 100644 index ba97fe7..0000000 --- a/files/Module/module.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - R.Pollak - Trigger example in C - to compile - gcc -shared -fPIC -o module.so -g -Wall module.c - - on the trigger the ent structure is passed and whether the trigger was on Write or on Read. Write trigger, when it was written to selected cells, - or Read from selected cells. -*/ - -#include - -#include "sc.h" -#include "macros.h" -#include "utils/dictionary.h" -#include "utils/string.h" -#include "range.h" -#include "color.h" -#include "screen.h" -#include "undo.h" -#include "conf.h" -#include "cmds.h" -#include "trigger.h" - -extern char * query(char * ); - -int do_c_call(struct ent *p , int rw) { - FILE *fd = fopen("/tmp/modul.txt","a+"); - fprintf(fd,"%d %d %g %d\n",p->col,p->row,p->v,rw); - fclose(fd); - - return(0); -} -- cgit v1.2.3