more bla, and more bugs

This commit is contained in:
tth
2021-09-16 18:53:40 +02:00
parent d20a832a8d
commit 0ad7108d5a
12 changed files with 159 additions and 10 deletions

View File

@@ -37,6 +37,8 @@ fifo-rx: fifo-rx.c my-fifo.h dtime.o Makefile
#------------- PLUGIN --------------------
plugin: plugiciel.so appelant
plugiciel.so: plugiciel.c plugiciel.h Makefile
gcc -Wall -shared -fPIC $< -o $@

View File

@@ -5,7 +5,6 @@
void affichage(char *titre, float vals[4]);
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - */
int main(int argc, char *argv[])
{
void *handle;
@@ -24,10 +23,9 @@ if (!handle) {
values[0] = 13.37; values[1] = 16.64;
values[2] = 3.14159; values[3] = 0.5;
funcname("rgb * a =", values);
dlclose(handle);
return 0;
}
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - */

View File

@@ -3,10 +3,9 @@
#include <stdio.h>
#include "plugiciel.h"
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - */
void affichage(char *titre, float vals[4])
{
printf("%s : %f %f %f\n", titre,
vals[0]*vals[3], vals[1]*vals[3], vals[2]*vals[3]);
vals[0]*vals[3], vals[1]*vals[3],
vals[2]*vals[3]);
}
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - */