Mercurial > hg > xemacs-beta
comparison src/eval.c @ 149:538048ae2ab8 r20-3b1
Import from CVS: tag r20-3b1
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:36:16 +0200 |
parents | 9f59509498e1 |
children | 25f70ba0133c |
comparison
equal
deleted
inserted
replaced
148:f659db2a1f73 | 149:538048ae2ab8 |
---|---|
2483 /* note that this is continuable. */ | 2483 /* note that this is continuable. */ |
2484 Fsignal (Qquit, Qnil); | 2484 Fsignal (Qquit, Qnil); |
2485 } | 2485 } |
2486 | 2486 |
2487 | 2487 |
2488 DEFUN ("strerror", Fstrerror, 1, 1, 0, /* | |
2489 Return the error string associated with integer ERRNUM. | |
2490 This function is an interface to strerror(3). | |
2491 The returned string may or may not be translated. | |
2492 */ | |
2493 (errnum)) | |
2494 { | |
2495 CHECK_INT (errnum); | |
2496 return build_ext_string (strerror (XINT (errnum)), FORMAT_NATIVE); | |
2497 } | |
2498 | |
2499 | |
2488 /**********************************************************************/ | 2500 /**********************************************************************/ |
2489 /* User commands */ | 2501 /* User commands */ |
2490 /**********************************************************************/ | 2502 /**********************************************************************/ |
2491 | 2503 |
2492 DEFUN ("commandp", Fcommandp, 1, 1, 0, /* | 2504 DEFUN ("commandp", Fcommandp, 1, 1, 0, /* |
2519 return Qnil; | 2531 return Qnil; |
2520 | 2532 |
2521 /* Emacs primitives are interactive if their DEFUN specifies an | 2533 /* Emacs primitives are interactive if their DEFUN specifies an |
2522 interactive spec. */ | 2534 interactive spec. */ |
2523 if (SUBRP (fun)) | 2535 if (SUBRP (fun)) |
2524 { | 2536 return XSUBR (fun)->prompt ? Qt : Qnil; |
2525 if (XSUBR (fun)->prompt) | 2537 |
2526 return Qt; | 2538 if (COMPILED_FUNCTIONP (fun)) |
2527 else | 2539 return XCOMPILED_FUNCTION (fun)->flags.interactivep ? Qt : Qnil; |
2528 return Qnil; | |
2529 } | |
2530 | |
2531 else if (COMPILED_FUNCTIONP (fun)) | |
2532 { | |
2533 return (((XCOMPILED_FUNCTION (fun)->flags.interactivep) ? Qt : Qnil)); | |
2534 } | |
2535 | 2540 |
2536 /* Strings and vectors are keyboard macros. */ | 2541 /* Strings and vectors are keyboard macros. */ |
2537 if (VECTORP (fun) || STRINGP (fun)) | 2542 if (VECTORP (fun) || STRINGP (fun)) |
2538 return Qt; | 2543 return Qt; |
2539 | 2544 |
5132 DEFSUBR (Funwind_protect); | 5137 DEFSUBR (Funwind_protect); |
5133 DEFSUBR (Fcondition_case); | 5138 DEFSUBR (Fcondition_case); |
5134 DEFSUBR (Fcall_with_condition_handler); | 5139 DEFSUBR (Fcall_with_condition_handler); |
5135 DEFSUBR (Fsignal); | 5140 DEFSUBR (Fsignal); |
5136 DEFSUBR (Finteractive_p); | 5141 DEFSUBR (Finteractive_p); |
5142 DEFSUBR (Fstrerror); | |
5137 DEFSUBR (Fcommandp); | 5143 DEFSUBR (Fcommandp); |
5138 DEFSUBR (Fcommand_execute); | 5144 DEFSUBR (Fcommand_execute); |
5139 DEFSUBR (Fautoload); | 5145 DEFSUBR (Fautoload); |
5140 DEFSUBR (Feval); | 5146 DEFSUBR (Feval); |
5141 DEFSUBR (Fapply); | 5147 DEFSUBR (Fapply); |