Fix mistake in commit a1dc830 and add a comment

This commit is contained in:
Paul Licameli 2018-02-22 01:02:15 -05:00
parent 47dab27df5
commit e6d069787b
2 changed files with 4 additions and 2 deletions

View File

@ -518,7 +518,7 @@ int xlbindfunctions(FUNDEF *functions, size_t nfunctions)
memcpy(newfuntab, funtab, (szfuntab - 1) * sizeof(FUNDEF));
memcpy(newfuntab + szfuntab - 1, functions, nfunctions * sizeof(FUNDEF));
FUNDEF sentinel = { 0, 0, 0 };
newfuntab[szfuntab - 1] = sentinel;
newfuntab[szfuntab + nfunctions - 1] = sentinel;
funtab = newfuntab;
szfuntab += nfunctions;
return TRUE;

View File

@ -673,7 +673,9 @@ void xlsymbols(void);
/* xlftab.c */
/* 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);
/* xlio.c */