home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 313_01 / version.c < prev   
Text File  |  1990-04-22  |  14KB  |  293 lines

  1. static    char    RCSid[] =
  2. "$Header: /nw2/tony/src/stevie/src/RCS/version.c,v 3.71 89/08/31 10:05:04 tony Exp $";
  3.  
  4. /*
  5.  * Contains the declaration of the global version number variable.
  6.  *
  7.  * $Log:    version.c,v $
  8.  * Revision 3.71  89/08/31  10:05:04  tony
  9.  * Added support for job control (when BSD is defined in env.h). Also fixed
  10.  * a problem with terminals that use delays in their termcap definitions.
  11.  * 
  12.  * Revision 3.70  89/08/27  08:30:10  tony
  13.  * Fixed a bug (reported on USENET) with null search strings and colon
  14.  * commands.
  15.  * 
  16.  * Revision 3.69  89/08/13  11:41:58  tony
  17.  * Fixed a bug that caused messages from fileinfo() (in misccmds.c) to get
  18.  * screwed up. The routine smsg() which uses the kludge approach to varargs
  19.  * didn't have enough parameters for some of the calls made to it.
  20.  * 
  21.  * Revision 3.68  89/08/06  09:51:20  tony
  22.  * Misc. minor changes to make lint happier before posting to USENET.
  23.  * 
  24.  * Revision 3.67  89/08/03  13:08:52  tony
  25.  * There was some code in ops.c that was duplicating the function of the
  26.  * getcmdln() routine in cmdline.c. I modified getcmdln() to be slightly
  27.  * more general, and changed dofilter() in ops.c to use it.
  28.  * 
  29.  * Revision 3.66  89/08/02  20:00:12  tony
  30.  * Fixed some problems with mode lines. There were still extra screen
  31.  * redraws that needed to be avoided. There was also a problem involving
  32.  * nested calls to docmdln() that can occur when mode lines are used.
  33.  * 
  34.  * Revision 3.65  89/08/02  15:50:03  tony
  35.  * Finally got around to providing full support for the "change" operator.
  36.  * Multi-line changes (like "cL" or "3cc") now work correctly. Also fixed
  37.  * a small problem with multi-line character-oriented deletes leaving the
  38.  * cursor in the wrong location (off by one character). This is mainly
  39.  * useful for multi-line changes (such as "c%") so the insert starts in
  40.  * the right place.
  41.  * 
  42.  * Revision 3.64  89/08/02  12:47:04  tony
  43.  * This message intentionally left blank.
  44.  * 
  45.  * Revision 3.63  89/08/02  12:43:44  tony
  46.  * I just noticed that I had used the RCS cookie for log messages in one
  47.  * of my prior version messages. This caused these version update messages
  48.  * to be duplicated in this file. I just removed that string, and the
  49.  * extra message copies that had been generated.
  50.  * 
  51.  * Revision 3.62  89/08/02  12:26:20  tony
  52.  * The ^G command now shows where you are in the file list, if more than one
  53.  * file is being edited. Also, the commands ":e#" and ":e!#" (note the lack
  54.  * of a space between the command and file name) will now work.
  55.  * 
  56.  * Revision 3.61  89/08/02  11:03:16  tony
  57.  * Misc. cleanups regarding tags. Also added support for the "terse" option.
  58.  * This is ignored, but improves compatibility with vi, since we no longer
  59.  * complain about an unknown option if "terse" is used.
  60.  * 
  61.  * Revision 3.60  89/08/02  09:26:39  tony
  62.  * Added code to avoid screen redraws when input is being read from the
  63.  * "stuffin" buffer. This avoids extra redraws when switching to the
  64.  * alternate file, or when invoking the editor with one of the "+" options,
  65.  * or when using tags.
  66.  * 
  67.  * Revision 3.59  89/08/01  16:28:31  tony
  68.  * Added better support for counts on several cursor motion commands. These
  69.  * include ^F, ^B, f, F, t, T, as well as the repeated character search
  70.  * commands (command and semi-colon).
  71.  * 
  72.  * Revision 3.58  89/07/19  08:08:23  tony
  73.  * Added the ability for '~' to be an operator. If enabled (by defined TILDEOP
  74.  * in env.h), the parameter "tildeop" (or "to") may be set to turn tilde into
  75.  * an operator.
  76.  * 
  77.  * Revision 3.57  89/07/13  22:47:05  tony
  78.  * Made some generic speed improvements in screen.c and some TOS-specific
  79.  * improvements in tos.c. The TOS version is now much faster at screen
  80.  * updates than before.
  81.  * 
  82.  * Revision 3.56  89/07/13  14:52:03  tony
  83.  * Minor cleanups in normal.c
  84.  * 
  85.  * Revision 3.55  89/07/13  14:19:12  tony
  86.  * Cleaned up the logic in getcmdln() A LOT. The routine docmdln() needs a
  87.  * similar overhaul.
  88.  * 
  89.  * Revision 3.54  89/07/12  21:40:01  tony
  90.  * Lots of misc. cleanup in normal.c and cmdline.c, but nothing much in the
  91.  * way of functional improvements. One change is that things like d/foo<CR>
  92.  * will now work since searches are less of a special case now.
  93.  * 
  94.  * Revision 3.53  89/07/11  16:16:08  tony
  95.  * Added general support for interrupt-handling for those environments that
  96.  * can actually generate them. Basically, long-running operations are now
  97.  * able to terminate early if an error occurs. These operations are: string
  98.  * searches, the global command (":g/.../"), and file reads. File writes
  99.  * should probably be done as well, but this is more dangerous. In all cases,
  100.  * the user is given an indication on the status line that the operation
  101.  * terminated due to an interrupt.
  102.  * 
  103.  * Revision 3.52  89/07/11  12:35:09  tony
  104.  * Improved the code in dosub() and doglob() that detects quoted characters
  105.  * and delimiters in search strings and replacement patterns. The current
  106.  * code didn't allow certain valid strings to be used. The delimiter is still
  107.  * required to be '/', but it can be quoted reliably now with backslash.
  108.  * 
  109.  * Revision 3.51  89/07/10  14:01:58  tony
  110.  * Removed the function addtobuff() since it was rarely used and could be
  111.  * replaced by calls to other library functions. Also removed some other
  112.  * obsolete code that was already ifdef'd out anyway.
  113.  * 
  114.  * Revision 3.50  89/07/10  13:10:32  tony
  115.  * Added a workaround in normal.c to avoid problems with broken versions of
  116.  * strncpy() that don't properly deal with a count of zero.
  117.  * 
  118.  * Revision 3.49  89/07/07  16:28:37  tony
  119.  * Fixed a long-standing bug with 'cw' when the cursor is positioned on a
  120.  * word with only one character. Also fixed a problems with zero-length files
  121.  * and reverse searches.
  122.  * 
  123.  * Revision 3.48  89/03/22  10:26:58  tony
  124.  * Fixed some outdated uses of the ":p" command (which has been changed to
  125.  * ":N" in os2.c and dos.c. Also added macros (F7 and F8) for dos and os/2
  126.  * to use the "cdecl" program to convert lines to and from a pseudo-english
  127.  * form. Use F7 to "explain" the declaration on the current line, and F8 to
  128.  * convert an english-style declaration to the C form. In both cases, the
  129.  * new form is placed on the next line, leaving the original line intact.
  130.  * 
  131.  * Revision 3.47  89/03/11  22:44:14  tony
  132.  * General cleanup. Removed the static "rcsid" variables and the log
  133.  * strings (except in version.c). Fixed some coding style inconsistencies
  134.  * and added a few register declarations.
  135.  * 
  136.  * Revision 3.46  89/02/14  09:52:07  tony
  137.  * Made a first pass at adding Robert Regn's changes, starting with the
  138.  * more portable ones. Added better support for '#' and '%' in colon
  139.  * commands, support for a configurable temp directory, and made the
  140.  * termcap code less picky about capabilities.
  141.  * 
  142.  * Revision 3.45  88/11/10  09:00:06  tony
  143.  * Added support for mode lines. Strings like "vi:stuff:" or "ex:stuff:"
  144.  * occurring in the first or last 5 lines of a file cause the editor to
  145.  * pretend that "stuff" was types as a colon command. This examination
  146.  * is done only if the parameter "modelines" (or "ml") is set. This is
  147.  * not enabled, by default, because of the security implications involved.
  148.  * 
  149.  * Revision 3.44  88/11/01  21:34:11  tony
  150.  * Fixed a couple of minor points for Minix, and improved the speed of
  151.  * the 'put' command dramatically.
  152.  * 
  153.  * Revision 3.43  88/10/31  13:11:33  tony
  154.  * Added optional support for termcap. Initialization is done in term.c
  155.  * and also affects the system-dependent files. To enable termcap in those
  156.  * environments that support it, define the symbol "TERMCAP" in env.h
  157.  * 
  158.  * Revision 3.42  88/10/27  18:30:19  tony
  159.  * Removed support for Megamax. Added '%' as an alias for '1,$'. Made the
  160.  * 'r' command more robust. Now prints the string on repeated searches.
  161.  * The ':=" command now works. Some pointer operations are now safer.
  162.  * The ":!" and ":sh" now work correctly. Re-organized the help screens
  163.  * a little.
  164.  * 
  165.  * Revision 3.41  88/10/06  10:15:00  tony
  166.  * Fixed a bug involving ^Y that occurs when the cursor is on the last
  167.  * line, and the line above the screen is long. Also hacked up fileio.c
  168.  * to pass pathnames off to fixname() for system-dependent processing.
  169.  * Used under DOS & OS/2 to trim parts of the name appropriately.
  170.  * 
  171.  * Revision 3.40  88/09/16  08:37:36  tony
  172.  * No longer beeps when repeated searches fail.
  173.  * 
  174.  * Revision 3.39  88/09/06  06:51:07  tony
  175.  * Fixed a bug with shifts that was introduced when replace mode was added.
  176.  * 
  177.  * Revision 3.38  88/08/31  20:48:28  tony
  178.  * Made another fix in search.c related to repeated searches.
  179.  * 
  180.  * Revision 3.37  88/08/30  20:37:16  tony
  181.  * After much prodding from Mark, I finally added support for replace mode.
  182.  * 
  183.  * Revision 3.36  88/08/26  13:46:34  tony
  184.  * Added support for the '!' (filter) operator.
  185.  * 
  186.  * Revision 3.35  88/08/26  08:46:01  tony
  187.  * Misc. changes to make lint happy.
  188.  * 
  189.  * Revision 3.34  88/08/25  15:13:36  tony
  190.  * Fixed a bug where the cursor didn't land on the right place after
  191.  * "beginning-of-word" searches if the word was preceded by the start
  192.  * of the line and a single character.
  193.  * 
  194.  * Revision 3.33  88/08/23  12:53:08  tony
  195.  * Fixed a bug in ssearch() where repeated searches ('n' or 'N') resulted
  196.  * in dynamic memory being referenced after it was freed.
  197.  * 
  198.  * Revision 3.32  88/08/17  07:37:07  tony
  199.  * Fixed a general problem in u_save() by checking both parameters for
  200.  * null values. The specific symptom was that a join on the last line of
  201.  * the file would crash the editor.
  202.  * 
  203.  * Revision 3.31  88/07/09  20:39:38  tony
  204.  * Implemented the "line undo" command (i.e. 'U').
  205.  * 
  206.  * Revision 3.30  88/06/28  07:54:22  tony
  207.  * Fixed a bug involving redo's of the '~' command. The redo would just
  208.  * repeat the replacement last performed instead of switching the case of
  209.  * the current character.
  210.  * 
  211.  * Revision 3.29  88/06/26  14:53:19  tony
  212.  * Added support for a simple form of the "global" command. It supports
  213.  * commands of the form "g/pat/d" or "g/pat/p", to delete or print lines
  214.  * that match the given pattern. A range spec may be used to limit the
  215.  * lines to be searched.
  216.  * 
  217.  * Revision 3.28  88/06/25  21:44:22  tony
  218.  * Fixed a problem in the processing of colon commands that caused
  219.  * substitutions of patterns containing white space to fail.
  220.  * 
  221.  * Revision 3.27  88/06/20  14:52:21  tony
  222.  * Merged in changes for BSD Unix sent in by Michael Lichter.
  223.  * 
  224.  * Revision 3.26  88/06/10  13:44:06  tony
  225.  * Fixed a bug involving writing out files with long pathnames. A small
  226.  * fixed size buffer was being used. The space for the backup file name
  227.  * is now allocated dynamically.
  228.  * 
  229.  * Revision 3.25  88/05/04  08:29:02  tony
  230.  * Fixed a minor incompatibility with vi involving the 'G' command. Also
  231.  * changed the RCS version number of version.c to match the actual version
  232.  * of the editor.
  233.  * 
  234.  * Revision 1.12  88/05/03  14:39:52  tony
  235.  * Changed the screen representation of the ascii character DELETE to be
  236.  * compatible with vi. Also merged in support for DOS.
  237.  * 
  238.  * Revision 1.11  88/05/02  21:38:21  tony
  239.  * The code that reads files now handles boundary/error conditions much
  240.  * better, and generates status/error messages that are compatible with
  241.  * the real vi. Also fixed a bug in repeated reverse searches that got
  242.  * inserted in the recent changes to search.c.
  243.  * 
  244.  * Revision 1.10  88/05/02  07:35:41  tony
  245.  * Fixed a bug in the routine plines() that was introduced during changes
  246.  * made for the last version.
  247.  * 
  248.  * Revision 1.9  88/05/01  20:10:19  tony
  249.  * Fixed some problems with auto-indent, and added support for the "number"
  250.  * parameter.
  251.  * 
  252.  * Revision 1.8  88/04/30  20:00:49  tony
  253.  * Added support for the auto-indent feature.
  254.  * 
  255.  * Revision 1.7  88/04/29  14:50:11  tony
  256.  * Fixed a class of bugs involving commands like "ct)" where the cursor
  257.  * motion part of the operator can fail. If the motion failed, the operator
  258.  * was continued, with the cursor position unchanged. Cases like this were
  259.  * modified to abort the operation if the motion fails.
  260.  * 
  261.  * Revision 1.6  88/04/28  08:19:35  tony
  262.  * Modified Henry Spencer's regular expression library to support new
  263.  * features that couldn't be done easily with the existing interface.
  264.  * This code is now a direct part of the editor source code. The editor
  265.  * now supports the "ignorecase" parameter, and multiple substitutions
  266.  * per line, as in "1,$s/foo/bar/g".
  267.  * 
  268.  * Revision 1.5  88/04/24  21:38:00  tony
  269.  * Added preliminary support for the substitute command. Full range specs.
  270.  * are supported, but only a single substitution is allowed on each line.
  271.  * 
  272.  * Revision 1.4  88/04/23  20:41:01  tony
  273.  * Worked around a problem with adding lines to the end of the buffer when
  274.  * the cursor is at the bottom of the screen (in misccmds.c). Also fixed a
  275.  * bug that caused reverse searches from the start of the file to bomb.
  276.  * 
  277.  * Revision 1.3  88/03/24  08:57:00  tony
  278.  * Fixed a bug in cmdline() that had to do with backspacing out of colon
  279.  * commands or searches. Searches were okay, but colon commands backed out
  280.  * one backspace too early.
  281.  * 
  282.  * Revision 1.2  88/03/21  16:47:55  tony
  283.  * Fixed a bug in renum() causing problems with large files (>6400 lines).
  284.  * Also moved system-specific defines out of stevie.h and into a new file
  285.  * named env.h. This keeps volatile information outside the scope of RCS.
  286.  * 
  287.  * Revision 1.1  88/03/20  21:00:39  tony
  288.  * Initial revision
  289.  * 
  290.  */
  291.  
  292. char    *Version = "STEVIE - Version 3.71";
  293.