changeset 3497:45671f160bd5

[xemacs-hg @ 2006-07-08 09:17:59 by aidan] Style change in subr-name.
author aidan
date Sat, 08 Jul 2006 09:18:01 +0000
parents d08f0a2c8722
children b03fc4eae965
files src/ChangeLog src/symbols.c
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Fri Jul 07 23:01:11 2006 +0000
+++ b/src/ChangeLog	Sat Jul 08 09:18:01 2006 +0000
@@ -1,3 +1,9 @@
+2006-07-08  Aidan Kehoe  <kehoea@parhasard.net>
+
+	* symbols.c (Fsubr_name):
+	Use the CHECK_SUBR macro instead of the GNU code's explicit if
+	statement.
+
 2006-07-08  Aidan Kehoe  <kehoea@parhasard.net>
 
 	* charset.h:
--- a/src/symbols.c	Fri Jul 07 23:01:11 2006 +0000
+++ b/src/symbols.c	Sat Jul 08 09:18:01 2006 +0000
@@ -726,8 +726,8 @@
        (subr))
 {
   const char *name;
-  if (!SUBRP (subr))
-    wrong_type_argument (Qsubrp, subr);
+  CHECK_SUBR (subr);
+
   name = XSUBR (subr)->name;
   return make_string ((const Ibyte *)name, strlen (name));
 }