Commit 41f976650438af55d250fea0cc60adb8d095d4ae

Thomas de Grivel 2021-02-20T20:46:26

wip remove autotools

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
diff --git a/AUTHORS b/AUTHORS
index e69de29..0dd8989 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -0,0 +1,2 @@
+Thomas de Grivel <thoxdg@gmail.com>
+Judy Najnudel <judy.najnudel@gmail.com>
diff --git a/COPYING b/COPYING
deleted file mode 100644
index f84fe9a..0000000
--- a/COPYING
+++ /dev/null
@@ -1,13 +0,0 @@
-Copyright 2020 Thomas de Grivel <thoxdg@gmail.com>
-
-Permission to use, copy, modify, and distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/ChangeLog b/ChangeLog
deleted file mode 100644
index e69de29..0000000
--- a/ChangeLog
+++ /dev/null
diff --git a/INSTALL b/INSTALL
deleted file mode 100644
index 8865734..0000000
--- a/INSTALL
+++ /dev/null
@@ -1,368 +0,0 @@
-Installation Instructions
-*************************
-
-   Copyright (C) 1994-1996, 1999-2002, 2004-2016 Free Software
-Foundation, Inc.
-
-   Copying and distribution of this file, with or without modification,
-are permitted in any medium without royalty provided the copyright
-notice and this notice are preserved.  This file is offered as-is,
-without warranty of any kind.
-
-Basic Installation
-==================
-
-   Briefly, the shell command './configure && make && make install'
-should configure, build, and install this package.  The following
-more-detailed instructions are generic; see the 'README' file for
-instructions specific to this package.  Some packages provide this
-'INSTALL' file but do not implement all of the features documented
-below.  The lack of an optional feature in a given package is not
-necessarily a bug.  More recommendations for GNU packages can be found
-in *note Makefile Conventions: (standards)Makefile Conventions.
-
-   The 'configure' shell script attempts to guess correct values for
-various system-dependent variables used during compilation.  It uses
-those values to create a 'Makefile' in each directory of the package.
-It may also create one or more '.h' files containing system-dependent
-definitions.  Finally, it creates a shell script 'config.status' that
-you can run in the future to recreate the current configuration, and a
-file 'config.log' containing compiler output (useful mainly for
-debugging 'configure').
-
-   It can also use an optional file (typically called 'config.cache' and
-enabled with '--cache-file=config.cache' or simply '-C') that saves the
-results of its tests to speed up reconfiguring.  Caching is disabled by
-default to prevent problems with accidental use of stale cache files.
-
-   If you need to do unusual things to compile the package, please try
-to figure out how 'configure' could check whether to do them, and mail
-diffs or instructions to the address given in the 'README' so they can
-be considered for the next release.  If you are using the cache, and at
-some point 'config.cache' contains results you don't want to keep, you
-may remove or edit it.
-
-   The file 'configure.ac' (or 'configure.in') is used to create
-'configure' by a program called 'autoconf'.  You need 'configure.ac' if
-you want to change it or regenerate 'configure' using a newer version of
-'autoconf'.
-
-   The simplest way to compile this package is:
-
-  1. 'cd' to the directory containing the package's source code and type
-     './configure' to configure the package for your system.
-
-     Running 'configure' might take a while.  While running, it prints
-     some messages telling which features it is checking for.
-
-  2. Type 'make' to compile the package.
-
-  3. Optionally, type 'make check' to run any self-tests that come with
-     the package, generally using the just-built uninstalled binaries.
-
-  4. Type 'make install' to install the programs and any data files and
-     documentation.  When installing into a prefix owned by root, it is
-     recommended that the package be configured and built as a regular
-     user, and only the 'make install' phase executed with root
-     privileges.
-
-  5. Optionally, type 'make installcheck' to repeat any self-tests, but
-     this time using the binaries in their final installed location.
-     This target does not install anything.  Running this target as a
-     regular user, particularly if the prior 'make install' required
-     root privileges, verifies that the installation completed
-     correctly.
-
-  6. You can remove the program binaries and object files from the
-     source code directory by typing 'make clean'.  To also remove the
-     files that 'configure' created (so you can compile the package for
-     a different kind of computer), type 'make distclean'.  There is
-     also a 'make maintainer-clean' target, but that is intended mainly
-     for the package's developers.  If you use it, you may have to get
-     all sorts of other programs in order to regenerate files that came
-     with the distribution.
-
-  7. Often, you can also type 'make uninstall' to remove the installed
-     files again.  In practice, not all packages have tested that
-     uninstallation works correctly, even though it is required by the
-     GNU Coding Standards.
-
-  8. Some packages, particularly those that use Automake, provide 'make
-     distcheck', which can by used by developers to test that all other
-     targets like 'make install' and 'make uninstall' work correctly.
-     This target is generally not run by end users.
-
-Compilers and Options
-=====================
-
-   Some systems require unusual options for compilation or linking that
-the 'configure' script does not know about.  Run './configure --help'
-for details on some of the pertinent environment variables.
-
-   You can give 'configure' initial values for configuration parameters
-by setting variables in the command line or in the environment.  Here is
-an example:
-
-     ./configure CC=c99 CFLAGS=-g LIBS=-lposix
-
-   *Note Defining Variables::, for more details.
-
-Compiling For Multiple Architectures
-====================================
-
-   You can compile the package for more than one kind of computer at the
-same time, by placing the object files for each architecture in their
-own directory.  To do this, you can use GNU 'make'.  'cd' to the
-directory where you want the object files and executables to go and run
-the 'configure' script.  'configure' automatically checks for the source
-code in the directory that 'configure' is in and in '..'.  This is known
-as a "VPATH" build.
-
-   With a non-GNU 'make', it is safer to compile the package for one
-architecture at a time in the source code directory.  After you have
-installed the package for one architecture, use 'make distclean' before
-reconfiguring for another architecture.
-
-   On MacOS X 10.5 and later systems, you can create libraries and
-executables that work on multiple system types--known as "fat" or
-"universal" binaries--by specifying multiple '-arch' options to the
-compiler but only a single '-arch' option to the preprocessor.  Like
-this:
-
-     ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
-                 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
-                 CPP="gcc -E" CXXCPP="g++ -E"
-
-   This is not guaranteed to produce working output in all cases, you
-may have to build one architecture at a time and combine the results
-using the 'lipo' tool if you have problems.
-
-Installation Names
-==================
-
-   By default, 'make install' installs the package's commands under
-'/usr/local/bin', include files under '/usr/local/include', etc.  You
-can specify an installation prefix other than '/usr/local' by giving
-'configure' the option '--prefix=PREFIX', where PREFIX must be an
-absolute file name.
-
-   You can specify separate installation prefixes for
-architecture-specific files and architecture-independent files.  If you
-pass the option '--exec-prefix=PREFIX' to 'configure', the package uses
-PREFIX as the prefix for installing programs and libraries.
-Documentation and other data files still use the regular prefix.
-
-   In addition, if you use an unusual directory layout you can give
-options like '--bindir=DIR' to specify different values for particular
-kinds of files.  Run 'configure --help' for a list of the directories
-you can set and what kinds of files go in them.  In general, the default
-for these options is expressed in terms of '${prefix}', so that
-specifying just '--prefix' will affect all of the other directory
-specifications that were not explicitly provided.
-
-   The most portable way to affect installation locations is to pass the
-correct locations to 'configure'; however, many packages provide one or
-both of the following shortcuts of passing variable assignments to the
-'make install' command line to change installation locations without
-having to reconfigure or recompile.
-
-   The first method involves providing an override variable for each
-affected directory.  For example, 'make install
-prefix=/alternate/directory' will choose an alternate location for all
-directory configuration variables that were expressed in terms of
-'${prefix}'.  Any directories that were specified during 'configure',
-but not in terms of '${prefix}', must each be overridden at install time
-for the entire installation to be relocated.  The approach of makefile
-variable overrides for each directory variable is required by the GNU
-Coding Standards, and ideally causes no recompilation.  However, some
-platforms have known limitations with the semantics of shared libraries
-that end up requiring recompilation when using this method, particularly
-noticeable in packages that use GNU Libtool.
-
-   The second method involves providing the 'DESTDIR' variable.  For
-example, 'make install DESTDIR=/alternate/directory' will prepend
-'/alternate/directory' before all installation names.  The approach of
-'DESTDIR' overrides is not required by the GNU Coding Standards, and
-does not work on platforms that have drive letters.  On the other hand,
-it does better at avoiding recompilation issues, and works well even
-when some directory options were not specified in terms of '${prefix}'
-at 'configure' time.
-
-Optional Features
-=================
-
-   If the package supports it, you can cause programs to be installed
-with an extra prefix or suffix on their names by giving 'configure' the
-option '--program-prefix=PREFIX' or '--program-suffix=SUFFIX'.
-
-   Some packages pay attention to '--enable-FEATURE' options to
-'configure', where FEATURE indicates an optional part of the package.
-They may also pay attention to '--with-PACKAGE' options, where PACKAGE
-is something like 'gnu-as' or 'x' (for the X Window System).  The
-'README' should mention any '--enable-' and '--with-' options that the
-package recognizes.
-
-   For packages that use the X Window System, 'configure' can usually
-find the X include and library files automatically, but if it doesn't,
-you can use the 'configure' options '--x-includes=DIR' and
-'--x-libraries=DIR' to specify their locations.
-
-   Some packages offer the ability to configure how verbose the
-execution of 'make' will be.  For these packages, running './configure
---enable-silent-rules' sets the default to minimal output, which can be
-overridden with 'make V=1'; while running './configure
---disable-silent-rules' sets the default to verbose, which can be
-overridden with 'make V=0'.
-
-Particular systems
-==================
-
-   On HP-UX, the default C compiler is not ANSI C compatible.  If GNU CC
-is not installed, it is recommended to use the following options in
-order to use an ANSI C compiler:
-
-     ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
-
-and if that doesn't work, install pre-built binaries of GCC for HP-UX.
-
-   HP-UX 'make' updates targets which have the same time stamps as their
-prerequisites, which makes it generally unusable when shipped generated
-files such as 'configure' are involved.  Use GNU 'make' instead.
-
-   On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
-parse its '<wchar.h>' header file.  The option '-nodtk' can be used as a
-workaround.  If GNU CC is not installed, it is therefore recommended to
-try
-
-     ./configure CC="cc"
-
-and if that doesn't work, try
-
-     ./configure CC="cc -nodtk"
-
-   On Solaris, don't put '/usr/ucb' early in your 'PATH'.  This
-directory contains several dysfunctional programs; working variants of
-these programs are available in '/usr/bin'.  So, if you need '/usr/ucb'
-in your 'PATH', put it _after_ '/usr/bin'.
-
-   On Haiku, software installed for all users goes in '/boot/common',
-not '/usr/local'.  It is recommended to use the following options:
-
-     ./configure --prefix=/boot/common
-
-Specifying the System Type
-==========================
-
-   There may be some features 'configure' cannot figure out
-automatically, but needs to determine by the type of machine the package
-will run on.  Usually, assuming the package is built to be run on the
-_same_ architectures, 'configure' can figure that out, but if it prints
-a message saying it cannot guess the machine type, give it the
-'--build=TYPE' option.  TYPE can either be a short name for the system
-type, such as 'sun4', or a canonical name which has the form:
-
-     CPU-COMPANY-SYSTEM
-
-where SYSTEM can have one of these forms:
-
-     OS
-     KERNEL-OS
-
-   See the file 'config.sub' for the possible values of each field.  If
-'config.sub' isn't included in this package, then this package doesn't
-need to know the machine type.
-
-   If you are _building_ compiler tools for cross-compiling, you should
-use the option '--target=TYPE' to select the type of system they will
-produce code for.
-
-   If you want to _use_ a cross compiler, that generates code for a
-platform different from the build platform, you should specify the
-"host" platform (i.e., that on which the generated programs will
-eventually be run) with '--host=TYPE'.
-
-Sharing Defaults
-================
-
-   If you want to set default values for 'configure' scripts to share,
-you can create a site shell script called 'config.site' that gives
-default values for variables like 'CC', 'cache_file', and 'prefix'.
-'configure' looks for 'PREFIX/share/config.site' if it exists, then
-'PREFIX/etc/config.site' if it exists.  Or, you can set the
-'CONFIG_SITE' environment variable to the location of the site script.
-A warning: not all 'configure' scripts look for a site script.
-
-Defining Variables
-==================
-
-   Variables not defined in a site shell script can be set in the
-environment passed to 'configure'.  However, some packages may run
-configure again during the build, and the customized values of these
-variables may be lost.  In order to avoid this problem, you should set
-them in the 'configure' command line, using 'VAR=value'.  For example:
-
-     ./configure CC=/usr/local2/bin/gcc
-
-causes the specified 'gcc' to be used as the C compiler (unless it is
-overridden in the site shell script).
-
-Unfortunately, this technique does not work for 'CONFIG_SHELL' due to an
-Autoconf limitation.  Until the limitation is lifted, you can use this
-workaround:
-
-     CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
-
-'configure' Invocation
-======================
-
-   'configure' recognizes the following options to control how it
-operates.
-
-'--help'
-'-h'
-     Print a summary of all of the options to 'configure', and exit.
-
-'--help=short'
-'--help=recursive'
-     Print a summary of the options unique to this package's
-     'configure', and exit.  The 'short' variant lists options used only
-     in the top level, while the 'recursive' variant lists options also
-     present in any nested packages.
-
-'--version'
-'-V'
-     Print the version of Autoconf used to generate the 'configure'
-     script, and exit.
-
-'--cache-file=FILE'
-     Enable the cache: use and save the results of the tests in FILE,
-     traditionally 'config.cache'.  FILE defaults to '/dev/null' to
-     disable caching.
-
-'--config-cache'
-'-C'
-     Alias for '--cache-file=config.cache'.
-
-'--quiet'
-'--silent'
-'-q'
-     Do not print messages saying which checks are being made.  To
-     suppress all normal output, redirect it to '/dev/null' (any error
-     messages will still be shown).
-
-'--srcdir=DIR'
-     Look for the package's source code in directory DIR.  Usually
-     'configure' can determine that directory automatically.
-
-'--prefix=DIR'
-     Use DIR as the installation prefix.  *note Installation Names:: for
-     more details, including other options available for fine-tuning the
-     installation locations.
-
-'--no-create'
-'-n'
-     Run the configure checks, but stop before creating any output
-     files.
-
-'configure' also accepts some other, not widely useful, options.  Run
-'configure --help' for more details.
diff --git a/Makefile.am b/Makefile.am
deleted file mode 100644
index f3ecbdc..0000000
--- a/Makefile.am
+++ /dev/null
@@ -1,3 +0,0 @@
-ACLOCAL_AMFLAGS = -I build-aux/m4
-
-SUBDIRS = librtbuf cli gtk3 lib
diff --git a/NEWS b/NEWS
deleted file mode 100644
index e69de29..0000000
--- a/NEWS
+++ /dev/null
diff --git a/README b/README
deleted file mode 100644
index e69de29..0000000
--- a/README
+++ /dev/null
diff --git a/README.md b/README.md
index f9801ff..c8cdf16 100644
--- a/README.md
+++ b/README.md
@@ -4,6 +4,14 @@ Real time signal processing in ANSI C.
 
 See https://rtbuf.kmx.io/
 
+## Installation
+
+```
+./configure
+make
+make install
+```
+
 ## Issues
 
 signal/bandpass2 does not work
diff --git a/autogen.sh b/autogen.sh
deleted file mode 100755
index 5f76331..0000000
--- a/autogen.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-set -e
-
-srcdir="$(dirname $0)"
-cd "$srcdir"
-
-which autoreconf >/dev/null || \
-  (echo "configuration failed, please install autoconf first" && exit 1)
-
-autoreconf --install --force --warnings=all
diff --git a/config.subr b/config.subr
new file mode 100644
index 0000000..577dde2
--- /dev/null
+++ b/config.subr
@@ -0,0 +1,48 @@
+#!/bin/sh
+
+c_lo_deps() {
+    echo >> ${CONFIG_MK}
+    $CC -M "$1" | sed -e 's/[.]o:/.lo:/' >> ${CONFIG_MK}
+}
+
+c2prog() {
+    echo "$@" | sed -e 's/[.]c$//' -e 's/[.]c / /g'
+}
+
+c2o() {
+    echo "$@" | sed -e 's/[.]c$/.o/' -e 's/[.]c /.o /g'
+}
+
+c2lo() {
+    echo "$@" | sed -e 's/[.]c$/.lo/' -e 's/[.]c /.lo /g'
+}
+
+c2la() {
+    echo "$@" | sed -e 's/[.]c$/.la/' -e 's/[.]c /.la /g'
+}
+
+CONFIG_MK=config.mk
+echo "# config.mk generated by configure" > ${CONFIG_MK}
+
+if test -z "$CC"; then
+    if test -n $(which cc); then
+        CC=cc
+    elif test -n $(which gcc); then
+        CC=gcc
+    fi
+fi
+echo "CC = $CC" >> ${CONFIG_MK}
+
+if test -x /usr/local/bin/libtool; then
+    LIBTOOL=/usr/local/bin/libtool
+else
+    LIBTOOL=libtool
+fi
+echo "LIBTOOL = $LIBTOOL" >> ${CONFIG_MK}
+
+if test -z "$INSTALL"; then
+    if test -x "$(which install)"; then
+        INSTALL=install
+    fi
+fi
+echo "INSTALL = $INSTALL" >> ${CONFIG_MK}
diff --git a/gtk3/rtbuf_gtk.gresource.xml b/gtk3/rtbuf_gtk.gresource.xml
deleted file mode 100644
index 41b0bcc..0000000
--- a/gtk3/rtbuf_gtk.gresource.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<gresources>
-  <gresource prefix="/rtbuf/">
-    <file>player_play.png</file>
-    <file>player_stop.png</file>
-    <file>rtbuf.png</file>
-    <file preprocess="xml-stripblanks">rtbuf_input_widget.ui</file>
-    <file preprocess="xml-stripblanks">rtbuf_modular.ui</file>
-    <file preprocess="xml-stripblanks">rtbuf_output_widget.ui</file>
-    <file preprocess="xml-stripblanks">rtbuf_widget.ui</file>
-  </gresource>
-  <gresource prefix="/org/gtk/libgtk/icons/24x24/status/">
-    <file>image-missing.png</file>
-  </gresource>
-</gresources>
diff --git a/gtk3/rtbuf_gtk3.gresource.xml b/gtk3/rtbuf_gtk3.gresource.xml
new file mode 100644
index 0000000..41b0bcc
--- /dev/null
+++ b/gtk3/rtbuf_gtk3.gresource.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<gresources>
+  <gresource prefix="/rtbuf/">
+    <file>player_play.png</file>
+    <file>player_stop.png</file>
+    <file>rtbuf.png</file>
+    <file preprocess="xml-stripblanks">rtbuf_input_widget.ui</file>
+    <file preprocess="xml-stripblanks">rtbuf_modular.ui</file>
+    <file preprocess="xml-stripblanks">rtbuf_output_widget.ui</file>
+    <file preprocess="xml-stripblanks">rtbuf_widget.ui</file>
+  </gresource>
+  <gresource prefix="/org/gtk/libgtk/icons/24x24/status/">
+    <file>image-missing.png</file>
+  </gresource>
+</gresources>
diff --git a/gtk3/rtbuf_gtk3_connection.h b/gtk3/rtbuf_gtk3_connection.h
new file mode 100644
index 0000000..19efd9d
--- /dev/null
+++ b/gtk3/rtbuf_gtk3_connection.h
@@ -0,0 +1,31 @@
+#ifndef RTBUF_GTK_CONNECTION_H
+#define RTBUF_GTK_CONNECTION_H
+
+#include "rtbuf_input_widget.h"
+#include "rtbuf_output_widget.h"
+
+typedef struct rtbuf_gtk_connection s_rtbuf_gtk_connection;
+
+struct rtbuf_gtk_connection {
+  RtbufOutputWidget *output_widget;
+  RtbufInputWidget *input_widget;
+  s_rtbuf_gtk_connection *next;
+};
+
+void rtbuf_gtk_connection_init ();
+s_rtbuf_gtk_connection * rtbuf_gtk_connection_new ();
+void rtbuf_gtk_connection_delete (s_rtbuf_gtk_connection *connection);
+
+void rtbuf_gtk_connection_push (s_rtbuf_gtk_connection **head,
+                                s_rtbuf_gtk_connection *item);
+int rtbuf_gtk_connection_remove_one (s_rtbuf_gtk_connection **head,
+                                     s_rtbuf_gtk_connection *item);
+s_rtbuf_gtk_connection * rtbuf_gtk_connection_find
+(s_rtbuf_gtk_connection *c,
+ RtbufOutputWidget *output_widget,
+ RtbufInputWidget *input_widget);
+
+void rtbuf_gtk_connection_remove_rtbuf (s_rtbuf_gtk_connection **head,
+                                        s_rtbuf *rtbuf);
+
+#endif
diff --git a/gtk3/rtbuf_gtk_connection.h b/gtk3/rtbuf_gtk_connection.h
deleted file mode 100644
index 19efd9d..0000000
--- a/gtk3/rtbuf_gtk_connection.h
+++ /dev/null
@@ -1,31 +0,0 @@
-#ifndef RTBUF_GTK_CONNECTION_H
-#define RTBUF_GTK_CONNECTION_H
-
-#include "rtbuf_input_widget.h"
-#include "rtbuf_output_widget.h"
-
-typedef struct rtbuf_gtk_connection s_rtbuf_gtk_connection;
-
-struct rtbuf_gtk_connection {
-  RtbufOutputWidget *output_widget;
-  RtbufInputWidget *input_widget;
-  s_rtbuf_gtk_connection *next;
-};
-
-void rtbuf_gtk_connection_init ();
-s_rtbuf_gtk_connection * rtbuf_gtk_connection_new ();
-void rtbuf_gtk_connection_delete (s_rtbuf_gtk_connection *connection);
-
-void rtbuf_gtk_connection_push (s_rtbuf_gtk_connection **head,
-                                s_rtbuf_gtk_connection *item);
-int rtbuf_gtk_connection_remove_one (s_rtbuf_gtk_connection **head,
-                                     s_rtbuf_gtk_connection *item);
-s_rtbuf_gtk_connection * rtbuf_gtk_connection_find
-(s_rtbuf_gtk_connection *c,
- RtbufOutputWidget *output_widget,
- RtbufInputWidget *input_widget);
-
-void rtbuf_gtk_connection_remove_rtbuf (s_rtbuf_gtk_connection **head,
-                                        s_rtbuf *rtbuf);
-
-#endif
diff --git a/librtbuf/Makefile.am b/librtbuf/Makefile.am
deleted file mode 100644
index 6b104f6..0000000
--- a/librtbuf/Makefile.am
+++ /dev/null
@@ -1,24 +0,0 @@
-
-lib_LTLIBRARIES = librtbuf.la
-librtbuf_la_CFLAGS = ${LIBRTBUF_CFLAGS}
-librtbuf_la_LDFLAGS = -no-undefined
-librtbuf_la_LIBADD = ${LIBRTBUF_LIBS}
-librtbuf_la_SOURCES = \
-	data.c \
-	symbol.c \
-	rtbuf_lib.c \
-	rtbuf_type.c \
-	rtbuf_proc.c \
-	rtbuf_var.c \
-	rtbuf.c
-
-rtbuf_includedir = $(includedir)/rtbuf
-rtbuf_include_HEADERS = \
-	include/rtbuf/data.h \
-	include/rtbuf/symbol.h \
-	include/rtbuf/defs.h \
-	include/rtbuf/lib.h \
-	include/rtbuf/proc.h \
-	include/rtbuf/type.h \
-	include/rtbuf/var.h \
-	include/rtbuf/rtbuf.h
diff --git a/librtbuf/configure b/librtbuf/configure
new file mode 100755
index 0000000..82be2b8
--- /dev/null
+++ b/librtbuf/configure
@@ -0,0 +1,42 @@
+#!/bin/sh
+set -e
+
+. ../config.subr
+
+LIB=librtbuf.la
+
+SOURCES="$(ls *.c | tr '\n' ' ')"
+echo "SOURCES = $SOURCES" >> ${CONFIG_MK}
+
+OBJECTS="$(c2lo "$SOURCES")"
+echo "OBJECTS = $OBJECTS" >> ${CONFIG_MK}
+
+if test -d /usr/local/include; then
+    CPPFLAGS="-I/usr/local/include"
+fi
+CPPFLAGS="$CPPFLAGS -I./include"
+echo "CPPFLAGS = $CPPFLAGS" >> ${CONFIG_MK}
+
+if [ x"$DEBUG" = x"yes" ]; then
+    CFLAGS="-DDEBUG -O0 -ggdb"
+else
+    CFLAGS="-DNDEBUG -O3"
+fi
+CFLAGS="$CFLAGS -W -Wall -Werror -std=c89 -pedantic"
+echo "CFLAGS = $CFLAGS" >> ${CONFIG_MK}
+
+LDFLAGS=""
+echo "LDFLAGS = $LDFLAGS" >> ${CONFIG_MK}
+
+LIBDIR=/usr/local/lib
+echo "LIBDIR = $LIBDIR" >> ${CONFIG_MK}
+
+for SRC in $SOURCES; do
+    SRC_LO="$(c2lo "$SRC")"
+    c_lo_deps $SRC
+    echo "\t${LIBTOOL} --tag=CC --mode=compile \${CC} \${CPPFLAGS} \${CFLAGS} -c $SRC -o $SRC_LO" >> ${CONFIG_MK}
+done
+
+echo >> ${CONFIG_MK}
+echo "$LIB: $OBJECTS" >> ${CONFIG_MK}
+echo "\t${LIBTOOL} --tag=CC --mode=link \${CC} \${LDFLAGS} $OBJECTS -o $LIB -rpath ${LIBDIR}" >> ${CONFIG_MK}
diff --git a/librtbuf/data.c b/librtbuf/data.c
index 90373dc..7c62dd0 100644
--- a/librtbuf/data.c
+++ b/librtbuf/data.c
@@ -1,5 +1,5 @@
 /*
- * Copyright 2018 Thomas de Grivel <thoxdg@gmail.com> +33614550127
+ * Copyright 2018-2021 Thomas de Grivel <thoxdg@gmail.com>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -17,7 +17,7 @@
 #include <assert.h>
 #include <stdlib.h>
 #include <strings.h>
-#include <rtbuf/data.h>
+#include "data.h"
 
 s_data_type g_data_alloc_type = {
   sizeof(s_data_alloc) * 8,
@@ -67,7 +67,7 @@ void * data_new_at (s_data_alloc *da, unsigned int i)
 {
   unsigned int octets = (da->t->bits + 7) / 8;
   unsigned int offset = i * octets;
-  void *m = da->mem + offset;
+  void *m = (char*) da->mem + offset;
   bzero(m, octets);
   if (da->init)
     da->init(m);
@@ -118,7 +118,7 @@ void data_delete (s_data_alloc *da, void *data)
   if (da->clean)
     da->clean(data);
   bzero(data, octets);
-  i = (data - da->mem) / octets;
+  i = ((char*) data - (char*) da->mem) / octets;
   da->free[da->free_n++] = i;
 }
 
diff --git a/librtbuf/data.h b/librtbuf/data.h
new file mode 100644
index 0000000..e756285
--- /dev/null
+++ b/librtbuf/data.h
@@ -0,0 +1,100 @@
+/*
+ * Copyright 2018-2021 Thomas de Grivel <thoxdg@gmail.com>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+#ifndef DATA_H
+#define DATA_H
+
+typedef enum {
+  DATA_TYPE_BITS,
+  DATA_TYPE_VECTOR,
+  DATA_TYPE_INTEGER,
+  DATA_TYPE_FLOAT,
+  DATA_TYPE_STRUCT
+} e_data_type;
+
+#define DATA_TYPE_SIGNED     1
+#define DATA_TYPE_BIG_ENDIAN 2
+
+typedef struct data_type {
+  unsigned int bits;
+  unsigned int type;
+} s_data_type;
+
+typedef struct data_type_vector {
+  s_data_type  t;
+  s_data_type *element_type;
+  unsigned int nmemb;
+} s_data_type_vector;
+
+typedef struct data_type_integer {
+  s_data_type  t;
+  unsigned int flags;
+} s_data_type_integer;
+
+typedef struct data_type_float {
+  s_data_type t;
+} s_data_type_float;
+
+typedef struct data_type_struct {
+  s_data_type  t;
+  s_data_type *first;
+  struct data_type_struct *rest;
+} s_data_type_struct;
+
+typedef union data_type_ {
+  s_data_type         t;
+  s_data_type_vector  t_vector;
+  s_data_type_integer t_integer;
+  s_data_type_float   t_float;
+  s_data_type_struct  t_struct;
+} u_data_type;
+
+#define DATA_TYPE_MAX 1024
+
+u_data_type * data_type_new (unsigned int bits, unsigned int type);
+void          data_type_delete (s_data_type *t);
+
+typedef void f_data_init (void *data);
+typedef void f_data_clean (void *data);
+
+typedef struct data_alloc {
+  s_data_type  *t;
+  unsigned int  max;
+  void         *mem;
+  unsigned int  n;
+  unsigned int *free;
+  unsigned int  free_n;
+  f_data_init  *init;
+  f_data_clean *clean;
+} s_data_alloc;
+
+#define DATA_ALLOC_MAX 1024
+
+void * data_new (s_data_alloc *da);
+int    data_new_i (s_data_alloc *da);
+void   data_delete (s_data_alloc *da, void *data);
+
+void           data_alloc_init (s_data_alloc *da, s_data_type *t,
+                                unsigned int max, f_data_init *init,
+                                f_data_clean *clean);
+void           data_alloc_clean (s_data_alloc *da);
+s_data_alloc * data_alloc_new (s_data_type *t,
+                               unsigned int max, f_data_init *init,
+                               f_data_clean *clean);
+void           data_alloc_delete (s_data_alloc *da);
+
+int libdata_init ();
+
+#endif
diff --git a/librtbuf/defs.h b/librtbuf/defs.h
new file mode 100644
index 0000000..0830b88
--- /dev/null
+++ b/librtbuf/defs.h
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2018-2021 Thomas de Grivel <thoxdg@gmail.com>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+#ifndef RTBUF_DEFS_H
+#define RTBUF_DEFS_H
+
+typedef struct rtbuf              s_rtbuf;
+typedef struct rtbuf_binding      s_rtbuf_binding;
+typedef struct rtbuf_proc         s_rtbuf_proc;
+typedef struct rtbuf_proc_in      s_rtbuf_proc_in;
+typedef struct rtbuf_proc_out     s_rtbuf_proc_out;
+typedef struct rtbuf_lib          s_rtbuf_lib;
+typedef struct rtbuf_lib_proc     s_rtbuf_lib_proc;
+typedef struct rtbuf_lib_proc_in  s_rtbuf_lib_proc_in;
+typedef struct rtbuf_lib_proc_out s_rtbuf_lib_proc_out;
+typedef struct rtbuf_type         s_rtbuf_type;
+typedef struct rtbuf_var          s_rtbuf_var;
+typedef union rtbuf_var_data      u_rtbuf_var_data;
+
+typedef enum rtbuf_var_type {
+  RTBUF_VAR_NULL  = 0,
+  RTBUF_VAR_RTBUF = 1
+} e_rtbuf_var_type;
+
+typedef int f_rtbuf_proc (s_rtbuf *rtbuf);
+typedef int f_rtbuf_lib_init (s_rtbuf_lib *lib);
+
+#endif
diff --git a/librtbuf/include/rtbuf/data.h b/librtbuf/include/rtbuf/data.h
deleted file mode 100644
index 8e61f96..0000000
--- a/librtbuf/include/rtbuf/data.h
+++ /dev/null
@@ -1,100 +0,0 @@
-/*
- * Copyright 2018 Thomas de Grivel <thoxdg@gmail.com> +33614550127
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-#ifndef DATA_H
-#define DATA_H
-
-typedef enum {
-  DATA_TYPE_BITS,
-  DATA_TYPE_VECTOR,
-  DATA_TYPE_INTEGER,
-  DATA_TYPE_FLOAT,
-  DATA_TYPE_STRUCT
-} e_data_type;
-
-#define DATA_TYPE_SIGNED     1
-#define DATA_TYPE_BIG_ENDIAN 2
-
-typedef struct data_type {
-  unsigned int bits;
-  unsigned int type;
-} s_data_type;
-
-typedef struct data_type_vector {
-  s_data_type  t;
-  s_data_type *element_type;
-  unsigned int nmemb;
-} s_data_type_vector;
-
-typedef struct data_type_integer {
-  s_data_type  t;
-  unsigned int flags;
-} s_data_type_integer;
-
-typedef struct data_type_float {
-  s_data_type t;
-} s_data_type_float;
-
-typedef struct data_type_struct {
-  s_data_type  t;
-  s_data_type *first;
-  struct data_type_struct *rest;
-} s_data_type_struct;
-
-typedef union data_type_ {
-  s_data_type         t;
-  s_data_type_vector  t_vector;
-  s_data_type_integer t_integer;
-  s_data_type_float   t_float;
-  s_data_type_struct  t_struct;
-} u_data_type;
-
-#define DATA_TYPE_MAX 1024
-
-u_data_type * data_type_new (unsigned int bits, unsigned int type);
-void          data_type_delete (s_data_type *t);
-
-typedef void f_data_init (void *data);
-typedef void f_data_clean (void *data);
-
-typedef struct data_alloc {
-  s_data_type  *t;
-  unsigned int  max;
-  void         *mem;
-  unsigned int  n;
-  unsigned int *free;
-  unsigned int  free_n;
-  f_data_init  *init;
-  f_data_clean *clean;
-} s_data_alloc;
-
-#define DATA_ALLOC_MAX 1024
-
-void * data_new (s_data_alloc *da);
-int    data_new_i (s_data_alloc *da);
-void   data_delete (s_data_alloc *da, void *data);
-
-void           data_alloc_init (s_data_alloc *da, s_data_type *t,
-                                unsigned int max, f_data_init *init,
-                                f_data_clean *clean);
-void           data_alloc_clean (s_data_alloc *da);
-s_data_alloc * data_alloc_new (s_data_type *t,
-                               unsigned int max, f_data_init *init,
-                               f_data_clean *clean);
-void           data_alloc_delete (s_data_alloc *da);
-
-int libdata_init ();
-
-#endif
diff --git a/librtbuf/include/rtbuf/defs.h b/librtbuf/include/rtbuf/defs.h
deleted file mode 100644
index 4d88bc7..0000000
--- a/librtbuf/include/rtbuf/defs.h
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright 2018 Thomas de Grivel <thoxdg@gmail.com> +33614550127
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-#ifndef RTBUF_DEFS_H
-#define RTBUF_DEFS_H
-
-typedef struct rtbuf              s_rtbuf;
-typedef struct rtbuf_binding      s_rtbuf_binding;
-typedef struct rtbuf_proc         s_rtbuf_proc;
-typedef struct rtbuf_proc_in      s_rtbuf_proc_in;
-typedef struct rtbuf_proc_out     s_rtbuf_proc_out;
-typedef struct rtbuf_lib          s_rtbuf_lib;
-typedef struct rtbuf_lib_proc     s_rtbuf_lib_proc;
-typedef struct rtbuf_lib_proc_in  s_rtbuf_lib_proc_in;
-typedef struct rtbuf_lib_proc_out s_rtbuf_lib_proc_out;
-typedef struct rtbuf_type         s_rtbuf_type;
-typedef struct rtbuf_var          s_rtbuf_var;
-typedef union rtbuf_var_data      u_rtbuf_var_data;
-
-typedef enum rtbuf_var_type {
-  RTBUF_VAR_NULL  = 0,
-  RTBUF_VAR_RTBUF = 1
-} e_rtbuf_var_type;
-
-typedef int f_rtbuf_proc (s_rtbuf *rtbuf);
-typedef int f_rtbuf_lib_init (s_rtbuf_lib *lib);
-
-#endif
diff --git a/librtbuf/include/rtbuf/lib.h b/librtbuf/include/rtbuf/lib.h
deleted file mode 100644
index 5b9f4f8..0000000
--- a/librtbuf/include/rtbuf/lib.h
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * Copyright 2018,2020 Thomas de Grivel <thoxdg@gmail.com>
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-#ifndef RTBUF_LIB_H
-#define RTBUF_LIB_H
-
-#include <rtbuf/defs.h>
-
-#define RTBUF_LIB_MAX 1000
-#define RTBUF_LIB_VER 0x00020001
-
-struct rtbuf_lib_proc_in {
-  const char *name;
-  const char *type;
-  double def;
-  double min;
-  double max;
-  double log_base;
-};
-
-struct rtbuf_lib_proc_out {
-  const char *name;
-  const char *type;
-};
-
-struct rtbuf_lib_proc {
-  const char *name;
-  f_rtbuf_proc *f;
-  f_rtbuf_proc *start;
-  f_rtbuf_proc *stop;
-  s_rtbuf_lib_proc_in *in;    /* inputs, end with NULL */
-  s_rtbuf_lib_proc_out *out;  /* outputs, end with NULL */
-};
-
-struct rtbuf_lib {
-  const char *name;
-  s_rtbuf_proc *proc;
-  void *lib;
-  const char *path;
-};
-
-extern char *g_rtbuf_lib_path[];
-
-extern s_data_alloc g_rtbuf_lib_alloc;
-extern s_rtbuf_lib *g_rtbuf_lib;
-
-void          rtbuf_lib_delete (s_rtbuf_lib *rl);
-int           rtbuf_lib_find (const char *str);
-void          rtbuf_lib_init_ ();
-s_rtbuf_lib * rtbuf_lib_load (const char *path);
-s_rtbuf_lib * rtbuf_lib_new ();
-void          rtbuf_lib_print (const s_rtbuf_lib *lib);
-void          rtbuf_lib_print_long (unsigned int i);
-
-void rtbuf_lib_proc_var_init_proc (s_rtbuf_proc *proc,
-                                   s_rtbuf_lib_proc_in *in);
-void rtbuf_lib_proc_out_init_proc (s_rtbuf_proc *proc,
-                                   s_rtbuf_lib_proc_out *out);
-void rtbuf_lib_proc_init_proc (s_rtbuf_proc *proc, s_rtbuf_lib_proc *x);
-
-#endif
diff --git a/librtbuf/include/rtbuf/proc.h b/librtbuf/include/rtbuf/proc.h
deleted file mode 100644
index 32441dc..0000000
--- a/librtbuf/include/rtbuf/proc.h
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * Copyright 2018 Thomas de Grivel <thoxdg@gmail.com> +33614550127
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-#ifndef RTBUF_PROC_H
-#define RTBUF_PROC_H
-
-#include <rtbuf/data.h>
-#include <rtbuf/defs.h>
-#include <rtbuf/symbol.h>
-
-struct rtbuf_proc_in {
-  symbol name;
-  const char *name_type;
-  s_rtbuf_type *type;
-  double def;
-  double min;
-  double max;
-  double log_base;
-  unsigned int offset;
-};
-
-struct rtbuf_proc_out {
-  symbol name;
-  const char *name_type;
-  s_rtbuf_type *type;
-  unsigned int offset;
-};
-
-#define RTBUF_PROC_IN_MAX 1024
-#define RTBUF_PROC_OUT_MAX 1024
-
-struct rtbuf_proc {
-  symbol           name;
-  f_rtbuf_proc    *f;
-  f_rtbuf_proc    *start;
-  f_rtbuf_proc    *stop;
-  s_rtbuf_proc_in  in[RTBUF_PROC_IN_MAX];    /* inputs */
-  unsigned int     in_n;                     /* number of inputs */
-  unsigned int     in_bytes;   /* size of input data in bytes */
-  s_rtbuf_proc_out out[RTBUF_PROC_OUT_MAX];  /* outputs */
-  unsigned int     out_n;                    /* number of outputs */
-  unsigned int     out_bytes;  /* size of output data in bytes */
-  s_rtbuf_lib     *lib;        /* the library this procedure comes from */
-  unsigned int     bytes;      /* size of buffer data in bytes */
-  s_data_type      type;
-  s_data_alloc     alloc;
-};
-
-#define RTBUF_PROC_MAX 1024
-extern s_data_alloc  g_rtbuf_proc_alloc;
-extern s_rtbuf_proc *g_rtbuf_proc;
-
-void           rtbuf_proc_init ();
-int            rtbuf_proc_p (s_rtbuf_proc *proc);
-s_rtbuf_proc * rtbuf_proc_new ();
-void           rtbuf_proc_delete (s_rtbuf_proc *proc);
-s_rtbuf_proc * rtbuf_proc_find (const char *x);
-int            rtbuf_proc_out_find (s_rtbuf_proc *proc,
-                                    const char *name);
-void           rtbuf_proc_print (s_rtbuf_proc *proc);
-
-#endif
diff --git a/librtbuf/include/rtbuf/queue.h b/librtbuf/include/rtbuf/queue.h
deleted file mode 100644
index f886dd3..0000000
--- a/librtbuf/include/rtbuf/queue.h
+++ /dev/null
@@ -1,60 +0,0 @@
-#ifndef QUEUE_H
-#define QUEUE_H
-
-/* static queue */
-
-#define QUEUE_TYPE(type, size)  \
-  type ## _queue_ ## size
-
-#define QUEUE(type, size)          \
-  struct QUEUE_TYPE(type, size) {  \
-    unsigned int length;           \
-    unsigned int read_index;       \
-    unsigned int write_index;      \
-    type item[size];               \
-  }
-
-#define S_QUEUE_TYPE(type, size)  \
-  s_ ## QUEUE_TYPE(type, size)
-
-#define QUEUE_METHOD(type, size, method)  \
-  QUEUE_TYPE(type, size) ## _ ## method
-
-#define DEFINE_QUEUE(type, size)                            \
-  typedef QUEUE(type, size) S_QUEUE_TYPE(type, size);       \
-  static void QUEUE_METHOD(type, size, init)                \
-    (S_QUEUE_TYPE(type, size) *q)                           \
-  {                                                         \
-    bzero(q, sizeof(q));                                    \
-  }                                                         \
-  static void QUEUE_METHOD(type, size, free)                \
-    (S_QUEUE_TYPE(type, size) *q)                           \
-  {                                                         \
-    bzero(q, sizeof(q));                                    \
-  }                                                         \
-  static int QUEUE_METHOD(type, size, enqueue)              \
-    (S_QUEUE_TYPE(type, size) *q, type item)                \
-  {                                                         \
-    if (q->length < size) {                                 \
-      unsigned int write_index = q->write_index;            \
-      q->write_index = (q->write_index + 1) % size;         \
-      q->item[write_index] = item;                          \
-      q->length++;                                          \
-      return 0;                                             \
-    }                                                       \
-    return -1;                                              \
-  }                                                         \
-  static int QUEUE_METHOD(type, size, dequeue)              \
-    (S_QUEUE_TYPE(type, size) *q, type *ptr)                \
-  {                                                         \
-    if (q->length > 0) {                                    \
-      unsigned int read_index = q->read_index;              \
-      q->read_index = (read_index + 1) % size;              \
-      *ptr = q->item[read_index];                           \
-      q->length--;                                          \
-      return 0;                                             \
-    }                                                       \
-    return -1;                                              \
-  }
-
-#endif
diff --git a/librtbuf/include/rtbuf/rtbuf.h b/librtbuf/include/rtbuf/rtbuf.h
deleted file mode 100644
index bbabab5..0000000
--- a/librtbuf/include/rtbuf/rtbuf.h
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * Copyright 2018-2020 Thomas de Grivel <thoxdg@gmail.com>
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-#ifndef RTBUF_H
-#define RTBUF_H
-
-#include <rtbuf/data.h>
-#include <rtbuf/defs.h>
-#include <rtbuf/type.h>
-#include <rtbuf/proc.h>
-
-#define RTBUF_SORT     0x0001
-#define RTBUF_DELETE   0x0002
-#define RTBUF_NEW      0x0004
-#define RTBUF_READY    0x0008
-
-struct rtbuf_binding
-{
-  int rtb;
-  unsigned int out;
-};
-
-struct rtbuf
-{
-  void           *data;
-  unsigned int    flags;
-  s_rtbuf_proc   *proc;
-  unsigned int    refc;
-  s_rtbuf_binding in[RTBUF_PROC_IN_MAX];
-  unsigned int    in_n;
-  void           *user_ptr;
-};
-
-#define RTBUF_MAX         10000
-#define RTBUF_INSTANCE_MAX  100
-
-extern s_data_alloc g_rtbuf_alloc;
-extern s_rtbuf     *g_rtbuf;
-extern int          g_rtbuf_run;
-
-typedef void (*f_rtbuf_new_cb) (s_rtbuf *rtb);
-typedef void (*f_rtbuf_delete_cb) (s_rtbuf *rtb);
-typedef void (*f_rtbuf_bind_cb) (s_rtbuf *src, unsigned int out,
-                                 s_rtbuf *dest, unsigned int in);
-typedef void (*f_rtbuf_unbind_cb) (s_rtbuf *src, unsigned int out,
-                                   s_rtbuf *dest, unsigned int in);
-
-extern f_rtbuf_new_cb    g_rtbuf_new_cb;
-extern f_rtbuf_delete_cb g_rtbuf_delete_cb;
-extern f_rtbuf_bind_cb   g_rtbuf_bind_cb;
-extern f_rtbuf_unbind_cb g_rtbuf_unbind_cb;
-
-int   librtbuf_init ();
-
-int   rtbuf_err (const char *msg);
-int   rtbuf_new (s_rtbuf_proc *rp);
-int   rtbuf_new_ptr (s_rtbuf_proc *rp, void *user_ptr);
-void  rtbuf_in_unbind (s_rtbuf *rtb, unsigned int in);
-void  rtbuf_out_unbind (s_rtbuf *rtb, unsigned int out);
-void  rtbuf_unbind_all (s_rtbuf *rtb);
-void  rtbuf_delete (s_rtbuf *rtb);
-int   rtbuf_clone (s_rtbuf *rtb);
-int   rtbuf_find (symbol sym);
-int   rtbuf_in_find (s_rtbuf *rtb, const char *x);
-void  rtbuf_bind (unsigned int src, unsigned int out,
-                  s_rtbuf *dest, unsigned int in);
-int   rtbuf_out_find (s_rtbuf *rtb, symbol sym);
-int   rtbuf_data_set (s_rtbuf *rtb, symbol name, void *value,
-                      unsigned int size);
-void  rtbuf_sort ();
-int   rtbuf_start ();
-int   rtbuf_run ();
-void  rtbuf_stop ();
-void  rtbuf_print (unsigned int i);
-void  rtbuf_print_long (unsigned int i);
-void  rtbuf_print_sorted ();
-
-int  rtbuf_out_int (s_rtbuf *rtb, unsigned int out, int default_value);
-
-double * rtbuf_in_unbound_value (s_rtbuf *rtb, unsigned int in);
-
-double min (double a, double b);
-double max (double a, double b);
-double clamp (double inf, double x, double sup);
-
-#endif /* RTBUF_H */
diff --git a/librtbuf/include/rtbuf/symbol.h b/librtbuf/include/rtbuf/symbol.h
deleted file mode 100644
index c071589..0000000
--- a/librtbuf/include/rtbuf/symbol.h
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2018 Thomas de Grivel <thoxdg@gmail.com> +33614550127
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-#ifndef SYMBOL_H
-#define SYMBOL_H
-
-#include <sys/types.h>
-
-typedef const char *symbol;
-
-#define STRING_MAX 65536
-extern char         g_str_start[STRING_MAX];
-extern char        *g_str;
-extern unsigned int g_str_n;
-extern unsigned int g_str_last;
-
-char * g_str_append (const char *str, size_t len);
-void   g_str_reset (char *head);
-
-#define SYMBOL_MAX 32768
-extern symbol       g_symbols[SYMBOL_MAX];
-extern unsigned int g_symbols_n;
-
-void   symbols_init ();
-symbol symbol_new (symbol name);
-void   symbol_delete (symbol sym);
-symbol symbol_find (symbol name);
-symbol symbol_intern (const char *name);
-
-#endif
diff --git a/librtbuf/include/rtbuf/type.h b/librtbuf/include/rtbuf/type.h
deleted file mode 100644
index 86b848d..0000000
--- a/librtbuf/include/rtbuf/type.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright 2018 Thomas de Grivel <thoxdg@gmail.com> +33614550127
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-#ifndef RTBUF_TYPE_H
-#define RTBUF_TYPE_H
-
-#include <rtbuf/data.h>
-#include <rtbuf/defs.h>
-#include <rtbuf/symbol.h>
-
-struct rtbuf_type {
-  symbol       name;
-  s_data_type  t;
-};
-
-#define RTBUF_TYPE_MAX 1024
-
-void           rtbuf_type_init ();
-s_rtbuf_type * rtbuf_type_new (const char *name,
-                               unsigned int size);
-void           rtbuf_type_delete (s_rtbuf_type *rt);
-s_rtbuf_type * rtbuf_type_find (symbol name);
-s_rtbuf_type * rtbuf_type_define (const char *name,
-                                  unsigned int size);
-s_rtbuf_type * rtbuf_type (const char *name);
-s_rtbuf_type * rtbuf_type_array (const char *element_type,
-                                 unsigned int size);
-
-#define RTBUF_TYPE_CHAR_ARRAY(size) ("char[" #size "]")
-#define RTBUF_TYPE_SHORT_ARRAY(size) ("short[" #size "]")
-#define RTBUF_TYPE_DOUBLE_ARRAY(size) ("double[" #size "]")
-
-#endif
diff --git a/librtbuf/include/rtbuf/var.h b/librtbuf/include/rtbuf/var.h
deleted file mode 100644
index 0d37215..0000000
--- a/librtbuf/include/rtbuf/var.h
+++ /dev/null
@@ -1,19 +0,0 @@
-#ifndef RTBUF_VAR_H
-#define RTBUF_VAR_H
-
-#include <rtbuf/defs.h>
-
-#define RTBUF_VAR_MAX 1000
-
-struct rtbuf_var {
-  e_rtbuf_var_type type;
-  const char *name;
-  unsigned index;
-};
-
-void          rtbuf_var_init (void);
-s_rtbuf_var * rtbuf_var_find (const char *name);
-s_rtbuf_var * rtbuf_var_rtbuf_set (const char *name, unsigned i);
-void          rtbuf_var_print (const s_rtbuf_var *v);
-
-#endif
diff --git a/librtbuf/lib.h b/librtbuf/lib.h
new file mode 100644
index 0000000..2d32ea8
--- /dev/null
+++ b/librtbuf/lib.h
@@ -0,0 +1,73 @@
+/*
+ * Copyright 2018-2021 Thomas de Grivel <thoxdg@gmail.com>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+#ifndef RTBUF_LIB_H
+#define RTBUF_LIB_H
+
+#include "defs.h"
+
+#define RTBUF_LIB_MAX 1000
+#define RTBUF_LIB_VER 0x00020001
+
+struct rtbuf_lib_proc_in {
+  const char *name;
+  const char *type;
+  double def;
+  double min;
+  double max;
+  double log_base;
+};
+
+struct rtbuf_lib_proc_out {
+  const char *name;
+  const char *type;
+};
+
+struct rtbuf_lib_proc {
+  const char *name;
+  f_rtbuf_proc *f;
+  f_rtbuf_proc *start;
+  f_rtbuf_proc *stop;
+  s_rtbuf_lib_proc_in *in;    /* inputs, end with NULL */
+  s_rtbuf_lib_proc_out *out;  /* outputs, end with NULL */
+};
+
+struct rtbuf_lib {
+  const char *name;
+  s_rtbuf_proc *proc;
+  void *lib;
+  const char *path;
+};
+
+extern char *g_rtbuf_lib_path[];
+
+extern s_data_alloc g_rtbuf_lib_alloc;
+extern s_rtbuf_lib *g_rtbuf_lib;
+
+void          rtbuf_lib_delete (s_rtbuf_lib *rl);
+int           rtbuf_lib_find (const char *str);
+void          rtbuf_lib_init_ ();
+s_rtbuf_lib * rtbuf_lib_load (const char *path);
+s_rtbuf_lib * rtbuf_lib_new ();
+void          rtbuf_lib_print (const s_rtbuf_lib *lib);
+void          rtbuf_lib_print_long (unsigned int i);
+
+void rtbuf_lib_proc_var_init_proc (s_rtbuf_proc *proc,
+                                   s_rtbuf_lib_proc_in *in);
+void rtbuf_lib_proc_out_init_proc (s_rtbuf_proc *proc,
+                                   s_rtbuf_lib_proc_out *out);
+void rtbuf_lib_proc_init_proc (s_rtbuf_proc *proc, s_rtbuf_lib_proc *x);
+
+#endif
diff --git a/librtbuf/proc.h b/librtbuf/proc.h
new file mode 100644
index 0000000..1650b90
--- /dev/null
+++ b/librtbuf/proc.h
@@ -0,0 +1,74 @@
+/*
+ * Copyright 2018-2021 Thomas de Grivel <thoxdg@gmail.com>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+#ifndef RTBUF_PROC_H
+#define RTBUF_PROC_H
+
+#include "data.h"
+#include "defs.h"
+#include "symbol.h"
+
+struct rtbuf_proc_in {
+  symbol name;
+  const char *name_type;
+  s_rtbuf_type *type;
+  double def;
+  double min;
+  double max;
+  double log_base;
+  unsigned int offset;
+};
+
+struct rtbuf_proc_out {
+  symbol name;
+  const char *name_type;
+  s_rtbuf_type *type;
+  unsigned int offset;
+};
+
+#define RTBUF_PROC_IN_MAX 1024
+#define RTBUF_PROC_OUT_MAX 1024
+
+struct rtbuf_proc {
+  symbol           name;
+  f_rtbuf_proc    *f;
+  f_rtbuf_proc    *start;
+  f_rtbuf_proc    *stop;
+  s_rtbuf_proc_in  in[RTBUF_PROC_IN_MAX];    /* inputs */
+  unsigned int     in_n;                     /* number of inputs */
+  unsigned int     in_bytes;   /* size of input data in bytes */
+  s_rtbuf_proc_out out[RTBUF_PROC_OUT_MAX];  /* outputs */
+  unsigned int     out_n;                    /* number of outputs */
+  unsigned int     out_bytes;  /* size of output data in bytes */
+  s_rtbuf_lib     *lib;        /* the library this procedure comes from */
+  unsigned int     bytes;      /* size of buffer data in bytes */
+  s_data_type      type;
+  s_data_alloc     alloc;
+};
+
+#define RTBUF_PROC_MAX 1024
+extern s_data_alloc  g_rtbuf_proc_alloc;
+extern s_rtbuf_proc *g_rtbuf_proc;
+
+void           rtbuf_proc_init ();
+int            rtbuf_proc_p (s_rtbuf_proc *proc);
+s_rtbuf_proc * rtbuf_proc_new ();
+void           rtbuf_proc_delete (s_rtbuf_proc *proc);
+s_rtbuf_proc * rtbuf_proc_find (const char *x);
+int            rtbuf_proc_out_find (s_rtbuf_proc *proc,
+                                    const char *name);
+void           rtbuf_proc_print (s_rtbuf_proc *proc);
+
+#endif
diff --git a/librtbuf/queue.h b/librtbuf/queue.h
new file mode 100644
index 0000000..fd28803
--- /dev/null
+++ b/librtbuf/queue.h
@@ -0,0 +1,75 @@
+/*
+ * Copyright 2018-2021 Thomas de Grivel <thoxdg@gmail.com>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+#ifndef QUEUE_H
+#define QUEUE_H
+
+/* static queue */
+
+#define QUEUE_TYPE(type, size)  \
+  type ## _queue_ ## size
+
+#define QUEUE(type, size)          \
+  struct QUEUE_TYPE(type, size) {  \
+    unsigned int length;           \
+    unsigned int read_index;       \
+    unsigned int write_index;      \
+    type item[size];               \
+  }
+
+#define S_QUEUE_TYPE(type, size)  \
+  s_ ## QUEUE_TYPE(type, size)
+
+#define QUEUE_METHOD(type, size, method)  \
+  QUEUE_TYPE(type, size) ## _ ## method
+
+#define DEFINE_QUEUE(type, size)                            \
+  typedef QUEUE(type, size) S_QUEUE_TYPE(type, size);       \
+  static void QUEUE_METHOD(type, size, init)                \
+    (S_QUEUE_TYPE(type, size) *q)                           \
+  {                                                         \
+    bzero(q, sizeof(q));                                    \
+  }                                                         \
+  static void QUEUE_METHOD(type, size, free)                \
+    (S_QUEUE_TYPE(type, size) *q)                           \
+  {                                                         \
+    bzero(q, sizeof(q));                                    \
+  }                                                         \
+  static int QUEUE_METHOD(type, size, enqueue)              \
+    (S_QUEUE_TYPE(type, size) *q, type item)                \
+  {                                                         \
+    if (q->length < size) {                                 \
+      unsigned int write_index = q->write_index;            \
+      q->write_index = (q->write_index + 1) % size;         \
+      q->item[write_index] = item;                          \
+      q->length++;                                          \
+      return 0;                                             \
+    }                                                       \
+    return -1;                                              \
+  }                                                         \
+  static int QUEUE_METHOD(type, size, dequeue)              \
+    (S_QUEUE_TYPE(type, size) *q, type *ptr)                \
+  {                                                         \
+    if (q->length > 0) {                                    \
+      unsigned int read_index = q->read_index;              \
+      q->read_index = (read_index + 1) % size;              \
+      *ptr = q->item[read_index];                           \
+      q->length--;                                          \
+      return 0;                                             \
+    }                                                       \
+    return -1;                                              \
+  }
+
+#endif
diff --git a/librtbuf/rtbuf.c b/librtbuf/rtbuf.c
index 9354139..e9fb1b4 100644
--- a/librtbuf/rtbuf.c
+++ b/librtbuf/rtbuf.c
@@ -1,5 +1,5 @@
 /*
- * Copyright 2018,2020 Thomas de Grivel <thoxdg@gmail.com> +33614550127
+ * Copyright 2018-2021 Thomas de Grivel <thoxdg@gmail.com>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -19,11 +19,11 @@
 #include <stdlib.h>
 #include <string.h>
 #include <strings.h>
-#include <rtbuf/data.h>
-#include <rtbuf/rtbuf.h>
-#include <rtbuf/lib.h>
-#include <rtbuf/var.h>
-#include <rtbuf/symbol.h>
+#include "data.h"
+#include "rtbuf.h"
+#include "lib.h"
+#include "var.h"
+#include "symbol.h"
 
 s_data_type   g_rtbuf_type = {
   sizeof(s_rtbuf) * 8,
@@ -262,7 +262,7 @@ int rtbuf_data_set (s_rtbuf *rtb, symbol name, void *value,
   if (out_i >= 0) {
     s_rtbuf_proc_out *out = &rtb->proc->out[out_i];
     if (out->type->t.bits == size * 8) {
-      void *data = rtb->data + out->offset;
+      void *data = (char*) rtb->data + out->offset;
       memcpy(data, value, size);
       return size;
     }
@@ -536,7 +536,7 @@ int rtbuf_out_int (s_rtbuf *rtb, unsigned int out, int default_value)
   o = &rtb->proc->out[out];
   assert(o->type);
   if (o->type->t.bits >= sizeof(int) * 8) {
-    int *i = (int*)(rtb->data + o->offset);
+    int *i = (int*)((char*) rtb->data + o->offset);
     return *i;
   }
   return default_value;
@@ -637,6 +637,6 @@ double * rtbuf_in_unbound_value (s_rtbuf *rtb, unsigned int in)
   assert(in < rtb->proc->in_n);
   offset = rtb->proc->in[in].offset;
   assert(offset < rtb->proc->bytes);
-  p = rtb->data + offset;
+  p = (char*) rtb->data + offset;
   return (double*) p;
 }
diff --git a/librtbuf/rtbuf.h b/librtbuf/rtbuf.h
new file mode 100644
index 0000000..e7e6c66
--- /dev/null
+++ b/librtbuf/rtbuf.h
@@ -0,0 +1,98 @@
+/*
+ * Copyright 2018-2021 Thomas de Grivel <thoxdg@gmail.com>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+#ifndef RTBUF_H
+#define RTBUF_H
+
+#include "data.h"
+#include "defs.h"
+#include "type.h"
+#include "proc.h"
+
+#define RTBUF_SORT     0x0001
+#define RTBUF_DELETE   0x0002
+#define RTBUF_NEW      0x0004
+#define RTBUF_READY    0x0008
+
+struct rtbuf_binding
+{
+  int rtb;
+  unsigned int out;
+};
+
+struct rtbuf
+{
+  void           *data;
+  unsigned int    flags;
+  s_rtbuf_proc   *proc;
+  unsigned int    refc;
+  s_rtbuf_binding in[RTBUF_PROC_IN_MAX];
+  unsigned int    in_n;
+  void           *user_ptr;
+};
+
+#define RTBUF_MAX         10000
+#define RTBUF_INSTANCE_MAX  100
+
+extern s_data_alloc g_rtbuf_alloc;
+extern s_rtbuf     *g_rtbuf;
+extern int          g_rtbuf_run;
+
+typedef void (*f_rtbuf_new_cb) (s_rtbuf *rtb);
+typedef void (*f_rtbuf_delete_cb) (s_rtbuf *rtb);
+typedef void (*f_rtbuf_bind_cb) (s_rtbuf *src, unsigned int out,
+                                 s_rtbuf *dest, unsigned int in);
+typedef void (*f_rtbuf_unbind_cb) (s_rtbuf *src, unsigned int out,
+                                   s_rtbuf *dest, unsigned int in);
+
+extern f_rtbuf_new_cb    g_rtbuf_new_cb;
+extern f_rtbuf_delete_cb g_rtbuf_delete_cb;
+extern f_rtbuf_bind_cb   g_rtbuf_bind_cb;
+extern f_rtbuf_unbind_cb g_rtbuf_unbind_cb;
+
+int   librtbuf_init ();
+
+int   rtbuf_err (const char *msg);
+int   rtbuf_new (s_rtbuf_proc *rp);
+int   rtbuf_new_ptr (s_rtbuf_proc *rp, void *user_ptr);
+void  rtbuf_in_unbind (s_rtbuf *rtb, unsigned int in);
+void  rtbuf_out_unbind (s_rtbuf *rtb, unsigned int out);
+void  rtbuf_unbind_all (s_rtbuf *rtb);
+void  rtbuf_delete (s_rtbuf *rtb);
+int   rtbuf_clone (s_rtbuf *rtb);
+int   rtbuf_find (symbol sym);
+int   rtbuf_in_find (s_rtbuf *rtb, const char *x);
+void  rtbuf_bind (unsigned int src, unsigned int out,
+                  s_rtbuf *dest, unsigned int in);
+int   rtbuf_out_find (s_rtbuf *rtb, symbol sym);
+int   rtbuf_data_set (s_rtbuf *rtb, symbol name, void *value,
+                      unsigned int size);
+void  rtbuf_sort ();
+int   rtbuf_start ();
+int   rtbuf_run ();
+void  rtbuf_stop ();
+void  rtbuf_print (unsigned int i);
+void  rtbuf_print_long (unsigned int i);
+void  rtbuf_print_sorted ();
+
+int  rtbuf_out_int (s_rtbuf *rtb, unsigned int out, int default_value);
+
+double * rtbuf_in_unbound_value (s_rtbuf *rtb, unsigned int in);
+
+double min (double a, double b);
+double max (double a, double b);
+double clamp (double inf, double x, double sup);
+
+#endif /* RTBUF_H */
diff --git a/librtbuf/rtbuf_fun.c b/librtbuf/rtbuf_fun.c
deleted file mode 100644
index ea103e1..0000000
--- a/librtbuf/rtbuf_fun.c
+++ /dev/null
@@ -1,115 +0,0 @@
-/*
- * Copyright 2018 Thomas de Grivel <thoxdg@gmail.com> +33614550127
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-
-#include <assert.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <strings.h>
-#include "data.h"
-#include "rtbuf.h"
-#include "symbol.h"
-
-s_data_type g_rtbuf_proc_type = {
-  sizeof(s_rtbuf_proc) * 8,
-  DATA_TYPE_BITS
-};
-s_data_alloc g_rtbuf_proc_alloc;
-s_rtbuf_proc *g_rtbuf_proc;
-
-void rtbuf_proc_init ()
-{
-  data_alloc_init(&g_rtbuf_proc_alloc, &g_rtbuf_proc_type,
-                  RTBUF_PROC_MAX, 0, 0);
-}
-
-int rtbuf_proc_p (s_rtbuf_proc *proc)
-{
-  return proc && proc->name;
-}
-
-s_rtbuf_proc * rtbuf_proc_new ()
-{
-  s_rtbuf_proc *rf = data_new(&g_rtbuf_proc_alloc);
-  return rf;
-}
-
-void rtbuf_proc_delete (s_rtbuf_proc *proc)
-{
-  assert(proc);
-  data_delete(&g_rtbuf_proc_alloc, proc);
-}
-
-s_rtbuf_proc * rtbuf_proc_find (const char *x)
-{
-  const char *sym = symbol_find(x);
-  if (sym) {
-    unsigned int i = 0;
-    unsigned int n = g_rtbuf_alloc.n - g_rtbuf_alloc.free_n;
-    while (i < g_rtbuf_proc_alloc.n && n > 0) {
-      if (rtbuf_proc_p(&g_rtbuf_proc[i])) {
-        if (sym == g_rtbuf_proc[i].name)
-          return &g_rtbuf_proc[i];
-        n--;
-      }
-      i++;
-    }
-  }
-  return 0;
-}
-
-int rtbuf_proc_out_find (s_rtbuf_proc *proc, const char *x)
-{
-  symbol sym;
-  if (x && '0' <= x[0] && x[0] <= '9') {
-    int i = atoi(x);
-    if (0 <= i && (unsigned int) i < proc->out_n)
-      return i;
-  }
-  if ((sym = symbol_find(x))) {
-    unsigned int i = 0;
-    while (i < proc->out_n) {
-      if (sym == proc->out[i].name)
-        return i;
-      i++;
-    }
-  }
-  return -1;
-}
-
-void rtbuf_proc_print (s_rtbuf_proc *proc)
-{
-  unsigned int i = 0;
-  printf("#<proc %i %s (", proc->lib_proc, proc->name);
-  while (i < proc->var_n) {
-    if (i > 0)
-      fputs(" ", stdout);
-    fputs(proc->var[i].name, stdout);
-    fputs(":", stdout);
-    fputs(proc->var[i].type->name, stdout);
-    i++;
-  }
-  printf(") -> (");
-  i = 0;
-  while (i < proc->out_n) {
-    if (i > 0)
-      fputs(" ", stdout);
-    fputs(proc->out[i].name, stdout);
-    fputs(":", stdout);
-    fputs(proc->out[i].type->name, stdout);
-    i++;
-  }
-  fputs(")>", stdout);
-}
diff --git a/librtbuf/rtbuf_lib.c b/librtbuf/rtbuf_lib.c
index ab21c4f..6d74b20 100644
--- a/librtbuf/rtbuf_lib.c
+++ b/librtbuf/rtbuf_lib.c
@@ -1,5 +1,5 @@
 /*
- * Copyright 2018,2020 Thomas de Grivel <thoxdg@gmail.com>
+ * Copyright 2018-2021 Thomas de Grivel <thoxdg@gmail.com>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -21,10 +21,9 @@
 #include <string.h>
 #include <strings.h>
 #include <unistd.h>
-
-#include <rtbuf/rtbuf.h>
-#include <rtbuf/lib.h>
-#include <rtbuf/symbol.h>
+#include "rtbuf.h"
+#include "lib.h"
+#include "symbol.h"
 
 s_data_type  g_rtbuf_lib_type = {
   sizeof(s_rtbuf_lib) * 8,
@@ -281,7 +280,7 @@ void rtbuf_lib_print (const s_rtbuf_lib *lib)
       (i = lib - g_rtbuf_lib) < RTBUF_LIB_MAX)
     printf("#<lib %i %s>\n", i, lib->name);
   else
-    printf("#<lib %p %s>\n", lib, lib->name);
+    printf("#<lib %p %s>\n", (void*) lib, lib->name);
 }
 
 void rtbuf_lib_print_long (unsigned int i)
diff --git a/librtbuf/rtbuf_proc.c b/librtbuf/rtbuf_proc.c
index f3d98dd..eb3d8eb 100644
--- a/librtbuf/rtbuf_proc.c
+++ b/librtbuf/rtbuf_proc.c
@@ -1,5 +1,5 @@
 /*
- * Copyright 2018 Thomas de Grivel <thoxdg@gmail.com>
+ * Copyright 2018-2021 Thomas de Grivel <thoxdg@gmail.com>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -18,9 +18,9 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <strings.h>
-#include <rtbuf/data.h>
-#include <rtbuf/rtbuf.h>
-#include <rtbuf/symbol.h>
+#include "data.h"
+#include "rtbuf.h"
+#include "symbol.h"
 
 s_data_type g_rtbuf_proc_type = {
   sizeof(s_rtbuf_proc) * 8,
diff --git a/librtbuf/rtbuf_type.c b/librtbuf/rtbuf_type.c
index 8bfb46c..5e24911 100644
--- a/librtbuf/rtbuf_type.c
+++ b/librtbuf/rtbuf_type.c
@@ -1,5 +1,5 @@
 /*
- * Copyright 2018 Thomas de Grivel <thoxdg@gmail.com> +33614550127
+ * Copyright 2018-2021 Thomas de Grivel <thoxdg@gmail.com>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -19,8 +19,8 @@
 #include <stdlib.h>
 #include <string.h>
 #include <strings.h>
-#include <rtbuf/type.h>
-#include <rtbuf/symbol.h>
+#include "type.h"
+#include "symbol.h"
 
 extern int snprintf (char *, size_t, const char *, ...);
 
diff --git a/librtbuf/rtbuf_var.c b/librtbuf/rtbuf_var.c
index 5be53f3..1eaeb45 100644
--- a/librtbuf/rtbuf_var.c
+++ b/librtbuf/rtbuf_var.c
@@ -1,5 +1,5 @@
 /*
- * Copyright 2018 Thomas de Grivel <thoxdg@gmail.com>
+ * Copyright 2018-2021 Thomas de Grivel <thoxdg@gmail.com>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -16,9 +16,9 @@
 
 #include <assert.h>
 #include <stdio.h>
-#include <rtbuf/data.h>
-#include <rtbuf/var.h>
-#include <rtbuf/rtbuf.h>
+#include "data.h"
+#include "var.h"
+#include "rtbuf.h"
 
 s_data_type  g_rtbuf_var_type = {
   sizeof(s_rtbuf_var) * 8,
diff --git a/librtbuf/symbol.c b/librtbuf/symbol.c
index 6cf3001..17fae96 100644
--- a/librtbuf/symbol.c
+++ b/librtbuf/symbol.c
@@ -1,5 +1,5 @@
 /*
- * Copyright 2018 Thomas de Grivel <thoxdg@gmail.com> +33614550127
+ * Copyright 2018-2021 Thomas de Grivel <thoxdg@gmail.com>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -18,7 +18,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <strings.h>
-#include <rtbuf/symbol.h>
+#include "symbol.h"
 
 char         g_str_start[STRING_MAX];
 char        *g_str = g_str_start;
diff --git a/librtbuf/symbol.h b/librtbuf/symbol.h
new file mode 100644
index 0000000..0a09cd4
--- /dev/null
+++ b/librtbuf/symbol.h
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2018-2021 Thomas de Grivel <thoxdg@gmail.com>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+#ifndef SYMBOL_H
+#define SYMBOL_H
+
+#include <sys/types.h>
+
+typedef const char *symbol;
+
+#define STRING_MAX 65536
+extern char         g_str_start[STRING_MAX];
+extern char        *g_str;
+extern unsigned int g_str_n;
+extern unsigned int g_str_last;
+
+char * g_str_append (const char *str, size_t len);
+void   g_str_reset (char *head);
+
+#define SYMBOL_MAX 32768
+extern symbol       g_symbols[SYMBOL_MAX];
+extern unsigned int g_symbols_n;
+
+void   symbols_init ();
+symbol symbol_new (symbol name);
+void   symbol_delete (symbol sym);
+symbol symbol_find (symbol name);
+symbol symbol_intern (const char *name);
+
+#endif
diff --git a/librtbuf/type.h b/librtbuf/type.h
new file mode 100644
index 0000000..3c3713b
--- /dev/null
+++ b/librtbuf/type.h
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2018-2021 Thomas de Grivel <thoxdg@gmail.com>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+#ifndef RTBUF_TYPE_H
+#define RTBUF_TYPE_H
+
+#include "data.h"
+#include "defs.h"
+#include "symbol.h"
+
+struct rtbuf_type {
+  symbol       name;
+  s_data_type  t;
+};
+
+#define RTBUF_TYPE_MAX 1024
+
+void           rtbuf_type_init ();
+s_rtbuf_type * rtbuf_type_new (const char *name,
+                               unsigned int size);
+void           rtbuf_type_delete (s_rtbuf_type *rt);
+s_rtbuf_type * rtbuf_type_find (symbol name);
+s_rtbuf_type * rtbuf_type_define (const char *name,
+                                  unsigned int size);
+s_rtbuf_type * rtbuf_type (const char *name);
+s_rtbuf_type * rtbuf_type_array (const char *element_type,
+                                 unsigned int size);
+
+#define RTBUF_TYPE_CHAR_ARRAY(size) ("char[" #size "]")
+#define RTBUF_TYPE_SHORT_ARRAY(size) ("short[" #size "]")
+#define RTBUF_TYPE_DOUBLE_ARRAY(size) ("double[" #size "]")
+
+#endif
diff --git a/librtbuf/var.h b/librtbuf/var.h
new file mode 100644
index 0000000..5e7ce75
--- /dev/null
+++ b/librtbuf/var.h
@@ -0,0 +1,34 @@
+/*
+ * Copyright 2018-2021 Thomas de Grivel <thoxdg@gmail.com>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+#ifndef RTBUF_VAR_H
+#define RTBUF_VAR_H
+
+#include "defs.h"
+
+#define RTBUF_VAR_MAX 1000
+
+struct rtbuf_var {
+  e_rtbuf_var_type type;
+  const char *name;
+  unsigned index;
+};
+
+void          rtbuf_var_init (void);
+s_rtbuf_var * rtbuf_var_find (const char *name);
+s_rtbuf_var * rtbuf_var_rtbuf_set (const char *name, unsigned i);
+void          rtbuf_var_print (const s_rtbuf_var *v);
+
+#endif