From 301358425f5dd1dd66c6200da02b25cb99b5a41a Mon Sep 17 00:00:00 2001 From: Philippe PITTOLI Date: Tue, 28 Jan 2020 13:37:47 +0100 Subject: [PATCH] remove old experiments --- drop/build.sh | 23 ----------------------- drop/print-bytes.c | 27 --------------------------- drop/to-pascal.pl | 9 --------- 3 files changed, 59 deletions(-) delete mode 100755 drop/build.sh delete mode 100644 drop/print-bytes.c delete mode 100644 drop/to-pascal.pl diff --git a/drop/build.sh b/drop/build.sh deleted file mode 100755 index a77e6d2..0000000 --- a/drop/build.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -nontapmsg() { - echo $* -} - -if [ $# -eq 0 ] ; then - SRC="*.c" -else - SRC="$*" -fi - -for i in $SRC -do - BIN=$(echo ${i} | sed "s/.c$/.bin/") - if [ ! -f ${BIN} ] || [ $(stat -c "%X" ${BIN}) -lt $(stat -c "%X" ${i}) ] - then - nontapmsg "compiling ${BIN}" - # gcc $BIN.c ./lib/*.o -o $BIN -I../src -I ./lib/ -L../ -L./lib/ -lipc -Wall -g -Wextra - gcc -Wall -g -Wextra "${i}" -o "${BIN}" -I../src -L../ ../src/ipc.h -lipc - touch "${BIN}" - fi -done diff --git a/drop/print-bytes.c b/drop/print-bytes.c deleted file mode 100644 index 4dcda06..0000000 --- a/drop/print-bytes.c +++ /dev/null @@ -1,27 +0,0 @@ -#include -#include -#include -#include -#include - -#include "../src/ipc.h" - -int main(int argc, char * argv[]) -{ - SECURE_BUFFER_DECLARATION (char, buffer, 4096); - uint32_t msize = 0; - char *message = "coucou"; - - if (argc == 2) { - message = argv[1]; - } - - msize = ipc_message_raw_serialize (buffer, 2, 42, message, strlen(message)); - write (1, buffer, msize); - fflush (stdout); - - // to wait for a response - sleep (1); - - return EXIT_SUCCESS; -} diff --git a/drop/to-pascal.pl b/drop/to-pascal.pl deleted file mode 100644 index 61a18da..0000000 --- a/drop/to-pascal.pl +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/perl -w -use v5.14; - -while(<>) { - chomp; - my @wl = split "_\+"; - my @wl2 = map { ucfirst lc } @wl; - say join "", @wl2; -}