Changeset 15708 in project


Ignore:
Timestamp:
09/01/09 20:55:26 (10 years ago)
Author:
felix winkelmann
Message:

deprecated for-each[-argv]-line; bumped version to 4.1.7

Location:
chicken/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • chicken/trunk/NEWS

    r15647 r15708  
     14.1.7
     2
     3- `for-each-line' and `for-each-argv-line' have been deprecated
     4
     5
    164.1.6
    27
  • chicken/trunk/README

    r15646 r15708  
    44  (c) 2008-2009, The Chicken Team
    55
    6   version 4.1.6
     6  version 4.1.7
    77
    88
  • chicken/trunk/buildversion

    r15646 r15708  
    1 4.1.6
     14.1.7
  • chicken/trunk/manual/The User's Manual

    r15646 r15708  
    77</nowiki>
    88
    9 This is the manual for Chicken Scheme, version 4.1.6
     9This is the manual for Chicken Scheme, version 4.1.7
    1010
    1111; [[Getting started]] : What is CHICKEN and how do I use it?
  • chicken/trunk/manual/Unit utils

    r15275 r15708  
    2121but signals an error if the invoked program should return a nonzero
    2222exit status.
    23 
    24 === Iterating over input lines and files
    25 
    26 ==== for-each-line
    27 
    28  [procedure] (for-each-line PROCEDURE [PORT])
    29 
    30 Calls {{PROCEDURE}} for each line read from {{PORT}} (which defaults to the
    31 value of {{(current-input-port)}}. The argument passed to {{PROCEDURE}}
    32 is a string with the contents of the line, excluding any line-terminators.
    33 When all input has been read from the port, {{for-each-line}} returns some unspecified value.
    34 
    35 ==== for-each-argv-line
    36 
    37  [procedure] (for-each-argv-line PROCEDURE)
    38 
    39 Opens each file listed on the command line in order, passing one line
    40 at a time into {{PROCEDURE}}.  The filename {{-}} is interpreted as
    41 {{(current-input-port)}}.  If no arguments are given on the command line
    42 it again uses the value of {{(current-input-port)}}. During execution of
    43 {{PROCEDURE}}, the current input port will be correctly bound to
    44 the current input source.
    45 
    46 This code will act as a simple Unix cat(1) command:
    47 
    48 <enscript highlight=scheme>
    49 (for-each-argv-line print)
    50 </enscript>
    51 
    5223
    5324=== Reading a file's contents
  • chicken/trunk/types.db

    r15601 r15708  
    13681368;; utils
    13691369
    1370 (for-each-argv-line (procedure for-each-argv-line ((procedure (string) . *)) undefined))
    1371 (for-each-line (procedure for-each-line ((procedure (string) . *) #!optional port) undefined))
     1370(for-each-argv-line deprecated)
     1371(for-each-line deprecated)
    13721372(read-all (procedure read-all (#!optional (or port string)) string))
    13731373(system* (procedure system* (string #!rest) undefined))
  • chicken/trunk/utils.scm

    r15561 r15708  
    11;;;; utils.scm - Utilities for scripting and file stuff
    22;
     3; Copyright (c) 2008-2009, The Chicken Team
    34; Copyright (c) 2000-2007, Felix L. Winkelmann
    4 ; Copyright (c) 2008-2009, The Chicken Team
    55; All rights reserved.
    66;
     
    6767;;; Handy I/O procedures:
    6868
    69 (define for-each-line
     69(define for-each-line                   ; DEPRECATED
    7070  (let ([read-line read-line])
    7171    (lambda (proc . port)
     
    8181;; This one is from William Annis:
    8282
    83 (define (for-each-argv-line thunk)
     83(define (for-each-argv-line thunk)      ; DEPRECATED
    8484  (define (file-iterator file thunk)
    8585    (if (string=? file "-")
  • chicken/trunk/version.scm

    r15646 r15708  
    1 (define-constant +build-version+ "4.1.6")
     1(define-constant +build-version+ "4.1.7")
Note: See TracChangeset for help on using the changeset viewer.