diff options
Diffstat (limited to 'test/data')
| -rw-r--r-- | test/data/emacs-module/mod-test.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/test/data/emacs-module/mod-test.c b/test/data/emacs-module/mod-test.c index 5e857c048f0..eee9466c5d6 100644 --- a/test/data/emacs-module/mod-test.c +++ b/test/data/emacs-module/mod-test.c | |||
| @@ -265,12 +265,22 @@ int | |||
| 265 | emacs_module_init (struct emacs_runtime *ert) | 265 | emacs_module_init (struct emacs_runtime *ert) |
| 266 | { | 266 | { |
| 267 | if (ert->size < sizeof *ert) | 267 | if (ert->size < sizeof *ert) |
| 268 | return 1; | 268 | { |
| 269 | fprintf (stderr, "Runtime size of runtime structure (%td bytes) " | ||
| 270 | "smaller than compile-time size (%zu bytes)", | ||
| 271 | ert->size, sizeof *ert); | ||
| 272 | return 1; | ||
| 273 | } | ||
| 269 | 274 | ||
| 270 | emacs_env *env = ert->get_environment (ert); | 275 | emacs_env *env = ert->get_environment (ert); |
| 271 | 276 | ||
| 272 | if (env->size < sizeof *env) | 277 | if (env->size < sizeof *env) |
| 273 | return 2; | 278 | { |
| 279 | fprintf (stderr, "Runtime size of environment structure (%td bytes) " | ||
| 280 | "smaller than compile-time size (%zu bytes)", | ||
| 281 | env->size, sizeof *env); | ||
| 282 | return 2; | ||
| 283 | } | ||
| 274 | 284 | ||
| 275 | #define DEFUN(lsym, csym, amin, amax, doc, data) \ | 285 | #define DEFUN(lsym, csym, amin, amax, doc, data) \ |
| 276 | bind_function (env, lsym, \ | 286 | bind_function (env, lsym, \ |