[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r100761: Adapt docs of primitives to
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r100761: Adapt docs of primitives to ANSI C arg list. |
Date: |
Fri, 09 Jul 2010 11:38:50 +0300 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 100761
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Fri 2010-07-09 11:38:50 +0300
message:
Adapt docs of primitives to ANSI C arg list.
internals.texi (Writing Emacs Primitives): Adapt to ANSI C
calling sequences, which are now the standard.
modified:
doc/lispref/ChangeLog
doc/lispref/internals.texi
=== modified file 'doc/lispref/ChangeLog'
--- a/doc/lispref/ChangeLog 2010-06-09 22:08:50 +0000
+++ b/doc/lispref/ChangeLog 2010-07-09 08:38:50 +0000
@@ -1,3 +1,8 @@
+2010-07-09 Eli Zaretskii <address@hidden>
+
+ * internals.texi (Writing Emacs Primitives): Adapt to ANSI C
+ calling sequences, which are now the standard.
+
2010-06-02 Chong Yidong <address@hidden>
* searching.texi (Regexp Special): Remove obsolete information
=== modified file 'doc/lispref/internals.texi'
--- a/doc/lispref/internals.texi 2010-01-13 08:35:10 +0000
+++ b/doc/lispref/internals.texi 2010-07-09 08:38:50 +0000
@@ -518,8 +518,7 @@
@end group
@group
usage: (or CONDITIONS ...) */)
- (args)
- Lisp_Object args;
+ (Lisp_Object args)
@{
register Lisp_Object val = Qnil;
struct gcpro gcpro1;
@@ -618,15 +617,15 @@
too.
@end table
- After the call to the @code{DEFUN} macro, you must write the argument
-name list that every C function must have, followed by ordinary C
-declarations for the arguments. For a function with a fixed maximum
-number of arguments, declare a C argument for each Lisp argument, and
-give them all type @code{Lisp_Object}. When a Lisp function has no
-upper limit on the number of arguments, its implementation in C actually
-receives exactly two arguments: the first is the number of Lisp
-arguments, and the second is the address of a block containing their
-values. They have types @code{int} and @address@hidden *}}.
+ After the call to the @code{DEFUN} macro, you must write the
+argument list that every C function must have, including the types for
+the arguments. For a function with a fixed maximum number of
+arguments, declare a C argument for each Lisp argument, and give them
+all type @code{Lisp_Object}. When a Lisp function has no upper limit
+on the number of arguments, its implementation in C actually receives
+exactly two arguments: the first is the number of Lisp arguments, and
+the second is the address of a block containing their values. They
+have types @code{int} and @address@hidden *}}.
@cindex @code{GCPRO} and @code{UNGCPRO}
@cindex protect C variables from garbage collection
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r100761: Adapt docs of primitives to ANSI C arg list.,
Eli Zaretskii <=