Check-in [407e6d1b0a]
Not logged in
Overview
SHA1:407e6d1b0a1dcf9e7dfd578bece4fc092753406d
Date: 2000-03-25 20:59:12
User: johannes@zellner.org
Comment:Sat Mar 25 21:58:26 CET 2000
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2000-07-01
14:23
[9e7c008b8c] small fix in the completer so that it completes options (public variables) for itcl. (user: johannes@zellner.org, tags: trunk)
2000-03-25
20:59
[407e6d1b0a] Sat Mar 25 21:58:26 CET 2000 (user: johannes@zellner.org, tags: trunk)
2000-03-24
00:54
[c109e296c3] Fri Mar 24 01:54:51 CET 2000 (user: johannes@zellner.org, tags: trunk)
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Added COPYING version [2947267e1c].

            1  +   
            2  +   Copyright (c) 1998 - 2000, Johannes Zellner <johannes@zellner.org>
            3  +   All rights reserved.
            4  +   
            5  +   Redistribution and use in source and binary forms, with or without
            6  +   modification, are permitted provided that the following conditions
            7  +   are met:
            8  +   
            9  +     * Redistributions of source code must retain the above copyright
           10  +       notice, this list of conditions and the following disclaimer.
           11  +     * Redistributions in binary form must reproduce the above copyright
           12  +       notice, this list of conditions and the following disclaimer in the
           13  +       documentation and/or other materials provided with the distribution.
           14  +     * Neither the name of Johannes Zellner nor the names of contributors
           15  +       to this software may be used to endorse or promote products derived
           16  +       from this software without specific prior written permission.
           17  +       
           18  +   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
           19  +   ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
           20  +   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
           21  +   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
           22  +   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
           23  +   EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
           24  +   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
           25  +   PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
           26  +   LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
           27  +   NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
           28  +   SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
           29  +

Deleted GPL version [4238e547f1].

     1         -GNU GENERAL PUBLIC LICENSE
     2         -
     3         -Version 2, June 1991
     4         -
     5         -Copyright (C) 1989, 1991 Free Software Foundation, Inc.
     6         -59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
     7         -
     8         -Everyone is permitted to copy and distribute verbatim copies
     9         -of this license document, but changing it is not allowed.
    10         -
    11         -Preamble
    12         -
    13         -The licenses for most software are designed to take away your freedom to
    14         -share and change it. By contrast, the GNU General Public License is intended
    15         -to guarantee your freedom to share and change free software--to make sure
    16         -the software is free for all its users. This General Public License applies
    17         -to most of the Free Software Foundation's software and to any other program
    18         -whose authors commit to using it. (Some other Free Software Foundation
    19         -software is covered by the GNU Library General Public License instead.) You
    20         -can apply it to your programs, too.
    21         -
    22         -When we speak of free software, we are referring to freedom, not price. Our
    23         -General Public Licenses are designed to make sure that you have the freedom
    24         -to distribute copies of free software (and charge for this service if you
    25         -wish), that you receive source code or can get it if you want it, that you
    26         -can change the software or use pieces of it in new free programs; and that
    27         -you know you can do these things.
    28         -
    29         -To protect your rights, we need to make restrictions that forbid anyone to
    30         -deny you these rights or to ask you to surrender the rights. These
    31         -restrictions translate to certain responsibilities for you if you distribute
    32         -copies of the software, or if you modify it.
    33         -
    34         -For example, if you distribute copies of such a program, whether gratis or
    35         -for a fee, you must give the recipients all the rights that you have. You
    36         -must make sure that they, too, receive or can get the source code. And you
    37         -must show them these terms so they know their rights.
    38         -
    39         -We protect your rights with two steps: (1) copyright the software, and (2)
    40         -offer you this license which gives you legal permission to copy, distribute
    41         -and/or modify the software.
    42         -
    43         -Also, for each author's protection and ours, we want to make certain that
    44         -everyone understands that there is no warranty for this free software. If
    45         -the software is modified by someone else and passed on, we want its
    46         -recipients to know that what they have is not the original, so that any
    47         -problems introduced by others will not reflect on the original authors'
    48         -reputations.
    49         -
    50         -Finally, any free program is threatened constantly by software patents. We
    51         -wish to avoid the danger that redistributors of a free program will
    52         -individually obtain patent licenses, in effect making the program
    53         -proprietary. To prevent this, we have made it clear that any patent must be
    54         -licensed for everyone's free use or not licensed at all.
    55         -
    56         -The precise terms and conditions for copying, distribution and modification
    57         -follow.
    58         -
    59         -TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
    60         -
    61         -0. This License applies to any program or other work which contains a notice
    62         -placed by the copyright holder saying it may be distributed under the terms
    63         -of this General Public License. The "Program", below, refers to any such
    64         -program or work, and a "work based on the Program" means either the Program
    65         -or any derivative work under copyright law: that is to say, a work
    66         -containing the Program or a portion of it, either verbatim or with
    67         -modifications and/or translated into another language. (Hereinafter,
    68         -translation is included without limitation in the term "modification".) Each
    69         -licensee is addressed as "you".
    70         -
    71         -Activities other than copying, distribution and modification are not covered
    72         -by this License; they are outside its scope. The act of running the Program
    73         -is not restricted, and the output from the Program is covered only if its
    74         -contents constitute a work based on the Program (independent of having been
    75         -made by running the Program). Whether that is true depends on what the
    76         -Program does.
    77         -
    78         -1. You may copy and distribute verbatim copies of the Program's source code
    79         -as you receive it, in any medium, provided that you conspicuously and
    80         -appropriately publish on each copy an appropriate copyright notice and
    81         -disclaimer of warranty; keep intact all the notices that refer to this
    82         -License and to the absence of any warranty; and give any other recipients of
    83         -the Program a copy of this License along with the Program.
    84         -
    85         -You may charge a fee for the physical act of transferring a copy, and you
    86         -may at your option offer warranty protection in exchange for a fee.
    87         -
    88         -2. You may modify your copy or copies of the Program or any portion of it,
    89         -thus forming a work based on the Program, and copy and distribute such
    90         -modifications or work under the terms of Section 1 above, provided that you
    91         -also meet all of these conditions:
    92         -
    93         -   * a) You must cause the modified files to carry prominent notices stating
    94         -     that you changed the files and the date of any change.
    95         -
    96         -   * b) You must cause any work that you distribute or publish, that in
    97         -     whole or in part contains or is derived from the Program or any part
    98         -     thereof, to be licensed as a whole at no charge to all third parties
    99         -     under the terms of this License.
   100         -
   101         -   * c) If the modified program normally reads commands interactively when
   102         -     run, you must cause it, when started running for such interactive use
   103         -     in the most ordinary way, to print or display an announcement including
   104         -     an appropriate copyright notice and a notice that there is no warranty
   105         -     (or else, saying that you provide a warranty) and that users may
   106         -     redistribute the program under these conditions, and telling the user
   107         -     how to view a copy of this License. (Exception: if the Program itself
   108         -     is interactive but does not normally print such an announcement, your
   109         -     work based on the Program is not required to print an announcement.)
   110         -
   111         -These requirements apply to the modified work as a whole. If identifiable
   112         -sections of that work are not derived from the Program, and can be
   113         -reasonably considered independent and separate works in themselves, then
   114         -this License, and its terms, do not apply to those sections when you
   115         -distribute them as separate works. But when you distribute the same sections
   116         -as part of a whole which is a work based on the Program, the distribution of
   117         -the whole must be on the terms of this License, whose permissions for other
   118         -licensees extend to the entire whole, and thus to each and every part
   119         -regardless of who wrote it.
   120         -
   121         -Thus, it is not the intent of this section to claim rights or contest your
   122         -rights to work written entirely by you; rather, the intent is to exercise
   123         -the right to control the distribution of derivative or collective works
   124         -based on the Program.
   125         -
   126         -In addition, mere aggregation of another work not based on the Program with
   127         -the Program (or with a work based on the Program) on a volume of a storage
   128         -or distribution medium does not bring the other work under the scope of this
   129         -License.
   130         -
   131         -3. You may copy and distribute the Program (or a work based on it, under
   132         -Section 2) in object code or executable form under the terms of Sections 1
   133         -and 2 above provided that you also do one of the following:
   134         -
   135         -   * a) Accompany it with the complete corresponding machine-readable source
   136         -     code, which must be distributed under the terms of Sections 1 and 2
   137         -     above on a medium customarily used for software interchange; or,
   138         -
   139         -   * b) Accompany it with a written offer, valid for at least three years,
   140         -     to give any third party, for a charge no more than your cost of
   141         -     physically performing source distribution, a complete machine-readable
   142         -     copy of the corresponding source code, to be distributed under the
   143         -     terms of Sections 1 and 2 above on a medium customarily used for
   144         -     software interchange; or,
   145         -
   146         -   * c) Accompany it with the information you received as to the offer to
   147         -     distribute corresponding source code. (This alternative is allowed only
   148         -     for noncommercial distribution and only if you received the program in
   149         -     object code or executable form with such an offer, in accord with
   150         -     Subsection b above.)
   151         -
   152         -The source code for a work means the preferred form of the work for making
   153         -modifications to it. For an executable work, complete source code means all
   154         -the source code for all modules it contains, plus any associated interface
   155         -definition files, plus the scripts used to control compilation and
   156         -installation of the executable. However, as a special exception, the source
   157         -code distributed need not include anything that is normally distributed (in
   158         -either source or binary form) with the major components (compiler, kernel,
   159         -and so on) of the operating system on which the executable runs, unless that
   160         -component itself accompanies the executable.
   161         -
   162         -If distribution of executable or object code is made by offering access to
   163         -copy from a designated place, then offering equivalent access to copy the
   164         -source code from the same place counts as distribution of the source code,
   165         -even though third parties are not compelled to copy the source along with
   166         -the object code.
   167         -
   168         -4. You may not copy, modify, sublicense, or distribute the Program except as
   169         -expressly provided under this License. Any attempt otherwise to copy,
   170         -modify, sublicense or distribute the Program is void, and will automatically
   171         -terminate your rights under this License. However, parties who have received
   172         -copies, or rights, from you under this License will not have their licenses
   173         -terminated so long as such parties remain in full compliance.
   174         -
   175         -5. You are not required to accept this License, since you have not signed
   176         -it. However, nothing else grants you permission to modify or distribute the
   177         -Program or its derivative works. These actions are prohibited by law if you
   178         -do not accept this License. Therefore, by modifying or distributing the
   179         -Program (or any work based on the Program), you indicate your acceptance of
   180         -this License to do so, and all its terms and conditions for copying,
   181         -distributing or modifying the Program or works based on it.
   182         -
   183         -6. Each time you redistribute the Program (or any work based on the
   184         -Program), the recipient automatically receives a license from the original
   185         -licensor to copy, distribute or modify the Program subject to these terms
   186         -and conditions. You may not impose any further restrictions on the
   187         -recipients' exercise of the rights granted herein. You are not responsible
   188         -for enforcing compliance by third parties to this License.
   189         -
   190         -7. If, as a consequence of a court judgment or allegation of patent
   191         -infringement or for any other reason (not limited to patent issues),
   192         -conditions are imposed on you (whether by court order, agreement or
   193         -otherwise) that contradict the conditions of this License, they do not
   194         -excuse you from the conditions of this License. If you cannot distribute so
   195         -as to satisfy simultaneously your obligations under this License and any
   196         -other pertinent obligations, then as a consequence you may not distribute
   197         -the Program at all. For example, if a patent license would not permit
   198         -royalty-free redistribution of the Program by all those who receive copies
   199         -directly or indirectly through you, then the only way you could satisfy both
   200         -it and this License would be to refrain entirely from distribution of the
   201         -Program.
   202         -
   203         -If any portion of this section is held invalid or unenforceable under any
   204         -particular circumstance, the balance of the section is intended to apply and
   205         -the section as a whole is intended to apply in other circumstances.
   206         -
   207         -It is not the purpose of this section to induce you to infringe any patents
   208         -or other property right claims or to contest validity of any such claims;
   209         -this section has the sole purpose of protecting the integrity of the free
   210         -software distribution system, which is implemented by public license
   211         -practices. Many people have made generous contributions to the wide range of
   212         -software distributed through that system in reliance on consistent
   213         -application of that system; it is up to the author/donor to decide if he or
   214         -she is willing to distribute software through any other system and a
   215         -licensee cannot impose that choice.
   216         -
   217         -This section is intended to make thoroughly clear what is believed to be a
   218         -consequence of the rest of this License.
   219         -
   220         -8. If the distribution and/or use of the Program is restricted in certain
   221         -countries either by patents or by copyrighted interfaces, the original
   222         -copyright holder who places the Program under this License may add an
   223         -explicit geographical distribution limitation excluding those countries, so
   224         -that distribution is permitted only in or among countries not thus excluded.
   225         -In such case, this License incorporates the limitation as if written in the
   226         -body of this License.
   227         -
   228         -9. The Free Software Foundation may publish revised and/or new versions of
   229         -the General Public License from time to time. Such new versions will be
   230         -similar in spirit to the present version, but may differ in detail to
   231         -address new problems or concerns.
   232         -
   233         -Each version is given a distinguishing version number. If the Program
   234         -specifies a version number of this License which applies to it and "any
   235         -later version", you have the option of following the terms and conditions
   236         -either of that version or of any later version published by the Free
   237         -Software Foundation. If the Program does not specify a version number of
   238         -this License, you may choose any version ever published by the Free Software
   239         -Foundation.
   240         -
   241         -10. If you wish to incorporate parts of the Program into other free programs
   242         -whose distribution conditions are different, write to the author to ask for
   243         -permission. For software which is copyrighted by the Free Software
   244         -Foundation, write to the Free Software Foundation; we sometimes make
   245         -exceptions for this. Our decision will be guided by the two goals of
   246         -preserving the free status of all derivatives of our free software and of
   247         -promoting the sharing and reuse of software generally.
   248         -
   249         -NO WARRANTY
   250         -
   251         -11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR
   252         -THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
   253         -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
   254         -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
   255         -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
   256         -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO
   257         -THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM
   258         -PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR
   259         -CORRECTION.
   260         -
   261         -12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
   262         -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
   263         -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
   264         -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
   265         -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO
   266         -LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR
   267         -THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
   268         -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
   269         -POSSIBILITY OF SUCH DAMAGES.
   270         -
   271         -END OF TERMS AND CONDITIONS
   272         -
   273         -How to Apply These Terms to Your New Programs
   274         -
   275         -If you develop a new program, and you want it to be of the greatest possible
   276         -use to the public, the best way to achieve this is to make it free software
   277         -which everyone can redistribute and change under these terms.
   278         -
   279         -To do so, attach the following notices to the program. It is safest to
   280         -attach them to the start of each source file to most effectively convey the
   281         -exclusion of warranty; and each file should have at least the "copyright"
   282         -line and a pointer to where the full notice is found.
   283         -
   284         -one line to give the program's name and an idea of what it does.
   285         -Copyright (C) yyyy  name of author
   286         -
   287         -This program is free software; you can redistribute it and/or
   288         -modify it under the terms of the GNU General Public License
   289         -as published by the Free Software Foundation; either version 2
   290         -of the License, or (at your option) any later version.
   291         -
   292         -This program is distributed in the hope that it will be useful,
   293         -but WITHOUT ANY WARRANTY; without even the implied warranty of
   294         -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   295         -GNU General Public License for more details.
   296         -
   297         -You should have received a copy of the GNU General Public License
   298         -along with this program; if not, write to the Free Software
   299         -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
   300         -
   301         -Also add information on how to contact you by electronic and paper mail.
   302         -
   303         -If the program is interactive, make it output a short notice like this when
   304         -it starts in an interactive mode:
   305         -
   306         -Gnomovision version 69, Copyright (C) yyyy name of author
   307         -Gnomovision comes with ABSOLUTELY NO WARRANTY; for details
   308         -type `show w'.  This is free software, and you are welcome
   309         -to redistribute it under certain conditions; type `show c'
   310         -for details.
   311         -
   312         -The hypothetical commands `show w' and `show c' should show the appropriate
   313         -parts of the General Public License. Of course, the commands you use may be
   314         -called something other than `show w' and `show c'; they could even be
   315         -mouse-clicks or menu items--whatever suits your program.
   316         -
   317         -You should also get your employer (if you work as a programmer) or your
   318         -school, if any, to sign a "copyright disclaimer" for the program, if
   319         -necessary. Here is a sample; alter the names:
   320         -
   321         -Yoyodyne, Inc., hereby disclaims all copyright
   322         -interest in the program `Gnomovision'
   323         -(which makes passes at compilers) written
   324         -by James Hacker.
   325         -
   326         -signature of Ty Coon, 1 April 1989
   327         -Ty Coon, President of Vice
   328         -
   329         -This General Public License does not permit incorporating your program into
   330         -proprietary programs. If your program is a subroutine library, you may
   331         -consider it more useful to permit linking proprietary applications with the
   332         -library. If this is what you want to do, use the GNU Library General Public
   333         -License instead of this License.
   334         -  ------------------------------------------------------------------------
   335         -Return to GNU's home page.
   336         -
   337         -FSF & GNU inquiries & questions to gnu@gnu.org. Other ways to contact the
   338         -FSF.
   339         -
   340         -Comments on these web pages to webmasters@www.gnu.org, send other questions
   341         -to gnu@gnu.org.
   342         -
   343         -Copyright notice above.
   344         -Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   345         -02111, USA

Modified Makefile.in from [95cc97e627] to [9a60e3319f].

     1      1   # -*- make -*-
     2         -# FILE: "/disk01/home/joze/src/tclreadline/Makefile.in"
     3         -# LAST MODIFICATION: "Fri, 24 Mar 2000 01:54:49 +0100 (joze)"
            2  +# FILE: "/home/joze/src/tclreadline/Makefile.in"
            3  +# LAST MODIFICATION: "Sat, 25 Mar 2000 20:50:24 +0100 (joze)"
     4      4   # (C) 1998 - 2000 by Johannes Zellner, <johannes@zellner.org>
     5      5   # $Id$
     6      6   # ---
     7      7   #
     8      8   # tclreadline -- gnu readline for tcl
     9         -# Copyright (C) 1998 - 2000 by Johannes Zellner
    10         -#
    11         -# This program is free software; you can redistribute it and/or
    12         -# modify it under the terms of the GNU General Public License
    13         -# as published by the Free Software Foundation; either version 2
    14         -# of the License, or (at your option) any later version.
            9  +# http://www.zellner.org/tclreadline/
           10  +# Copyright (c) 1998 - 2000, Johannes Zellner <johannes@zellner.org>
    15     11   #
    16         -# This program is distributed in the hope that it will be useful,
    17         -# but WITHOUT ANY WARRANTY; without even the implied warranty of
    18         -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    19         -# GNU General Public License for more details.
    20         -#
    21         -# You should have received a copy of the GNU General Public License
    22         -# along with this program; if not, write to the Free Software
    23         -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    24         -#
    25         -# johannes@zellner.org
    26         -# http://www.zellner.org/tclreadline/
           12  +# This software is copyright under the BSD license.
    27     13   #
    28     14   # ================================================================== 
    29     15   
    30     16   
    31     17   MAJOR_VERSION = @TCLREADLINE_MAJOR_VERSION@
    32     18   MINOR_VERSION = @TCLREADLINE_MINOR_VERSION@
    33     19   VERSION       = @TCLREADLINE_VERSION@
................................................................................
   164    150   
   165    151   OBJS = tclreadline.o
   166    152   
   167    153   CSRCS = $(TOP_DIR)/tclreadline.c
   168    154   TCLFILES = tclreadlineInit.tcl tclreadlineSetup.tcl tclreadlineCompleter.tcl
   169    155   
   170    156   SOURCES = \
   171         -    GPL \
          157  +    COPYING \
   172    158       AUTHORS \
   173    159       Makefile.in \
   174    160       README \
   175    161       configure.in \
   176    162       pkgIndex.tcl.in \
   177    163       sample.tclshrc \
   178    164       sources \

Modified README from [a59b6fbfd8] to [491abac1ff].

            1  +FILE: "/home/joze/src/tclreadline/README"
            2  +LAST MODIFICATION: "Sat, 25 Mar 2000 21:47:01 +0100 (joze)"
            3  +(C) 1998 - 2000 by Johannes Zellner, <johannes@zellner.org>
            4  +$Id$
            5  +---
     1      6   
     2         -    FILE: "/home/joze/src/tclreadline/README"
     3         -    LAST MODIFICATION: "Thu, 23 Mar 2000 21:16:15 +0100 (joze)"
     4         -    (C) 1998 - 2000 by Johannes Zellner, <johannes@zellner.org>
     5         -    $Id$
     6         -    ---
            7  +tclreadline -- gnu readline for tcl
            8  +http://www.zellner.org/tclreadline/
            9  +Copyright (c) 1998 - 2000, Johannes Zellner <johannes@zellner.org>
     7     10   
     8         -    tclreadline -- gnu readline for tcl
     9         -    Copyright (C) 1998 - 2000 by Johannes Zellner
    10         -
    11         -    This program is free software; you can redistribute it and/or
    12         -    modify it under the terms of the GNU General Public License
    13         -    as published by the Free Software Foundation; either version 2
    14         -    of the License, or (at your option) any later version.
    15         -
    16         -    This program is distributed in the hope that it will be useful,
    17         -    but WITHOUT ANY WARRANTY; without even the implied warranty of
    18         -    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    19         -    GNU General Public License for more details.
    20         -
    21         -    You should have received a copy of the GNU General Public License
    22         -    along with this program; if not, write to the Free Software
    23         -    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    24         -
    25         -    <johannes@zellner.org>, http://www.zellner.org/tclreadline/
           11  +This software is copyright under the BSD license.
    26     12   
    27     13   
    28     14   tclreadline
    29     15   
    30     16   
    31     17   1. Introduction
    32     18   ---------------
................................................................................
    91     77   start your favorite interpreter. The tclreadlineSetup.tcl script
    92     78   does the rest.
    93     79   
    94     80   
    95     81   4. History and Changes.
    96     82   -----------------------
    97     83   
           84  +tclreadline-1.2 0: (Mar 2000)
           85  +	switched to a BSD type license, introduced a new read-only
           86  +	variable `license' in the tclreadline namespace.
           87  +
           88  +tclreadline-1.1 0: (Mar 2000)
           89  +	code cleanup and checked that it compiles with tcl8.3
           90  +
    98     91   tclreadline-1.0.1: (Sep 1999)
    99     92   
   100     93   	changes:
   101     94   	    - tclreadline::readline bell.
   102     95             Ring the terminal bell, obeying the setting
   103     96   		  of bell-style -- audible or visible.
   104     97   

Modified TODO from [c2db190709] to [9d3f449783].

     1      1   
     2      2    /* ==================================================================
     3      3      
     4      4       FILE: "/home/joze/src/tclreadline/TODO"
     5         -    LAST MODIFICATION: "Thu, 23 Mar 2000 21:16:21 +0100 (joze)"
            5  +    LAST MODIFICATION: "Sat, 25 Mar 2000 20:46:31 +0100 (joze)"
     6      6       (C) 1998 - 2000 by Johannes Zellner, <johannes@zellner.org>
     7      7       $Id$
     8      8       ---
     9      9   
    10     10       tclreadline -- gnu readline for tcl
    11         -    Copyright (C) 1998 - 2000 by Johannes Zellner
    12         -
    13         -    This program is free software; you can redistribute it and/or
    14         -    modify it under the terms of the GNU General Public License
    15         -    as published by the Free Software Foundation; either version 2
    16         -    of the License, or (at your option) any later version.
           11  +    http://www.zellner.org/tclreadline/
           12  +    Copyright (c) 1998 - 2000, Johannes Zellner <johannes@zellner.org>
    17     13   
    18         -    This program is distributed in the hope that it will be useful,
    19         -    but WITHOUT ANY WARRANTY; without even the implied warranty of
    20         -    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    21         -    GNU General Public License for more details.
    22         -
    23         -    You should have received a copy of the GNU General Public License
    24         -    along with this program; if not, write to the Free Software
    25         -    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    26         -
    27         -    <johannes@zellner.org>, http://www.zellner.org/tclreadline/
           14  +    This software is copyright under the BSD license.
    28     15   
    29     16       ================================================================== */  
    30     17   
    31     18   
    32     19       +  history_truncate_file(int n, char* historyfile)
    33     20          verwenden, um nur eine begrenze Zahl zu schreiben.
    34     21   

Modified config.h.in from [3eba5936c6] to [a5e8c60d77].

     1      1   
     2      2    /* ==================================================================
     3      3      
     4      4       FILE: "/home/joze/src/tclreadline/config.h.in"
     5         -    LAST MODIFICATION: "Thu, 23 Mar 2000 21:16:34 +0100 (joze)"
            5  +    LAST MODIFICATION: "Sat, 25 Mar 2000 20:46:56 +0100 (joze)"
     6      6       (C) 1998 - 2000 by Johannes Zellner, <johannes@zellner.org>
     7      7       $Id$
     8      8       vim:set ft=c:
     9      9       ---
    10     10   
    11     11       tclreadline -- gnu readline for tcl
    12         -    Copyright (C) 1998 - 2000 by Johannes Zellner
    13         -
    14         -    This program is free software; you can redistribute it and/or
    15         -    modify it under the terms of the GNU General Public License
    16         -    as published by the Free Software Foundation; either version 2
    17         -    of the License, or (at your option) any later version.
           12  +    http://www.zellner.org/tclreadline/
           13  +    Copyright (c) 1998 - 2000, Johannes Zellner <johannes@zellner.org>
    18     14   
    19         -    This program is distributed in the hope that it will be useful,
    20         -    but WITHOUT ANY WARRANTY; without even the implied warranty of
    21         -    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    22         -    GNU General Public License for more details.
    23         -
    24         -    You should have received a copy of the GNU General Public License
    25         -    along with this program; if not, write to the Free Software
    26         -    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    27         -
    28         -    johannes@zellner.org
    29         -    http://www.zellner.org/tclreadline/
           15  +    This software is copyright under the BSD license.
    30     16   
    31     17       ================================================================== */  
    32     18   
    33     19   
    34     20   #undef EXECUTING_MACRO_HACK
    35     21   
    36     22   #undef CLEANUP_AFER_SIGNAL
    37     23   
    38     24   #undef READLINE_LIBRARY

Modified configure.in from [f77c7b4ed7] to [3dc2bfd8b1].

     1      1   dnl -*- autoconf -*-
     2      2   dnl FILE: "/home/joze/src/tclreadline/configure.in"
     3         -dnl LAST MODIFICATION: "Thu, 23 Mar 2000 23:26:48 +0100 (joze)"
            3  +dnl LAST MODIFICATION: "Sat, 25 Mar 2000 21:17:25 +0100 (joze)"
     4      4   dnl (C) 1998 - 2000 by Johannes Zellner, <johannes@zellner.org>
     5      5   dnl $Id$
     6      6   dnl ---
     7      7   dnl
     8      8   dnl tclreadline -- gnu readline for tcl
     9         -dnl Copyright (C) 1998 - 2000 by Johannes Zellner
    10         -dnl
    11         -dnl This program is free software; you can redistribute it and/or
    12         -dnl modify it under the terms of the GNU General Public License
    13         -dnl as published by the Free Software Foundation; either version 2
    14         -dnl of the License, or (at your option) any later version.
            9  +dnl http://www.zellner.org/tclreadline/
           10  +dnl Copyright (c) 1998 - 2000, Johannes Zellner <johannes@zellner.org>
    15     11   dnl
    16         -dnl This program is distributed in the hope that it will be useful,
    17         -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
    18         -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    19         -dnl GNU General Public License for more details.
    20         -dnl
    21         -dnl You should have received a copy of the GNU General Public License
    22         -dnl along with this program; if not, write to the Free Software
    23         -dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    24         -dnl
    25         -dnl johannes@zellner.org
    26         -dnl http://www.zellner.org/tclreadline/
           12  +dnl This software is copyright under the BSD license.
    27     13   dnl
    28     14   dnl ================================================================== */  
    29     15   
    30         -dnl	This file is an input file used by the GNU "autoconf" program to
    31         -dnl	generate the file "configure", which is run during Tk installation
    32         -dnl	to configure the system for the local environment.
    33         -
    34     16   
    35     17   AC_INIT(tclreadline.c)
    36     18   AC_CONFIG_HEADER(config.h)
    37     19   AC_PREREQ(2.13)
    38     20   AC_REVISION($Revision$)
    39     21   AC_CONFIG_AUX_DIR(./aux)
    40     22   
    41     23   TCLREADLINE_MAJOR_VERSION=1
    42         -TCLREADLINE_MINOR_VERSION=1
           24  +TCLREADLINE_MINOR_VERSION=2
    43     25   TCLREADLINE_PATCHLEVEL=0
    44     26   TCLREADLINE_VERSION=$TCLREADLINE_MAJOR_VERSION.$TCLREADLINE_MINOR_VERSION
    45     27   TCLREADLINE_PATCHLEVEL_STR=${TCLREADLINE_VERSION}.${TCLREADLINE_PATCHLEVEL}
    46     28   VERSION=$TCLREADLINE_VERSION
    47     29   
    48     30   dnl AM_INIT_AUTOMAKE(tclreadline, $VERSION)
    49     31   
................................................................................
   102     84       for dir in $tk_search $TCL_LIB_DIR /usr/lib /usr/local/lib $exec_prefix/lib /usr/local/lib/unix /opt/tcl/lib; do
   103     85   	if test -r $dir/tkConfig.sh; then
   104     86   	    TK_LIB_DIR=$dir
   105     87   	    break
   106     88   	fi
   107     89       done
   108     90   
   109         -    if test -z "$TK_LIB_DIR"; then
   110         -	AC_MSG_ERROR(Can't find Tk libraries.)
   111         -    else
           91  +    if ! test -z "$TK_LIB_DIR"; then
   112     92   	. $TK_LIB_DIR/tkConfig.sh
   113     93   	AC_MSG_RESULT($TK_LIB_DIR/tkConfig.sh)
   114     94   	AC_MSG_CHECKING([for your tk version])
   115     95   	AC_MSG_RESULT([$TK_VERSION, patchlevel $TK_PATCH_LEVEL])
           96  +	AC_SUBST(TK_LIB_SPEC)
   116     97       fi
   117         -    AC_SUBST(TK_LIB_SPEC)
   118     98   fi
   119     99   
   120    100   #--------------------------------------------------------------------
   121    101   #   Read in configuration information generated by Tcl for shared
   122    102   #   libraries, and arrange for it to be substituted into our
   123    103   #   Makefile.
   124    104   #--------------------------------------------------------------------

Modified pkgIndex.tcl.in from [6c7af61e8f] to [8b23387c17].

     1      1   #!/usr/local/bin/tclsh
     2      2   # FILE: "/home/joze/src/tclreadline/pkgIndex.tcl.in"
     3         -# LAST MODIFICATION: "Thu, 23 Mar 2000 21:13:00 +0100 (joze)"
            3  +# LAST MODIFICATION: "Sat, 25 Mar 2000 20:49:59 +0100 (joze)"
     4      4   # (C) 1998 - 2000 by Johannes Zellner, <johannes@zellner.org>
     5      5   # $Id$
     6      6   # ---
     7      7   #
     8      8   # tclreadline -- gnu readline for tcl
     9         -# Copyright (C) 1998 - 2000 by Johannes Zellner
    10         -#
    11         -# This program is free software; you can redistribute it and/or
    12         -# modify it under the terms of the GNU General Public License
    13         -# as published by the Free Software Foundation; either version 2
    14         -# of the License, or (at your option) any later version.
            9  +# http://www.zellner.org/tclreadline/
           10  +# Copyright (c) 1998 - 2000, Johannes Zellner <johannes@zellner.org>
    15     11   #
    16         -# This program is distributed in the hope that it will be useful,
    17         -# but WITHOUT ANY WARRANTY; without even the implied warranty of
    18         -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    19         -# GNU General Public License for more details.
    20         -#
    21         -# You should have received a copy of the GNU General Public License
    22         -# along with this program; if not, write to the Free Software
    23         -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    24         -#
    25         -# johannes@zellner.org
    26         -# http://www.zellner.org/tclreadline/
           12  +# This software is copyright under the BSD license.
    27     13   #
    28     14   # ================================================================== 
    29     15   
    30     16   package ifneeded tclreadline @TCLREADLINE_VERSION@ \
    31     17       [list source [file join $dir tclreadlineInit.tcl]]

Modified sources from [5758995d88] to [94072838dd].

     1         -    GPL
            1  +    COPYING
     2      2       Makefile.in
     3      3       README
     4      4       configure.in
     5      5       pkgIndex.tcl.in
     6      6       sample.tclshrc
     7      7       sources
     8      8       config.h.in

Modified tclreadline.c from [83f0651eba] to [1174583766].

     1      1   
     2      2    /* ==================================================================
     3      3   
     4      4       FILE: "/home/joze/src/tclreadline/tclreadline.c"
     5         -    LAST MODIFICATION: "Thu, 23 Mar 2000 22:42:52 +0100 (joze)"
            5  +    LAST MODIFICATION: "Sat, 25 Mar 2000 21:40:27 +0100 (joze)"
     6      6       (C) 1998 - 2000 by Johannes Zellner, <johannes@zellner.org>
     7      7       $Id$
     8      8       ---
     9      9   
    10     10       tclreadline -- gnu readline for tcl
    11         -    Copyright (C) 1998 - 2000 by Johannes Zellner
           11  +    http://www.zellner.org/tclreadline/
           12  +    Copyright (c) 1998 - 2000, Johannes Zellner <johannes@zellner.org>
    12     13   
    13         -    This program is free software; you can redistribute it and/or
    14         -    modify it under the terms of the GNU General Public License
    15         -    as published by the Free Software Foundation; either version 2
    16         -    of the License, or (at your option) any later version.
    17         -
    18         -    This program is distributed in the hope that it will be useful,
    19         -    but WITHOUT ANY WARRANTY; without even the implied warranty of
    20         -    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    21         -    GNU General Public License for more details.
    22         -
    23         -    You should have received a copy of the GNU General Public License
    24         -    along with this program; if not, write to the Free Software
    25         -    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    26         -
    27         -    <johannes@zellner.org>, http://www.zellner.org/tclreadline/
           14  +    This software is copyright under the BSD license.
    28     15   
    29     16       ================================================================== */  
    30     17   
    31     18   #ifdef HAVE_CONFIG_H
    32     19   #   include "config.h"
    33     20   #endif
    34     21   
................................................................................
    76     63       char**         cmd;
    77     64       struct cmds_t* next;
    78     65   } cmds_t;
    79     66   
    80     67   
    81     68   #define ISWHITE(c) ((' ' == c) || ('\t' == c) || ('\n' == c))
    82     69   
    83         -/*
    84         - * forward declarations.
    85         - */
    86         -char* stripleft(char* in);
    87         -char* stripright(char* in);
    88         -char* stripwhite(char* in);
    89         -int TclReadlineLineComplete(void);
    90         -void TclReadlineTerminate(int state);
    91         -char* TclReadlineQuote(char* text, char* quotechars);
    92         -int TclReadlineCmd(ClientData clientData, Tcl_Interp* interp,
    93         -    int argc, char** argv);
    94         -void TclReadlineReadHandler(ClientData clientData, int mask);
    95         -void TclReadlineLineCompleteHandler(char* ptr);
           70  +/* forward declarations. */
           71  +static char* stripleft(char* in);
           72  +static char* stripright(char* in);
           73  +static char* stripwhite(char* in);
           74  +static int TclReadlineLineComplete(void);
           75  +static void TclReadlineTerminate(int state);
           76  +static char* TclReadlineQuote(char* text, char* quotechars);
           77  +static int TclReadlineCmd(ClientData clientData, Tcl_Interp* interp, int argc, char** argv);
           78  +static void TclReadlineReadHandler(ClientData clientData, int mask);
           79  +static void TclReadlineLineCompleteHandler(char* ptr);
           80  +static int TclReadlineInitialize(Tcl_Interp* interp, char* historyfile);
           81  +static int blank_line(char* str);
           82  +static char** TclReadlineCompletion(char* text, int start, int end);
           83  +static char* TclReadline0generator(char* text, int state);
           84  +static char* TclReadlineKnownCommands(char* text, int state, int mode);
           85  +static int TclReadlineParse(char** args, int maxargs, char* buf);
           86  +
           87  +/* must be non-static */
    96     88   int Tclreadline_SafeInit(Tcl_Interp* interp);
    97     89   int Tclreadline_Init(Tcl_Interp* interp);
    98         -int TclReadlineInitialize(Tcl_Interp* interp, char* historyfile);
    99         -int blank_line(char* str);
   100         -char** TclReadlineCompletion(char* text, int start, int end);
   101         -char* TclReadline0generator(char* text, int state);
   102         -char* TclReadlineKnownCommands(char* text, int state, int mode);
   103         -int TclReadlineParse(char** args, int maxargs, char* buf);
           90  +
   104     91   
   105     92   enum { 
   106     93       LINE_PENDING = -1,
   107     94       LINE_EOF = (1 << 8),
   108     95       LINE_COMPLETE = (1 << 9)
   109     96   };
   110     97   
................................................................................
   115    102   static char* tclrl_eof_string = (char*) NULL;
   116    103   static char* tclrl_custom_completer = (char*) NULL;
   117    104   static char* tclrl_last_line = (char*) NULL;
   118    105   static int tclrl_use_builtin_completer = 1;
   119    106   static int tclrl_history_length = -1;
   120    107   Tcl_Interp* tclrl_interp = (Tcl_Interp*) NULL;
   121    108   
          109  +static char* tclrl_license =
          110  +"   Copyright (c) 1998 - 2000, Johannes Zellner <johannes@zellner.org>\n"
          111  +"   All rights reserved.\n"
          112  +"   \n"
          113  +"   Redistribution and use in source and binary forms, with or without\n"
          114  +"   modification, are permitted provided that the following conditions\n"
          115  +"   are met:\n"
          116  +"   \n"
          117  +"     * Redistributions of source code must retain the above copyright\n"
          118  +"       notice, this list of conditions and the following disclaimer.\n"
          119  +"     * Redistributions in binary form must reproduce the above copyright\n"
          120  +"       notice, this list of conditions and the following disclaimer in the\n"
          121  +"       documentation and/or other materials provided with the distribution.\n"
          122  +"     * Neither the name of Johannes Zellner nor the names of contributors\n"
          123  +"       to this software may be used to endorse or promote products derived\n"
          124  +"       from this software without specific prior written permission.\n"
          125  +"       \n"
          126  +"   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n"
          127  +"   ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n"
          128  +"   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n"
          129  +"   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR\n"
          130  +"   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\n"
          131  +"   EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\n"
          132  +"   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n"
          133  +"   PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n"
          134  +"   LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n"
          135  +"   NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n"
          136  +"   SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.";
   122    137   
   123         -char*
          138  +
          139  +
          140  +static char*
   124    141   stripleft(char* in)
   125    142   {
   126    143       char* ptr = in;
   127    144       while (*ptr && *ptr <= ' ')
   128    145   	ptr++;
   129    146       if (in != ptr)
   130    147   	memmove(in, ptr, strlen(ptr) + 1);
   131    148       return in;
   132    149   }
   133    150   
   134         -char*
          151  +static char*
   135    152   stripright(char* in)
   136    153   {
   137    154       char* ptr;
   138    155       for (ptr = strchr(in, '\0') - 1; ptr >= in && *ptr <= ' '; ptr--)
   139    156   	*ptr = '\0';
   140    157       return in;
   141    158   }
   142    159   
   143         -char*
          160  +static char*
   144    161   stripwhite(char* in)
   145    162   {
   146    163       stripleft(in);
   147    164       stripright(in);
   148    165       return in;
   149    166   }
   150    167   
   151         -int
          168  +static int
   152    169   TclReadlineLineComplete(void)
   153    170   {
   154    171       return !(tclrl_state == LINE_PENDING);
   155    172   }
   156    173   
   157         -void
          174  +static void
   158    175   TclReadlineTerminate(int state)
   159    176   {
   160    177       tclrl_state = state;
   161    178       rl_callback_handler_remove();
   162    179   }
   163    180   
   164         -char*
          181  +static char*
   165    182   TclReadlineQuote(char* text, char* quotechars)
   166    183   {
   167    184       char* ptr;
   168    185       char* result_c;
   169    186       int i, len = strlen(quotechars);
   170    187       Tcl_DString result;
   171    188   
................................................................................
   179    196   	}
   180    197   	Tcl_DStringAppend(&result, ptr, 1);
   181    198       }
   182    199       result_c = strdup(Tcl_DStringValue(&result));
   183    200       return result_c;
   184    201   }
   185    202   
   186         -int
          203  +static int
   187    204   TclReadlineCmd(
   188    205       ClientData  clientData,
   189    206       Tcl_Interp* interp,     /* Current interpreter */
   190    207       int         argc,       /* Number of arguments */
   191    208       char**      argv        /* Argument strings    */
   192    209   	      )
   193    210   {
................................................................................
   419    436       Tcl_AppendResult(interp,
   420    437   	"wrong # args: should be \"readline option ?arg ...?\"",
   421    438   	(char*) NULL);
   422    439       return TCL_ERROR;
   423    440   
   424    441   }
   425    442   
   426         -void
          443  +static void
   427    444   TclReadlineReadHandler(ClientData clientData, int mask)
   428    445   {
   429    446       if (mask & TCL_READABLE) {
   430    447   #ifdef EXECUTING_MACRO_HACK
   431    448   	do {
   432    449   #endif
   433    450   	    rl_callback_read_char();
................................................................................
   438    455   	     * until the next eol.
   439    456   	     */
   440    457   	} while (_rl_executing_macro && !TclReadlineLineComplete());
   441    458   #endif
   442    459       }
   443    460   }
   444    461   
   445         -void
          462  +static void
   446    463   TclReadlineLineCompleteHandler(char* ptr)
   447    464   {
   448    465       if (!ptr) { /* <c-d> */
   449    466   
   450    467   	TclReadlineTerminate(LINE_EOF);
   451    468   
   452    469       } else {
................................................................................
   459    476   	 * empty strings.
   460    477   	 */
   461    478   
   462    479   	char* expansion = (char*) NULL;
   463    480   	int status = history_expand(ptr, &expansion);
   464    481   
   465    482   	if (status >= 1) {
   466         -#if 0
   467         -	    Tcl_Channel channel = Tcl_MakeFileChannel(stdout, TCL_WRITABLE);
   468         -	    /* Tcl_RegisterChannel(interp, channel); */
   469         -	    (void) Tcl_WriteChars(channel, expansion, -1);
   470         -	    Tcl_Flush(channel);
   471         -	    Tcl_Close(interp, channel);
   472         -#else
   473    483   	    /* TODO: make this a valid tcl output */
   474    484   	    printf("%s\n", expansion);
   475         -#endif
   476    485   	} else if (-1 == status) {
   477    486   	    Tcl_AppendResult
   478    487   	    (tclrl_interp, "error in history expansion\n", (char*) NULL);
   479    488   	    TclReadlineTerminate(TCL_ERROR);
   480    489   	}
   481    490   	/**
   482    491   	 * TODO: status == 2 ...
................................................................................
   528    537       int status;
   529    538       Tcl_CreateCommand(interp, "::tclreadline::readline", TclReadlineCmd,
   530    539   	(ClientData) NULL, (Tcl_CmdDeleteProc *) NULL);
   531    540       tclrl_interp = interp;
   532    541       if (TCL_OK != (status = Tcl_LinkVar(interp, "::tclreadline::historyLength",
   533    542   		(char*) &tclrl_history_length, TCL_LINK_INT)))
   534    543   	return status;
          544  +
   535    545       if (TCL_OK != (status = Tcl_LinkVar(interp, "::tclreadline::library",
   536    546   		(char*) &TCLRL_LIBRARY, TCL_LINK_STRING | TCL_LINK_READ_ONLY)))
   537    547   	return status;
   538    548       if (TCL_OK != (status = Tcl_LinkVar(interp, "::tclreadline::version",
   539    549   		(char*) &TCLRL_VERSION, TCL_LINK_STRING | TCL_LINK_READ_ONLY)))
   540    550   	return status;
   541    551       if (TCL_OK != (status = Tcl_LinkVar(interp, "::tclreadline::patchLevel",
   542    552   		(char*) &TCLRL_PATCHLEVEL, TCL_LINK_STRING | TCL_LINK_READ_ONLY)))
   543    553   	return status;
          554  +    if (TCL_OK != (status = Tcl_LinkVar(interp, "::tclreadline::license",
          555  +		(char*) &tclrl_license, TCL_LINK_STRING | TCL_LINK_READ_ONLY)))
          556  +	return status;
          557  +
   544    558       if (TCL_OK != (status = Tcl_LinkVar(interp, "tclreadline_library",
   545    559   		(char*) &TCLRL_LIBRARY, TCL_LINK_STRING | TCL_LINK_READ_ONLY)))
   546    560   	return status;
   547    561       if (TCL_OK != (status = Tcl_LinkVar(interp, "tclreadline_version",
   548    562   		(char*) &TCLRL_VERSION, TCL_LINK_STRING | TCL_LINK_READ_ONLY)))
   549    563   	return status;
   550    564       if (TCL_OK != (status = Tcl_LinkVar(interp, "tclreadline_patchLevel",
   551    565   		(char*) &TCLRL_PATCHLEVEL, TCL_LINK_STRING | TCL_LINK_READ_ONLY)))
   552    566   	return status;
          567  +
   553    568       return Tcl_PkgProvide(interp, "tclreadline", TCLRL_VERSION);
   554    569   }
   555    570   
   556         -int
          571  +static int
   557    572   TclReadlineInitialize(Tcl_Interp* interp, char* historyfile)
   558    573   {
   559    574       rl_readline_name = "tclreadline";
   560    575       /*    rl_special_prefixes = "${\"["; */
   561    576       rl_special_prefixes = "$";
   562    577       /**
   563    578        * default is " \t\n\"\\'`@$><=;|&{("
................................................................................
   602    617   	    Tcl_AppendResult (interp, "warning: `",
   603    618   		historyfile, "' is not writable.", (char*) NULL);
   604    619   	}
   605    620       }
   606    621       return TCL_OK;
   607    622   }
   608    623   
   609         -int
          624  +static int
   610    625   blank_line(char* str)
   611    626   {
   612    627       char* ptr;
   613    628       for (ptr = str; ptr && *ptr; ptr++) {
   614    629   	if (!ISWHITE(*ptr))
   615    630   	    return 0;
   616    631       }
   617    632       return 1;
   618    633   }
   619    634   
   620         -char**
          635  +static char**
   621    636   TclReadlineCompletion(char* text, int start, int end)
   622    637   {
   623    638       char** matches = (char**) NULL;
   624    639       int status;
   625    640       rl_completion_append_character = ' '; /* reset, just in case ... */
   626    641   
   627    642       if (text && ('!' == text[0]
................................................................................
   709    724       if (!matches && tclrl_use_builtin_completer) {
   710    725   	matches = completion_matches(text, TclReadline0generator);
   711    726       }
   712    727   
   713    728       return matches;
   714    729   }
   715    730   
   716         -char*
          731  +static char*
   717    732   TclReadline0generator(char* text, int state)
   718    733   {
   719    734       return TclReadlineKnownCommands(text, state, _CMD_GET);
   720    735   }
   721    736   
   722         -char*
          737  +static char*
   723    738   TclReadlineKnownCommands(char* text, int state, int mode)
   724    739   {
   725    740       static int len;
   726    741       static cmds_t *cmds = (cmds_t *) NULL, *new;
   727    742       char* tmp;
   728    743       char* args[256];
   729    744       int i, argc;
................................................................................
   815    830   	    return (char*) NULL;
   816    831   	    break;
   817    832   
   818    833       }
   819    834       /* NOTREACHED */
   820    835   }
   821    836   
   822         -int
          837  +static int
   823    838   TclReadlineParse(char** args, int maxargs, char* buf)
   824    839   {
   825    840       int nr = 0;
   826    841   
   827    842       while (*buf != '\0' && nr < maxargs) {
   828    843   	/*
   829    844   	 * Strip whitespace.  Use nulls, so

Modified tclreadline.h.in from [0527d1c60d] to [af6b25ae5c].

     1      1   
     2      2    /* ==================================================================
     3      3      
     4      4       FILE: "/home/joze/src/tclreadline/tclreadline.h.in"
     5         -    LAST MODIFICATION: "Thu, 23 Mar 2000 21:13:36 +0100 (joze)"
            5  +    LAST MODIFICATION: "Sat, 25 Mar 2000 20:48:54 +0100 (joze)"
     6      6       (C) 1998 - 2000 by Johannes Zellner, <johannes@zellner.org>
     7      7       $Id$
     8      8       vim:set ft=c:
     9      9       ---
    10     10   
    11     11       tclreadline -- gnu readline for tcl
    12         -    Copyright (C) 1998 - 2000 by Johannes Zellner
    13         -
    14         -    This program is free software; you can redistribute it and/or
    15         -    modify it under the terms of the GNU General Public License
    16         -    as published by the Free Software Foundation; either version 2
    17         -    of the License, or (at your option) any later version.
           12  +    http://www.zellner.org/tclreadline/
           13  +    Copyright (c) 1998 - 2000, Johannes Zellner <johannes@zellner.org>
    18     14   
    19         -    This program is distributed in the hope that it will be useful,
    20         -    but WITHOUT ANY WARRANTY; without even the implied warranty of
    21         -    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    22         -    GNU General Public License for more details.
    23         -
    24         -    You should have received a copy of the GNU General Public License
    25         -    along with this program; if not, write to the Free Software
    26         -    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    27         -
    28         -    johannes@zellner.org
    29         -    http://www.zellner.org/tclreadline/
           15  +    This software is copyright under the BSD license.
    30     16   
    31     17       ================================================================== */  
    32     18   
    33     19   static char *TCLRL_VERSION = "@TCLREADLINE_VERSION@";
    34     20   
    35     21   static char *TCLRL_LIBRARY = "@TCLREADLINE_LIBRARY@";
    36     22   
    37     23   /**
    38     24    * NOTE, that PATCHLEVEL is the complete version string.
    39     25    */
    40     26   static char *TCLRL_PATCHLEVEL = "@TCLREADLINE_PATCHLEVEL_STR@";
    41     27   

Modified tclreadline.n.in from [f0bff91a9a] to [b897c201a8].

     1      1   .TH tclreadline n "@TCLREADLINE_VERSION@.@TCLREADLINE_PATCHLEVEL@" "Johannes Zellner"
     2      2   
     3      3   .\" FILE: "/home/joze/src/tclreadline/tclreadline.n.in"
     4         -.\" LAST MODIFICATION: "Thu, 23 Mar 2000 21:14:10 +0100 (joze)"
            4  +.\" LAST MODIFICATION: "Sat, 25 Mar 2000 21:51:43 +0100 (joze)"
     5      5   .\" (C) 1998 - 2000 by Johannes Zellner, <johannes@zellner.org>
     6      6   .\" $Id$
     7      7   .\" ---
     8      8   .\"
     9         -.\" tclreadline -- gnu readline for the tcl scripting language
    10         -.\" Copyright (C) 1998 - 2000 by Johannes Zellner
    11         -.\"
    12         -.\" This program is free software; you can redistribute it and/or
    13         -.\" modify it under the terms of the GNU General Public License
    14         -.\" as published by the Free Software Foundation; either version 2
    15         -.\" of the License, or (at your option) any later version.
            9  +.\" tclreadline -- gnu readline for tcl
           10  +.\" http://www.zellner.org/tclreadline/
           11  +.\" Copyright (c) 1998 - 2000, Johannes Zellner <johannes@zellner.org>
    16     12   .\"
    17         -.\" This program is distributed in the hope that it will be useful,
    18         -.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
    19         -.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    20         -.\" GNU General Public License for more details.
    21         -.\"
    22         -.\" You should have received a copy of the GNU General Public License
    23         -.\" along with this program; if not, write to the Free Software
    24         -.\" Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    25         -.\"
    26         -.\" <johannes@zellner.org>, http://www.zellner.org/tclreadline/
           13  +.\" This software is copyright under the BSD license.
    27     14   
    28     15   
    29     16   .\"	# CS - begin code excerpt
    30     17   .de CS
    31     18   .RS
    32     19   .nf
    33     20   .ta .25i .5i .75i 1i
................................................................................
   249    236   
   250    237   \fItclreadline\fP defines the following variables in the
   251    238   namespace \fI::tclreadline\fP:
   252    239   (for backwards compatiblity the global variables tclreadline_version,
   253    240    tclreadline_patchLevel and tclreadline_library are still present).
   254    241   
   255    242   .TP 5
   256         -\fBtclreadline::version\fP
          243  +\fBtclreadline::version\fP (read-only)
   257    244   holds the version string "@TCLREADLINE_VERSION@".
   258    245   
   259    246   .TP 5
   260         -\fBtclreadline::patchLevel\fP
          247  +\fBtclreadline::patchLevel\fP (read-only)
   261    248   holds the patch level string "@TCLREADLINE_VERSION@.@TCLREADLINE_PATCHLEVEL@".
   262    249   
   263    250   .TP 5
   264         -\fBtclreadline::library\fP
          251  +\fBtclreadline::library\fP (read-only)
   265    252   holds the library string "@TCLREADLINE_LIBRARY@".
   266    253   
          254  +.TP 5
          255  +\fBtclreadline::license\fP (read-only)
          256  +holds a BSD license statement.
          257  +
   267    258   .TP 5
   268    259   \fBtclreadline::historyLength\fP
   269    260   Number of lines, which will be written to the historyfile.
   270    261   This number is -1 by default, which means that the historyfile
   271    262   will not be truncated.  See also \fBtclreadline::write\fP.
   272    263   
   273    264   .SH "FILES"
................................................................................
   336    327   Matthew Clarke <Matthew_Clarke@mindlink.bc.ca>
   337    328   
   338    329   .SH "DEBIAN PACKAGE"
   339    330   David Engel <dlengel@home.com>, <david@debian.org>
   340    331   
   341    332   .SH "DISCLAIMER"
   342    333   
   343         -This version of \fBtclreadline\fP is still a development version.
   344         -Pretty a lot of features and ideas are not implemented yet. The
   345         -reason for this is the lack of time and manpower.
   346         -So you are welcome to modify and contribute to the code.
   347         -If you have suggestions, please let me know.
   348         -
   349         -\fBtclreadline\fP comes with the GPL (GNU General Public License).
   350         -You should have received a copy of the GNU General Public License
   351         -along with this program; if not, write to the Free Software
   352         -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
          334  +\fBtclreadline\fP comes with a BSD type license.
          335  +The read-only variable tclreadline::license holds the
          336  +complete license statement.

Modified tclreadlineCompleter.tcl from [cba8646974] to [a07d7cee03].

     1      1   # -*- tclsh -*-
     2      2   # FILE: "/home/joze/src/tclreadline/tclreadlineCompleter.tcl"
     3         -# LAST MODIFICATION: "Thu, 23 Mar 2000 22:38:08 +0100 (joze)"
            3  +# LAST MODIFICATION: "Sat, 25 Mar 2000 21:28:45 +0100 (joze)"
     4      4   # (C) 1998 - 2000 by Johannes Zellner, <johannes@zellner.org>
     5      5   # $Id$
     6      6   # vim:set ts=4:
     7      7   # ---
     8      8   #
     9      9   # tclreadline -- gnu readline for tcl
    10         -# Copyright (C) 1998 - 2000 by Johannes Zellner
    11         -#
    12         -# This program is free software; you can redistribute it and/or
    13         -# modify it under the terms of the GNU General Public License
    14         -# as published by the Free Software Foundation; either version 2
    15         -# of the License, or (at your option) any later version.
    16         -#
    17         -# This program is distributed in the hope that it will be useful,
    18         -# but WITHOUT ANY WARRANTY; without even the implied warranty of
    19         -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    20         -# GNU General Public License for more details.
    21         -#
    22         -# You should have received a copy of the GNU General Public License
    23         -# along with this program; if not, write to the Free Software
    24         -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    25         -#
    26         -# johannes@zellner.org
    27     10   # http://www.zellner.org/tclreadline/
           11  +# Copyright (c) 1998 - 2000, Johannes Zellner <johannes@zellner.org>
           12  +#
           13  +# This software is copyright under the BSD license.
    28     14   #
    29     15   # ================================================================== 
    30     16   
    31     17   
    32     18   # TODO:
    33     19   #
    34     20   #	- tcltest is missing
................................................................................
  2265   2251   		2 { return [DisplayHints ?why?] }
  2266   2252   	}
  2267   2253   	return ""
  2268   2254   }
  2269   2255   
  2270   2256   # the unknown proc handles the rest
  2271   2257   #
  2272         -proc \
  2273         -http::complete(tclreadline_complete_unknown) {text start end line pos mod} {
         2258  +proc http::complete(tclreadline_complete_unknown) {text start end line pos mod} {
  2274   2259   	set cmd [Lindex $line 0]
  2275   2260   	regsub -all {^.*::} $cmd "" cmd
  2276   2261   	switch -- $pos {
  2277   2262   		1 {
  2278   2263   			switch -- $cmd {
  2279   2264   				reset -
  2280   2265   				wait -

Modified tclreadlineConfig.sh.in from [b25a7cb537] to [bb11ff1098].

     1      1   #!/bin/sh
     2      2   # FILE: "/home/joze/src/tclreadline/tclreadlineConfig.sh.in"
     3         -# LAST MODIFICATION: "Thu, 23 Mar 2000 21:14:52 +0100 (joze)"
            3  +# LAST MODIFICATION: "Sat, 25 Mar 2000 20:51:07 +0100 (joze)"
     4      4   # (C) 1998 - 2000 by Johannes Zellner, <johannes@zellner.org>
     5      5   # $Id$
     6      6   # ---
     7      7   #
     8      8   # tclreadline -- gnu readline for tcl
     9         -# Copyright (C) 1998 - 2000 by Johannes Zellner
    10         -#
    11         -# This program is free software; you can redistribute it and/or
    12         -# modify it under the terms of the GNU General Public License
    13         -# as published by the Free Software Foundation; either version 2
    14         -# of the License, or (at your option) any later version.
            9  +# http://www.zellner.org/tclreadline/
           10  +# Copyright (c) 1998 - 2000, Johannes Zellner <johannes@zellner.org>
    15     11   #
    16         -# This program is distributed in the hope that it will be useful,
    17         -# but WITHOUT ANY WARRANTY; without even the implied warranty of
    18         -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    19         -# GNU General Public License for more details.
    20         -#
    21         -# You should have received a copy of the GNU General Public License
    22         -# along with this program; if not, write to the Free Software
    23         -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    24         -#
    25         -# johannes@zellner.org
    26         -# http://www.zellner.org/tclreadline/
           12  +# This software is copyright under the BSD license.
    27     13   #
    28     14   # ================================================================== 
    29     15   # 
    30     16   # This shell script (for sh) is generated automatically by tclreadline's
    31     17   # configure script.  It will create shell variables for most of
    32     18   # the configuration options discovered by the configure script.
    33     19   # This script is intended to be included by the configure scripts

Modified tclreadlineInit.tcl.in from [6693f8adfc] to [8d6b0fc6f5].

     1      1   #!/usr/local/bin/tclsh
     2      2   # FILE: "/home/joze/src/tclreadline/tclreadlineInit.tcl.in"
     3         -# LAST MODIFICATION: "Thu, 23 Mar 2000 22:36:01 +0100 (joze)"
            3  +# LAST MODIFICATION: "Sat, 25 Mar 2000 20:51:17 +0100 (joze)"
     4      4   # (C) 1998 - 2000 by Johannes Zellner, <johannes@zellner.org>
     5      5   # $Id$
     6      6   # ---
     7      7   #
     8      8   # tclreadline -- gnu readline for tcl
     9         -# Copyright (C) 1998 - 2000 Johannes Zellner
    10         -#
    11         -# This program is free software; you can redistribute it and/or
    12         -# modify it under the terms of the GNU General Public License
    13         -# as published by the Free Software Foundation; either version 2
    14         -# of the License, or (at your option) any later version.
            9  +# http://www.zellner.org/tclreadline/
           10  +# Copyright (c) 1998 - 2000, Johannes Zellner <johannes@zellner.org>
    15     11   #
    16         -# This program is distributed in the hope that it will be useful,
    17         -# but WITHOUT ANY WARRANTY; without even the implied warranty of
    18         -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    19         -# GNU General Public License for more details.
    20         -#
    21         -# You should have received a copy of the GNU General Public License
    22         -# along with this program; if not, write to the Free Software
    23         -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    24         -#
    25         -# johannes@zellner.org
    26         -# http://www.zellner.org/tclreadline/
           12  +# This software is copyright under the BSD license.
    27     13   #
    28     14   # ================================================================== 
    29     15   
    30     16   package provide tclreadline @TCLREADLINE_VERSION@
    31     17   
    32     18   namespace eval tclreadline:: {
    33     19       namespace export Init

Modified tclreadlineSetup.tcl.in from [cb14d0e407] to [9146e47c18].

     1      1   #!/usr/locanl/bin/tclsh
     2      2   # FILE: "/home/joze/src/tclreadline/tclreadlineSetup.tcl.in"
     3         -# LAST MODIFICATION: "Thu, 23 Mar 2000 22:45:43 +0100 (joze)"
            3  +# LAST MODIFICATION: "Sat, 25 Mar 2000 20:51:30 +0100 (joze)"
     4      4   # (C) 1998 - 2000 by Johannes Zellner, <johannes@zellner.org>
     5      5   # $Id$
     6      6   # ---
     7      7   #
     8      8   # tclreadline -- gnu readline for tcl
     9         -# Copyright (C) 1998 - 2000 by Johannes Zellner
    10         -#
    11         -# This program is free software; you can redistribute it and/or
    12         -# modify it under the terms of the GNU General Public License
    13         -# as published by the Free Software Foundation; either version 2
    14         -# of the License, or (at your option) any later version.
            9  +# http://www.zellner.org/tclreadline/
           10  +# Copyright (c) 1998 - 2000, Johannes Zellner <johannes@zellner.org>
    15     11   #
    16         -# This program is distributed in the hope that it will be useful,
    17         -# but WITHOUT ANY WARRANTY; without even the implied warranty of
    18         -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    19         -# GNU General Public License for more details.
    20         -#
    21         -# You should have received a copy of the GNU General Public License
    22         -# along with this program; if not, write to the Free Software
    23         -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    24         -#
    25         -# johannes@zellner.org
    26         -# http://www.zellner.org/tclreadline/
           12  +# This software is copyright under the BSD license.
    27     13   #
    28     14   # ================================================================== 
    29     15   
    30     16   
    31     17   package provide tclreadline @TCLREADLINE_VERSION@
    32     18   
    33     19   proc unknown args {

Modified tclshrl.c from [3b1fc8c4f3] to [8a207d9e53].

     1      1   
     2      2    /* ==================================================================
     3      3   
     4      4       FILE: "/home/joze/src/tclreadline/tclshrl.c"
     5         -    LAST MODIFICATION: "Thu, 23 Mar 2000 22:42:14 +0100 (joze)"
            5  +    LAST MODIFICATION: "Sat, 25 Mar 2000 20:51:39 +0100 (joze)"
     6      6       (C) 1998 - 2000 by Johannes Zellner, <johannes@zellner.org>
     7      7       $Id$
     8      8       ---
     9      9   
    10     10       tclreadline -- gnu readline for tcl
    11         -    Copyright (C) 1998 - 2000 by Johannes Zellner
    12         -
    13         -    This program is free software; you can redistribute it and/or
    14         -    modify it under the terms of the GNU General Public License
    15         -    as published by the Free Software Foundation; either version 2
    16         -    of the License, or (at your option) any later version.
           11  +    http://www.zellner.org/tclreadline/
           12  +    Copyright (c) 1998 - 2000, Johannes Zellner <johannes@zellner.org>
    17     13   
    18         -    This program is distributed in the hope that it will be useful,
    19         -    but WITHOUT ANY WARRANTY; without even the implied warranty of
    20         -    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    21         -    GNU General Public License for more details.
    22         -
    23         -    You should have received a copy of the GNU General Public License
    24         -    along with this program; if not, write to the Free Software
    25         -    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    26         -
    27         -    <johannes@zellner.org>, http://www.zellner.org/tclreadline/
           14  +    This software is copyright under the BSD license.
    28     15   
    29     16       ================================================================== */  
    30     17   
    31     18   #ifdef HAVE_CONFIG_H
    32     19   #   include "config.h"
    33     20   #endif
    34     21   

Modified wishrl.c from [de17910927] to [c02dfbf44f].

     1      1   
     2      2    /* ==================================================================
     3      3   
     4      4       FILE: "/home/joze/src/tclreadline/wishrl.c"
     5         -    LAST MODIFICATION: "Thu, 23 Mar 2000 22:42:23 +0100 (joze)"
            5  +    LAST MODIFICATION: "Sat, 25 Mar 2000 20:52:13 +0100 (joze)"
     6      6       (C) 1998 - 2000 by Johannes Zellner, <johannes@zellner.org>
     7      7       $Id$
     8      8       ---
     9      9   
    10     10       tclreadline -- gnu readline for tcl
    11         -    Copyright (C) 1998 - 2000 by Johannes Zellner
    12         -
    13         -    This program is free software; you can redistribute it and/or
    14         -    modify it under the terms of the GNU General Public License
    15         -    as published by the Free Software Foundation; either version 2
    16         -    of the License, or (at your option) any later version.
           11  +    http://www.zellner.org/tclreadline/
           12  +    Copyright (c) 1998 - 2000, Johannes Zellner <johannes@zellner.org>
    17     13   
    18         -    This program is distributed in the hope that it will be useful,
    19         -    but WITHOUT ANY WARRANTY; without even the implied warranty of
    20         -    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    21         -    GNU General Public License for more details.
    22         -
    23         -    You should have received a copy of the GNU General Public License
    24         -    along with this program; if not, write to the Free Software
    25         -    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    26         -
    27         -    <johannes@zellner.org>, http://www.zellner.org/tclreadline/
           14  +    This software is copyright under the BSD license.
    28     15   
    29     16       ================================================================== */  
    30     17   
    31     18   #ifdef HAVE_CONFIG_H
    32     19   #   include "config.h"
    33     20   #endif
    34     21