From b68766967c86a6a789d65772f69f7f44939ebdf2 Mon Sep 17 00:00:00 2001 From: David Moc Date: Tue, 2 Jun 2026 14:15:25 +0200 Subject: Add API completion signatures --- docs/ccdjit-improvements.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'docs/ccdjit-improvements.md') diff --git a/docs/ccdjit-improvements.md b/docs/ccdjit-improvements.md index 4b48589..ef4469e 100644 --- a/docs/ccdjit-improvements.md +++ b/docs/ccdjit-improvements.md @@ -37,9 +37,10 @@ currently favors integer-only plugin helpers, host-owned objects, and copy-based text because those paths are predictable. Static completion lists should use `ecex_define_word_completion_provider` plus -`ecex_completion_provider_add_words`. That passes one string literal blob over -the host boundary and avoids depending on JIT-side `const char *` array -indexing. +`ecex_completion_provider_add_words`, or `ecex_completion_provider_add_entries` +when each candidate needs its own signature/detail. Both forms pass one string +literal blob over the host boundary and avoid depending on JIT-side +`const char *` array indexing. Runtime plugin callbacks should avoid variadic C library calls such as `snprintf`. Build strings with fixed-arity helpers or host APIs instead; the C -- cgit v1.2.3