emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master b2571ec: ; Fix oversights during renaming of example code


From: Mario Lang
Subject: master b2571ec: ; Fix oversights during renaming of example code
Date: Mon, 23 Dec 2019 12:30:16 -0500 (EST)

branch: master
commit b2571eccb5c039f930a211cf512a48e849b84e8c
Author: Mario Lang <address@hidden>
Commit: Mario Lang <address@hidden>

    ; Fix oversights during renaming of example code
    
    Introduced in 94fa7ceb480632fec7dda6d41f63223e4127bd83
---
 doc/lispref/internals.texi | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/doc/lispref/internals.texi b/doc/lispref/internals.texi
index da98283..cf66302 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:
 int
 emacs_module_init (struct emacs_runtime *runtime)
 @{
-  if (ert->size < sizeof (*runtime))
+  if (runtime->size < sizeof (*runtime))
     return 1;
 @}
 @end example
@@ -1247,7 +1247,7 @@ assumes it is part of the @code{emacs_module_init} 
function shown
 above:
 
 @example
-  emacs_env *env = ert->get_environment (runtime);
+  emacs_env *env = runtime->get_environment (runtime);
   if (env->size < sizeof (*env))
     return 2;
 @end example
@@ -1264,7 +1264,7 @@ Emacs, by comparing the size of the environment passed by 
Emacs with
 known sizes, like this:
 
 @example
-  emacs_env *env = ert->get_environment (runtime);
+  emacs_env *env = runtime->get_environment (runtime);
   if (env->size >= sizeof (struct emacs_env_26))
     emacs_version = 26;  /* Emacs 26 or later.  */
   else if (env->size >= sizeof (struct emacs_env_25))
@@ -1388,7 +1388,7 @@ Combining the above steps, code that arranges for a C 
function
 look like this, as part of the module initialization function:
 
 @example
- emacs_env *env = ert->get_environment (runtime);
+ emacs_env *env = runtime->get_environment (runtime);
  emacs_value func = env->make_function (env, min_arity, max_arity,
                                         module_func, docstring, data);
  emacs_value symbol = env->intern (env, "module-func");
@@ -1729,7 +1729,7 @@ next_prime (emacs_env *env, ptrdiff_t nargs, emacs_value 
*args,
 int
 emacs_module_init (struct emacs_runtime *runtime)
 @{
-  emacs_env *env = ert->get_environment (runtime);
+  emacs_env *env = runtime->get_environment (runtime);
   emacs_value symbol = env->intern (env, "next-prime");
   emacs_value func
     = env->make_function (env, 1, 1, next_prime, NULL, NULL);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]