* filesys.c (scm_stat): Slightly optimized.
[bpt/guile.git] / libguile / mallocs.c
index 78dd763..b2f48cd 100644 (file)
@@ -1,6 +1,6 @@
 /* classes: src_files */
 
-/*     Copyright (C) 1995 Free Software Foundation, Inc.
+/*     Copyright (C) 1995, 1997 Free Software Foundation, Inc.
  * 
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -14,8 +14,8 @@
  * 
  * You should have received a copy of the GNU General Public License
  * along with this software; see the file COPYING.  If not, write to
- * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
- */
+ * the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307 USA */
 
 \f
 
@@ -58,9 +58,9 @@ prinmalloc (exp, port, pstate)
      SCM port;
      scm_print_state *pstate;
 {
-  scm_gen_puts(scm_regular_string, "#<malloc ", port);
+  scm_puts("#<malloc ", port);
   scm_intprint(SCM_CDR(exp), 16, port);
-  scm_gen_putc('>', port);
+  scm_putc('>', port);
   return 1;
 }
 
@@ -88,8 +88,8 @@ scm_malloc_obj (n)
       SCM_ALLOW_INTS;
       return SCM_BOOL_F;
     }
-  SCM_CDR (answer) = mem;
-  SCM_CAR (answer) = scm_tc16_malloc;
+  SCM_SETCDR (answer, mem);
+  SCM_SETCAR (answer, scm_tc16_malloc);
   SCM_ALLOW_INTS;
   return answer;
 }