aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Lang2019-12-23 18:30:09 +0100
committerMario Lang2019-12-23 18:30:09 +0100
commitb2571eccb5c039f930a211cf512a48e849b84e8c (patch)
treee3dbcc2bf8c492482031136df31f168e7ffab348
parent94fa7ceb480632fec7dda6d41f63223e4127bd83 (diff)
downloademacs-b2571eccb5c039f930a211cf512a48e849b84e8c.tar.gz
emacs-b2571eccb5c039f930a211cf512a48e849b84e8c.zip
; Fix oversights during renaming of example code
Introduced in 94fa7ceb480632fec7dda6d41f63223e4127bd83
-rw-r--r--doc/lispref/internals.texi10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/lispref/internals.texi b/doc/lispref/internals.texi
index da98283be80..cf66302a3a9 100644
--- a/doc/lispref/internals.texi
+++ b/doc/lispref/internals.texi
@@ -1230,7 +1230,7 @@ the @var{runtime} structure with the value compiled into the module:
1230int 1230int
1231emacs_module_init (struct emacs_runtime *runtime) 1231emacs_module_init (struct emacs_runtime *runtime)
1232@{ 1232@{
1233 if (ert->size < sizeof (*runtime)) 1233 if (runtime->size < sizeof (*runtime))
1234 return 1; 1234 return 1;
1235@} 1235@}
1236@end example 1236@end example
@@ -1247,7 +1247,7 @@ assumes it is part of the @code{emacs_module_init} function shown
1247above: 1247above:
1248 1248
1249@example 1249@example
1250 emacs_env *env = ert->get_environment (runtime); 1250 emacs_env *env = runtime->get_environment (runtime);
1251 if (env->size < sizeof (*env)) 1251 if (env->size < sizeof (*env))
1252 return 2; 1252 return 2;
1253@end example 1253@end example
@@ -1264,7 +1264,7 @@ Emacs, by comparing the size of the environment passed by Emacs with
1264known sizes, like this: 1264known sizes, like this:
1265 1265
1266@example 1266@example
1267 emacs_env *env = ert->get_environment (runtime); 1267 emacs_env *env = runtime->get_environment (runtime);
1268 if (env->size >= sizeof (struct emacs_env_26)) 1268 if (env->size >= sizeof (struct emacs_env_26))
1269 emacs_version = 26; /* Emacs 26 or later. */ 1269 emacs_version = 26; /* Emacs 26 or later. */
1270 else if (env->size >= sizeof (struct emacs_env_25)) 1270 else if (env->size >= sizeof (struct emacs_env_25))
@@ -1388,7 +1388,7 @@ Combining the above steps, code that arranges for a C function
1388look like this, as part of the module initialization function: 1388look like this, as part of the module initialization function:
1389 1389
1390@example 1390@example
1391 emacs_env *env = ert->get_environment (runtime); 1391 emacs_env *env = runtime->get_environment (runtime);
1392 emacs_value func = env->make_function (env, min_arity, max_arity, 1392 emacs_value func = env->make_function (env, min_arity, max_arity,
1393 module_func, docstring, data); 1393 module_func, docstring, data);
1394 emacs_value symbol = env->intern (env, "module-func"); 1394 emacs_value symbol = env->intern (env, "module-func");
@@ -1729,7 +1729,7 @@ next_prime (emacs_env *env, ptrdiff_t nargs, emacs_value *args,
1729int 1729int
1730emacs_module_init (struct emacs_runtime *runtime) 1730emacs_module_init (struct emacs_runtime *runtime)
1731@{ 1731@{
1732 emacs_env *env = ert->get_environment (runtime); 1732 emacs_env *env = runtime->get_environment (runtime);
1733 emacs_value symbol = env->intern (env, "next-prime"); 1733 emacs_value symbol = env->intern (env, "next-prime");
1734 emacs_value func 1734 emacs_value func
1735 = env->make_function (env, 1, 1, next_prime, NULL, NULL); 1735 = env->make_function (env, 1, 1, next_prime, NULL, NULL);