Changeset 8548


Ignore:
Timestamp:
02/12/05 03:30:32 (17 years ago)
Author:
piso
Message:

Work in progress.

Location:
trunk/j/src/org/armedbear/lisp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/fdefinition.lisp

    r8531 r8548  
    22;;;
    33;;; Copyright (C) 2005 Peter Graves
    4 ;;; $Id: fdefinition.lisp,v 1.1 2005-02-11 19:34:01 piso Exp $
     4;;; $Id: fdefinition.lisp,v 1.2 2005-02-12 03:29:33 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    5454         (setf (get (cadr name) '%SETF-FUNCTION) function))
    5555        (t
    56          (error 'type-error "~S is not a valid function name." name))))
     56         (error 'type-error "~S is not a valid function name." name)))
     57  (when (functionp function) ; FIXME Is this test needed?
     58    (%set-lambda-name function name)))
    5759
    5860(defun fdefinition (name)
  • trunk/j/src/org/armedbear/lisp/trace.lisp

    r8506 r8548  
    22;;;
    33;;; Copyright (C) 2003-2005 Peter Graves
    4 ;;; $Id: trace.lisp,v 1.10 2005-02-08 16:43:30 piso Exp $
     4;;; $Id: trace.lisp,v 1.11 2005-02-12 03:30:32 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    5050(defun trace-1 (name breakp)
    5151  (unless (fboundp name)
    52     (error "~S is not the name of a function" name))
     52    (error "~S is not the name of a function." name))
    5353  (if (member name *traced-functions*)
    5454      (%format t "~S is already being traced." name)
    55       (let* ((untraced-function (symbol-function name))
     55      (let* ((untraced-function (fdefinition name))
    5656             (trace-function
    5757              (lambda (&rest args)
Note: See TracChangeset for help on using the changeset viewer.