changeset 373:7c6f74ef31a3

*** empty log message ***
author Richard M. Stallman <rms@gnu.org>
date Sun, 04 Aug 1991 21:39:58 +0000
parents 481e29c1e27e
children fe53e897c427
files src/lread.c src/print.c
diffstat 2 files changed, 10 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/lread.c	Fri Aug 02 02:24:35 1991 +0000
+++ b/src/lread.c	Sun Aug 04 21:39:58 1991 +0000
@@ -791,6 +791,15 @@
       }
 
     case '#':
+      c = READCHAR;
+      if (c == '[')
+	{
+	  /* Accept compiled functions at read-time so that we don't have to
+	     build them using function calls.  */
+	  Lisp_Object tmp = read_vector (readcharfun);
+	  return Fmake_byte_code (XVECTOR(tmp)->size, XVECTOR (tmp)->contents);
+	}
+      UNREAD (c);
       return Fsignal (Qinvalid_read_syntax, Fcons (make_string ("#", 1), Qnil));
 
     case ';':
--- a/src/print.c	Fri Aug 02 02:24:35 1991 +0000
+++ b/src/print.c	Sun Aug 04 21:39:58 1991 +0000
@@ -805,7 +805,7 @@
       break;
 
     case Lisp_Compiled:
-      strout ("#<byte-code ", -1, printcharfun);
+      strout ("#", -1, printcharfun);
     case Lisp_Vector:
       PRINTCHAR ('[');
       {
@@ -819,8 +819,6 @@
 	  }
       }
       PRINTCHAR (']');
-      if (XTYPE (obj) == Lisp_Compiled)
-	PRINTCHAR ('>');
       break;
 
 #ifndef standalone