This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch devs/cedric/gl-slice-add
in repository efl.
View the commit online.
commit 89ef129e4b8bff86381bc060a31d0876bf5db866
Author: Cedric BAIL <[email protected]>
AuthorDate: Tue Nov 24 10:36:23 2026 -0600
AGENTS.md: warn against static tables of exported event descriptions
A static initializer using EFL_EVENT_* or any other data exported by
another library builds on Linux but not on Windows, where the address
of an imported variable is not a constant. This already broke the
Windows build of efl_ui_win.c once; point to the existing way around
it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
AGENTS.md | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/AGENTS.md b/AGENTS.md
index 3cc294a077..da0080f212 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -266,6 +266,10 @@ Use the EFL facilities rather than reinventing them:
* `Eina_Bool`, `Eina_Stringshare`, `Eina_Hash`, `Eina_Inarray`, `Eina_Rectangle`.
* `EINA_SAFETY_ON_NULL_RETURN(_VAL)` to check arguments of public API.
* The library's log domain (`ERR()`, `WRN()`, `DBG()`), never `printf`.
+* `EFL_CALLBACKS_ARRAY_DEFINE`, or a table filled at runtime, for any
+ table holding event descriptions (`EFL_EVENT_*`) or other data exported
+ by another library: on Windows their addresses are not constant, and a
+ `static` initializer using them does not compile.
Every struct you add is laid out for memory:
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.