dejagnu
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PATCH: unused procs in utils.exp


From: Ben Elliston
Subject: PATCH: unused procs in utils.exp
Date: Fri, 30 Dec 2005 18:03:54 +1100
User-agent: Mutt/1.2.5.1i

It's premature to remove the unused procedures in utils.exp that I
identified last week.  The main reason for this is that these
procedures are documented and may be relied upon by users.  IMHO, it's
poor planning and irritating when packages remove functionality that
users depend upon.  In this case, the likelihood of any user impact is
low, but I don't think it hurts to be considerate :-)

Instead, I propose to document these procs as deprecated (including in
the NEWS file) and remove them in the release after next.  This will
give users a chance to avoid hiccups.

I'll commit this patch in a few days.

Ben

Index: NEWS
===================================================================
RCS file: /cvsroot/dejagnu/dejagnu/NEWS,v
retrieving revision 1.10
diff -u -p -r1.10 NEWS
--- NEWS        23 Dec 2005 22:58:29 -0000      1.10
+++ NEWS        30 Dec 2005 07:02:59 -0000
@@ -17,6 +17,11 @@ Changes since 1.4.4:
 6. The runtest program now gracefully handles the possibility of the
    expect binary vanishing after DejaGnu has been installed (for
    example, by the user altering their PATH).
+7. The user-visible utility procedures `absolute', `prune', `psource'
+   and `slay' are deprecated and will be removed in the next release.
+   If a testsuite uses any of these procedures, a copy of the
+   procedure should be made and placed in the lib directory of the
+   testsuite.
 
Index: doc/ref.xml
===================================================================
RCS file: /cvsroot/dejagnu/dejagnu/doc/ref.xml,v
retrieving revision 1.1
diff -u -p -r1.1 ref.xml
--- ref.xml     23 Dec 2005 20:39:29 -0000      1.1
+++ ref.xml     30 Dec 2005 07:03:38 -0000
@@ -3665,100 +3665,34 @@
 
        <sect4 id="prune" xreflabel="prune procedure">
          <title>Prune Procedure</title>
-
-         <para>Remove elements of the Tcl list <emphasis>list</emphasis>.
-         Elements are fields delimited by spaces.  The result is a copy of
-         list, without any elements that match <emphasis>pattern</emphasis>.
-         You can use the common shell wildcard characters to specify the
-         pattern.</para>
-
-       <funcsynopsis role="tcl">
-          <funcprototype>
-            <funcdef><function>prune</function></funcdef>
-           <paramdef><parameter>list</parameter>
-           <parameter>pattern</parameter></paramdef>
-           </funcprototype>
-       </funcsynopsis>
-       <variablelist>
-          <varlistentry>
-           <term><parameter>list</parameter></term>
-           <listitem><para>A Tcl list containing the original data. Commonly
-           this is the output of a batch executed command, like running a
-           compiler.</para></listitem>
-          </varlistentry>
-          <varlistentry>
-           <term><parameter>pattern</parameter></term>
-           <listitem><para>The csh shell "glob" style pattern to search
-           for.</para></listitem>
-          </varlistentry>
-       </variablelist>
-
+         <para>This procedure is deprecated and will be removed in
+         the next release of DejaGnu.  If a testsuite uses this
+         procedure, a copy of the procedure should be made and placed
+         in the lib directory of the testsuite.</para>
        </sect4>
 
        <sect4 id="slay" xreflabel="slay procedure">
          <title>Slay Procedure</title>
-
-         <para>This look in the process table for <emphasis>name</emphasis>
-         and send it a unix SIGINT, killing the process. This will only work
-         under Windows if you have Cygwin or another Unix subsystem for Windows
-         installed.</para>
-
-       <funcsynopsis role="tcl">
-          <funcprototype>
-            <funcdef><function>slay</function></funcdef>
-           <paramdef><parameter>name</parameter></paramdef>
-           </funcprototype>
-       </funcsynopsis>
-       <variablelist>
-          <varlistentry>
-           <term><parameter>name</parameter></term>
-           <listitem><para>The name of the program to kill.</para></listitem>
-          </varlistentry>
-       </variablelist>
-
+         <para>This procedure is deprecated and will be removed in
+         the next release of DejaGnu.  If a testsuite uses this
+         procedure, a copy of the procedure should be made and placed
+         in the lib directory of the testsuite.</para>
        </sect4>
 
        <sect4 id="absolute" xreflabel="absolute procedure">
          <title>Absolute Procedure</title>
-
-         <para>This procedure takes the relative <emphasis>path</emphasis>,
-         and converts it to an absolute path.</para>
-
-       <funcsynopsis role="tcl">
-          <funcprototype>
-            <funcdef><function>absolute</function></funcdef>
-           <paramdef><parameter>path</parameter></paramdef>
-           </funcprototype>
-       </funcsynopsis>
-       <variablelist>
-          <varlistentry>
-           <term><parameter>path</parameter></term>
-           <listitem><para>The path to convert.</para></listitem>
-          </varlistentry>
-       </variablelist>
+         <para>This procedure is deprecated and will be removed in
+         the next release of DejaGnu.  If a testsuite uses this
+         procedure, a copy of the procedure should be made and placed
+         in the lib directory of the testsuite.</para>
        </sect4>
 
        <sect4 id="psource" xreflabel="psource procedure">
          <title>Psource Procedure</title>
-
-         <para>This sources the file <emphasis>filename</emphasis>, and traps
-         all errors. It also ignores all extraneous output. If there was an
-         error it returns a <emphasis>1</emphasis>, otherwise it returns a
-         <emphasis>0</emphasis>.</para>
-
-       <funcsynopsis role="tcl">
-          <funcprototype>
-            <funcdef><function>psource</function></funcdef>
-           <paramdef><parameter>file</parameter></paramdef>
-           </funcprototype>
-       </funcsynopsis>
-       <variablelist>
-          <varlistentry>
-           <term><parameter>filename</parameter></term>
-           <listitem><para>The filename to Tcl script to
-           source.</para></listitem>
-          </varlistentry>
-       </variablelist>
+         <para>This procedure is deprecated and will be removed in
+         the next release of DejaGnu.  If a testsuite uses this
+         procedure, a copy of the procedure should be made and placed
+         in the lib directory of the testsuite.</para>
        </sect4>
 
        <sect4 id="runtestfilep" xreflabel="runtest_file_p procedure">

Attachment: pgpVHWEb9xztj.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]