aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
authorJoakim Verona2015-01-15 14:54:25 +0100
committerJoakim Verona2015-01-15 14:54:25 +0100
commit0298a2c6a10bc3b79cb2f45a1961dd7ac6da4e6d (patch)
tree6c7ea25ac137f5764d931e841598a3c1ea434ab0 /src/data.c
parenta1124bc117e41019de49c82d13d1a72a50df977d (diff)
parent0e97c44c3699c4606a04f589828acdf9c03f447e (diff)
downloademacs-0298a2c6a10bc3b79cb2f45a1961dd7ac6da4e6d.tar.gz
emacs-0298a2c6a10bc3b79cb2f45a1961dd7ac6da4e6d.zip
merge master
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c42
1 files changed, 28 insertions, 14 deletions
diff --git a/src/data.c b/src/data.c
index 820c3ce8407..0389eb49b06 100644
--- a/src/data.c
+++ b/src/data.c
@@ -176,7 +176,8 @@ args_out_of_range_3 (Lisp_Object a1, Lisp_Object a2, Lisp_Object a3)
176/* Data type predicates. */ 176/* Data type predicates. */
177 177
178DEFUN ("eq", Feq, Seq, 2, 2, 0, 178DEFUN ("eq", Feq, Seq, 2, 2, 0,
179 doc: /* Return t if the two args are the same Lisp object. */) 179 doc: /* Return t if the two args are the same Lisp object. */
180 attributes: const)
180 (Lisp_Object obj1, Lisp_Object obj2) 181 (Lisp_Object obj1, Lisp_Object obj2)
181{ 182{
182 if (EQ (obj1, obj2)) 183 if (EQ (obj1, obj2))
@@ -185,7 +186,8 @@ DEFUN ("eq", Feq, Seq, 2, 2, 0,
185} 186}
186 187
187DEFUN ("null", Fnull, Snull, 1, 1, 0, 188DEFUN ("null", Fnull, Snull, 1, 1, 0,
188 doc: /* Return t if OBJECT is nil. */) 189 doc: /* Return t if OBJECT is nil. */
190 attributes: const)
189 (Lisp_Object object) 191 (Lisp_Object object)
190{ 192{
191 if (NILP (object)) 193 if (NILP (object))
@@ -263,7 +265,8 @@ for example, (type-of 1) returns `integer'. */)
263} 265}
264 266
265DEFUN ("consp", Fconsp, Sconsp, 1, 1, 0, 267DEFUN ("consp", Fconsp, Sconsp, 1, 1, 0,
266 doc: /* Return t if OBJECT is a cons cell. */) 268 doc: /* Return t if OBJECT is a cons cell. */
269 attributes: const)
267 (Lisp_Object object) 270 (Lisp_Object object)
268{ 271{
269 if (CONSP (object)) 272 if (CONSP (object))
@@ -272,7 +275,8 @@ DEFUN ("consp", Fconsp, Sconsp, 1, 1, 0,
272} 275}
273 276
274DEFUN ("atom", Fatom, Satom, 1, 1, 0, 277DEFUN ("atom", Fatom, Satom, 1, 1, 0,
275 doc: /* Return t if OBJECT is not a cons cell. This includes nil. */) 278 doc: /* Return t if OBJECT is not a cons cell. This includes nil. */
279 attributes: const)
276 (Lisp_Object object) 280 (Lisp_Object object)
277{ 281{
278 if (CONSP (object)) 282 if (CONSP (object))
@@ -282,7 +286,8 @@ DEFUN ("atom", Fatom, Satom, 1, 1, 0,
282 286
283DEFUN ("listp", Flistp, Slistp, 1, 1, 0, 287DEFUN ("listp", Flistp, Slistp, 1, 1, 0,
284 doc: /* Return t if OBJECT is a list, that is, a cons cell or nil. 288 doc: /* Return t if OBJECT is a list, that is, a cons cell or nil.
285Otherwise, return nil. */) 289Otherwise, return nil. */
290 attributes: const)
286 (Lisp_Object object) 291 (Lisp_Object object)
287{ 292{
288 if (CONSP (object) || NILP (object)) 293 if (CONSP (object) || NILP (object))
@@ -291,7 +296,8 @@ Otherwise, return nil. */)
291} 296}
292 297
293DEFUN ("nlistp", Fnlistp, Snlistp, 1, 1, 0, 298DEFUN ("nlistp", Fnlistp, Snlistp, 1, 1, 0,
294 doc: /* Return t if OBJECT is not a list. Lists include nil. */) 299 doc: /* Return t if OBJECT is not a list. Lists include nil. */
300 attributes: const)
295 (Lisp_Object object) 301 (Lisp_Object object)
296{ 302{
297 if (CONSP (object) || NILP (object)) 303 if (CONSP (object) || NILP (object))
@@ -300,7 +306,8 @@ DEFUN ("nlistp", Fnlistp, Snlistp, 1, 1, 0,
300} 306}
301 307
302DEFUN ("symbolp", Fsymbolp, Ssymbolp, 1, 1, 0, 308DEFUN ("symbolp", Fsymbolp, Ssymbolp, 1, 1, 0,
303 doc: /* Return t if OBJECT is a symbol. */) 309 doc: /* Return t if OBJECT is a symbol. */
310 attributes: const)
304 (Lisp_Object object) 311 (Lisp_Object object)
305{ 312{
306 if (SYMBOLP (object)) 313 if (SYMBOLP (object))
@@ -333,7 +340,8 @@ DEFUN ("vectorp", Fvectorp, Svectorp, 1, 1, 0,
333} 340}
334 341
335DEFUN ("stringp", Fstringp, Sstringp, 1, 1, 0, 342DEFUN ("stringp", Fstringp, Sstringp, 1, 1, 0,
336 doc: /* Return t if OBJECT is a string. */) 343 doc: /* Return t if OBJECT is a string. */
344 attributes: const)
337 (Lisp_Object object) 345 (Lisp_Object object)
338{ 346{
339 if (STRINGP (object)) 347 if (STRINGP (object))
@@ -436,7 +444,8 @@ DEFUN ("byte-code-function-p", Fbyte_code_function_p, Sbyte_code_function_p,
436} 444}
437 445
438DEFUN ("char-or-string-p", Fchar_or_string_p, Schar_or_string_p, 1, 1, 0, 446DEFUN ("char-or-string-p", Fchar_or_string_p, Schar_or_string_p, 1, 1, 0,
439 doc: /* Return t if OBJECT is a character or a string. */) 447 doc: /* Return t if OBJECT is a character or a string. */
448 attributes: const)
440 (register Lisp_Object object) 449 (register Lisp_Object object)
441{ 450{
442 if (CHARACTERP (object) || STRINGP (object)) 451 if (CHARACTERP (object) || STRINGP (object))
@@ -445,7 +454,8 @@ DEFUN ("char-or-string-p", Fchar_or_string_p, Schar_or_string_p, 1, 1, 0,
445} 454}
446 455
447DEFUN ("integerp", Fintegerp, Sintegerp, 1, 1, 0, 456DEFUN ("integerp", Fintegerp, Sintegerp, 1, 1, 0,
448 doc: /* Return t if OBJECT is an integer. */) 457 doc: /* Return t if OBJECT is an integer. */
458 attributes: const)
449 (Lisp_Object object) 459 (Lisp_Object object)
450{ 460{
451 if (INTEGERP (object)) 461 if (INTEGERP (object))
@@ -463,7 +473,8 @@ DEFUN ("integer-or-marker-p", Finteger_or_marker_p, Sinteger_or_marker_p, 1, 1,
463} 473}
464 474
465DEFUN ("natnump", Fnatnump, Snatnump, 1, 1, 0, 475DEFUN ("natnump", Fnatnump, Snatnump, 1, 1, 0,
466 doc: /* Return t if OBJECT is a nonnegative integer. */) 476 doc: /* Return t if OBJECT is a nonnegative integer. */
477 attributes: const)
467 (Lisp_Object object) 478 (Lisp_Object object)
468{ 479{
469 if (NATNUMP (object)) 480 if (NATNUMP (object))
@@ -472,7 +483,8 @@ DEFUN ("natnump", Fnatnump, Snatnump, 1, 1, 0,
472} 483}
473 484
474DEFUN ("numberp", Fnumberp, Snumberp, 1, 1, 0, 485DEFUN ("numberp", Fnumberp, Snumberp, 1, 1, 0,
475 doc: /* Return t if OBJECT is a number (floating point or integer). */) 486 doc: /* Return t if OBJECT is a number (floating point or integer). */
487 attributes: const)
476 (Lisp_Object object) 488 (Lisp_Object object)
477{ 489{
478 if (NUMBERP (object)) 490 if (NUMBERP (object))
@@ -492,7 +504,8 @@ DEFUN ("number-or-marker-p", Fnumber_or_marker_p,
492} 504}
493 505
494DEFUN ("floatp", Ffloatp, Sfloatp, 1, 1, 0, 506DEFUN ("floatp", Ffloatp, Sfloatp, 1, 1, 0,
495 doc: /* Return t if OBJECT is a floating point number. */) 507 doc: /* Return t if OBJECT is a floating point number. */
508 attributes: const)
496 (Lisp_Object object) 509 (Lisp_Object object)
497{ 510{
498 if (FLOATP (object)) 511 if (FLOATP (object))
@@ -2954,7 +2967,8 @@ DEFUN ("lognot", Flognot, Slognot, 1, 1, 0,
2954DEFUN ("byteorder", Fbyteorder, Sbyteorder, 0, 0, 0, 2967DEFUN ("byteorder", Fbyteorder, Sbyteorder, 0, 0, 0,
2955 doc: /* Return the byteorder for the machine. 2968 doc: /* Return the byteorder for the machine.
2956Returns 66 (ASCII uppercase B) for big endian machines or 108 (ASCII 2969Returns 66 (ASCII uppercase B) for big endian machines or 108 (ASCII
2957lowercase l) for small endian machines. */) 2970lowercase l) for small endian machines. */
2971 attributes: const)
2958 (void) 2972 (void)
2959{ 2973{
2960 unsigned i = 0x04030201; 2974 unsigned i = 0x04030201;