1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 06:01:13 +02:00

Changes to make xlisp.h usable in C++ code...

1) #include guard
2) "C" linkage for all function declarations
3) some uses of const
This commit is contained in:
Paul Licameli
2018-02-27 13:51:10 -05:00
parent 5aa70545d5
commit 6b2a219e26
2 changed files with 15 additions and 3 deletions

View File

@@ -504,7 +504,7 @@ FUNDEF init_funtab[] = {
FUNDEF *funtab = init_funtab;
static size_t szfuntab = sizeof(init_funtab) / sizeof(*init_funtab);
int xlbindfunctions(FUNDEF *functions, size_t nfunctions)
int xlbindfunctions(const FUNDEF *functions, size_t nfunctions)
{
/* This is written very generally, imposing no fixed upper limit on the
growth of the table. But perhaps a lightweight alternative with such a