* Minor fixes.
+2001-05-14 Dirk Herrmann <D.Herrmann@tu-bs.de>
+
+ * configure.in (SCM_DEBUG_DEPRECATED): Always defined.
+
2001-05-13 Thien-Thi Nguyen <ttn@revel.glug.org>
* AUTHORS (Martin Grabmueller, Thien-Thi Nguyen): Update.
Use `identity' instead.
+** Deprecated: -1+
+
+Use `1-' instead.
+
+** Deprecated: return-it
+
+Use `noop' instead.
+
+** Deprecated: string-character-length
+
+Use `string-length' instead.
+
+** Deprecated: flags
+
+Use `logior' instead.
+
** Deprecated: close-all-ports-except.
This was intended for closing ports in a child process after a fork,
gc.c: scm_remember
string.c: scm_makstr
- remove deprecated procedures:
- boot-9.scm: eval-in-module, id
+ boot-9.scm: eval-in-module, id, -1+, return-it, string-character-length,
+ flags
- remove deprecated macros: SCM_OUTOFRANGE, SCM_NALLOC, SCM_HUP_SIGNAL,
SCM_INT_SIGNAL, SCM_FPE_SIGNAL, SCM_BUS_SIGNAL, SCM_SEGV_SIGNAL,
SCM_ALRM_SIGNAL, SCM_GC_SIGNAL, SCM_TICK_SIGNAL, SCM_SIG_ORD,
[ --disable-deprecated omit deprecated features [no]])
if test "$enable_deprecated" = no; then
- AC_DEFINE(SCM_DEBUG_DEPRECATED)
+ AC_DEFINE(SCM_DEBUG_DEPRECATED, 1)
else
if test "$enable_deprecated" = yes || test "$enable_deprecated" = ""; then
warn_default=summary
else
warn_default=$enable_deprecated
fi
+ AC_DEFINE(SCM_DEBUG_DEPRECATED, 0)
AC_DEFINE_UNQUOTED(GUILE_WARN_DEPRECATED_DEFAULT, "$warn_default")
fi
+2001-05-14 Dirk Herrmann <D.Herrmann@tu-bs.de>
+
+ * boot-9.scm (-1+, return-it, string-character-length, flags):
+ Deprecated.
+
2001-05-11 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
* boot-9.scm: Added `cond-expand' (SRFI-0) for portable feature
(define (identity x) x)
(define (1+ n) (+ n 1))
-(define (-1+ n) (+ n -1))
-(define 1- -1+)
-(define return-it noop)
+(define (1- n) (+ n -1))
(define (and=> value procedure) (and value (procedure value)))
(define (make-hash-table k) (make-vector k '()))
(begin-deprecated
(define (id x)
(issue-deprecation-warning "`id' is deprecated. Use `identity' instead.")
- (identity x)))
-
-;;; apply-to-args is functionally redunant with apply and, worse,
+ (identity x))
+ (define (-1+ n)
+ (issue-deprecation-warning "`-1+' is deprecated. Use `1-' instead.")
+ (1- n))
+ (define (return-it . args)
+ (issue-deprecation-warning "`return-it' is deprecated. Use `noop' instead.")
+ (apply noop args)))
+
+;;; apply-to-args is functionally redundant with apply and, worse,
;;; is less general than apply since it only takes two arguments.
;;;
;;; On the other hand, apply-to-args is a syntacticly convenient way to
(if (even? k) acc (proc acc x))
proc))))
-(define string-character-length string-length)
-
-
-
-;; A convenience function for combining flag bits. Like logior, but
-;; handles the cases of 0 and 1 arguments.
-;;
-(define (flags . args)
- (cond
- ((null? args) 0)
- ((null? (cdr args)) (car args))
- (else (apply logior args))))
+(begin-deprecated
+ (define (string-character-length s)
+ (issue-deprecation-warning "`string-character-length' is deprecated. Use `string-length' instead.")
+ (string-length s))
+ (define (flags . args)
+ (issue-deprecation-warning "`flags' is deprecated. Use `logior' instead.")
+ (apply logior args)))
\f
;;; {Symbol Properties}
(symbol-pset! sym (delq! pair (symbol-pref sym))))))
;;; {General Properties}
+;;;
;; This is a more modern interface to properties. It will replace all
;; other property-like things eventually.
+2001-05-14 Dirk Herrmann <D.Herrmann@tu-bs.de>
+
+ * deprecation.c: Fixed copyright date.
+
+ * deprecation.h (DEPRECATION_H, SCM_DEPRECATION_H): Renamed
+ DEPRECATION_H to SCM_DEPRECATION_H.
+
2001-05-10 Thien-Thi Nguyen <ttn@revel.glug.org>
* guile-doc-snarf.in: Update copyright.
-/* Copyright (C) 1995,1996,1998,1999,2000,2001 Free Software Foundation, Inc.
+/* Copyright (C) 2001 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
/* classes: h_files */
-#ifndef DEPRECATION_H
-#define DEPRECATION_H
-/* Copyright (C) 2001 Free Software Foundation, Inc.
+#ifndef SCM_DEPRECATION_H
+#define SCM_DEPRECATION_H
+/* Copyright (C) 2001 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
void scm_init_deprecation (void);
-#endif /* DEPRECATION_H */
+#endif /* SCM_DEPRECATION_H */
/*
Local Variables: