mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-10 16:43:33 +02:00
Fix mistake in commit a1dc830
and add a comment
This commit is contained in:
@@ -518,7 +518,7 @@ int xlbindfunctions(FUNDEF *functions, size_t nfunctions)
|
|||||||
memcpy(newfuntab, funtab, (szfuntab - 1) * sizeof(FUNDEF));
|
memcpy(newfuntab, funtab, (szfuntab - 1) * sizeof(FUNDEF));
|
||||||
memcpy(newfuntab + szfuntab - 1, functions, nfunctions * sizeof(FUNDEF));
|
memcpy(newfuntab + szfuntab - 1, functions, nfunctions * sizeof(FUNDEF));
|
||||||
FUNDEF sentinel = { 0, 0, 0 };
|
FUNDEF sentinel = { 0, 0, 0 };
|
||||||
newfuntab[szfuntab - 1] = sentinel;
|
newfuntab[szfuntab + nfunctions - 1] = sentinel;
|
||||||
funtab = newfuntab;
|
funtab = newfuntab;
|
||||||
szfuntab += nfunctions;
|
szfuntab += nfunctions;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
@@ -673,7 +673,9 @@ void xlsymbols(void);
|
|||||||
|
|
||||||
/* xlftab.c */
|
/* xlftab.c */
|
||||||
/* returns true on success,
|
/* returns true on success,
|
||||||
false if table limits would be exceeded and the table remains unchanged */
|
false if table limits would be exceeded and the table remains unchanged
|
||||||
|
Call this, any number of times, before calling xlisp_main_init
|
||||||
|
*/
|
||||||
int xlbindfunctions(FUNDEF *functions, size_t nfunctions);
|
int xlbindfunctions(FUNDEF *functions, size_t nfunctions);
|
||||||
|
|
||||||
/* xlio.c */
|
/* xlio.c */
|
||||||
|
Reference in New Issue
Block a user