home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / STVI369G.ZIP / DIFFS < prev    next >
Text File  |  1991-10-23  |  21KB  |  673 lines

  1. diff -cs ./os2.c c:\stevie/os2.c
  2. *** ./os2.c    Tue May 01 22:47:44 1990
  3. --- c:/stevie/os2.c    Tue Oct 08 21:01:06 1991
  4. ***************
  5. *** 39,46 ****
  6.                   return K_LARROW;
  7.               case 0x4d:
  8.                   return K_RARROW;
  9. -             case 0x52:
  10. -                 return K_INSERT;
  11.               case 0x47:        /* Home key */
  12.                   stuffin("1G");
  13.                   return -1;
  14. --- 39,44 ----
  15. ***************
  16. *** 186,194 ****
  17.   void
  18.   beep()
  19.   {
  20. !     in ( P(P_VB) )
  21.           vbeep();
  22.       else
  23.           outone('\007');
  24.   }
  25.   
  26. --- 184,194 ----
  27.   void
  28.   beep()
  29.   {
  30. ! #ifdef VBEEP    /* doesn't seem to work, so just use bell ordinarily */
  31. !     if ( P(P_VB) )
  32.           vbeep();
  33.       else
  34. + #endif
  35.           outone('\007');
  36.   }
  37.   
  38. ***************
  39. *** 295,332 ****
  40.           if (f[i] == '/')
  41.               f[i] = '\\';
  42.   
  43. !     /*
  44. !      * Split the name into directory, base, extension.
  45. !      */
  46. !     if ((p = strrchr(f, '\\')) != NULL) {
  47. !         strcpy(base, p+1);
  48. !         p[1] = '\0';
  49. !     } else {
  50. !         strcpy(base, f);
  51. !         f[0] = '\0';
  52. !     }
  53. !     if ((p = strchr(base, '.')) != NULL) {
  54. !         strcpy(ext, p+1);
  55. !         *p = '\0';
  56. !     } else
  57. !         ext[0] = '\0';
  58. !     /*
  59. !      * Trim the base name if necessary.
  60. !      */
  61. !     if (strlen(base) > 8)
  62. !         base[8] = '\0';
  63.       
  64. !     if (strlen(ext) > 3)
  65. !         ext[3] = '\0';
  66. !     /*
  67. !      * Paste it all back together
  68. !      */
  69. !     strcat(f, base);
  70. !     strcat(f, ".");
  71. !     strcat(f, ext);
  72.   
  73.       return f;
  74.   }
  75. --- 295,334 ----
  76.           if (f[i] == '/')
  77.               f[i] = '\\';
  78.   
  79. !     if (IsFileSystemFAT(f)) {
  80. !         /*
  81. !          * Split the name into directory, base, extension.
  82. !          */
  83. !         if ((p = strrchr(f, '\\')) != NULL) {
  84. !             strcpy(base, p+1);
  85. !             p[1] = '\0';
  86. !         } else {
  87. !             strcpy(base, f);
  88. !             f[0] = '\0';
  89. !         }
  90.       
  91. !         if ((p = strchr(base, '.')) != NULL) {
  92. !             strcpy(ext, p+1);
  93. !             *p = '\0';
  94. !         } else
  95. !             ext[0] = '\0';
  96. !     
  97. !         /*
  98. !          * Trim the base name if necessary.
  99. !          */
  100. !         if (strlen(base) > 8)
  101. !             base[8] = '\0';
  102. !         
  103. !         if (strlen(ext) > 3)
  104. !             ext[3] = '\0';
  105. !     
  106. !         /*
  107. !          * Paste it all back together
  108. !          */
  109. !         strcat(f, base);
  110. !         strcat(f, ".");
  111. !         strcat(f, ext);
  112. !     }
  113.   
  114.       return f;
  115.   }
  116. ***************
  117. *** 362,368 ****
  118.    * windinit(), before you do any setcolor() commands, and
  119.    * do a setcolor() back to the original as part of windexit().
  120.    */
  121. !   int c:
  122.   {
  123.   }
  124.   
  125. --- 364,370 ----
  126.    * windinit(), before you do any setcolor() commands, and
  127.    * do a setcolor() back to the original as part of windexit().
  128.    */
  129. !   int c;
  130.   {
  131.   }
  132.   
  133. ***************
  134. *** 415,418 ****
  135.   
  136.   
  137.   /********** End of do-it-yourself kit **********************/
  138. --- 417,419 ----
  139. diff -cs ./ascii.h c:\stevie/ascii.h
  140. *** ./ascii.h    Wed May 02 00:19:42 1990
  141. --- c:/stevie/ascii.h    Sat Oct 27 00:27:32 1990
  142. ***************
  143. *** 13,17 ****
  144.   
  145.   #define    CTRL(x)    ((x) & 0x1f)
  146.   
  147. ! #define MK_FP (seg,ofs)  ((void far *) \
  148.                   (((unsigned long)(seg) << 16) | (unsigned)(ofs)))
  149. --- 13,17 ----
  150.   
  151.   #define    CTRL(x)    ((x) & 0x1f)
  152.   
  153. ! #define MK_FP(seg,ofs)  ((void far *) \
  154.                   (((unsigned long)(seg) << 16) | (unsigned)(ofs)))
  155. diff -cs ./env.h c:\stevie/env.h
  156. *** ./env.h    Tue May 01 22:26:50 1990
  157. --- c:/stevie/env.h    Tue Oct 08 16:43:30 1991
  158. ***************
  159. *** 11,24 ****
  160.    */
  161.   
  162.   /* #define    ATARI            /* For the Atari ST */
  163. ! #define    UNIX            /* System V or BSD */
  164.   /* #define    OS2            /* Microsoft OS/2 1.1 */
  165.   /* #define    DOS            /* MSDOS 3.3 (on AT) */
  166.   /*
  167.    * If DOS is defined, then a number of other defines are possible:
  168.    */
  169.   #ifdef    DOS
  170. ! #define    TURBOC        /* Use Borland Turbo C.  Otherwise, the code
  171.                * uses Microsoft C.
  172.                */
  173.   /* #define    BIOS    /* Display uses the BIOS routines, rather than
  174. --- 11,25 ----
  175.    */
  176.   
  177.   /* #define    ATARI            /* For the Atari ST */
  178. ! /* #define    UNIX            /* System V or BSD */
  179.   /* #define    OS2            /* Microsoft OS/2 1.1 */
  180.   /* #define    DOS            /* MSDOS 3.3 (on AT) */
  181.   /*
  182.    * If DOS is defined, then a number of other defines are possible:
  183.    */
  184.   #ifdef    DOS
  185. ! /* #define    TURBOC    /* Use Borland Turbo C.  Otherwise, the code
  186.                * uses Microsoft C.
  187.                */
  188.   /* #define    BIOS    /* Display uses the BIOS routines, rather than
  189. ***************
  190. *** 47,53 ****
  191.    * The yank buffer is still static, but its size can be specified
  192.    * here to override the default of 4K.
  193.    */
  194. ! /* #define    YBSIZE    8192        /* yank buffer size */
  195.   
  196.   /*
  197.    * STRCSPN should be defined if the target system doesn't have the
  198. --- 48,54 ----
  199.    * The yank buffer is still static, but its size can be specified
  200.    * here to override the default of 4K.
  201.    */
  202. ! #define    YBSIZE    8192        /* yank buffer size */
  203.   
  204.   /*
  205.    * STRCSPN should be defined if the target system doesn't have the
  206. ***************
  207. *** 54,65 ****
  208.    * routine strcspn() available. See regexp.c for details.
  209.    */
  210.   
  211. ! #ifdef    ATARI
  212. ! #ifdef    MINIX
  213. ! #define    STRCSPN
  214. ! #endif
  215.   #endif
  216.   
  217.   /*
  218. --- 55,64 ----
  219.    * routine strcspn() available. See regexp.c for details.
  220.    */
  221.   
  222. ! #ifdef ATARI
  223. ! #  ifdef MINIX
  224. ! #    define STRCSPN
  225. ! #  endif
  226.   #endif
  227.   
  228.   /*
  229. ***************
  230. *** 74,80 ****
  231.    *    then enabled at runtime with the "tildeop" parameter.
  232.    *
  233.    * HELP
  234. !  *    If defined, a series of help screens may be views with the ":help"
  235.    *    command. This eats a fair amount of data space.
  236.    *
  237.    * TERMCAP
  238. --- 73,79 ----
  239.    *    then enabled at runtime with the "tildeop" parameter.
  240.    *
  241.    * HELP
  242. !  *    If defined, a series of help screens may be viewed with the ":help"
  243.    *    command. This eats a fair amount of data space.
  244.    *
  245.    * TERMCAP
  246. ***************
  247. *** 96,100 ****
  248.    */
  249.   #define    TILDEOP        /* enable tilde to be an operator */
  250.   #define    HELP        /* enable help command */
  251. ! #define    TERMCAP        /* enable termcap support */
  252.   #define    TAGSTACK    /* enable stacking calls to tags */
  253. --- 95,99 ----
  254.    */
  255.   #define    TILDEOP        /* enable tilde to be an operator */
  256.   #define    HELP        /* enable help command */
  257. ! /* #define    TERMCAP        /* enable termcap support */
  258.   #define    TAGSTACK    /* enable stacking calls to tags */
  259. diff -cs ./stevie.h c:\stevie/stevie.h
  260. *** ./stevie.h    Tue May 01 22:22:48 1990
  261. --- c:/stevie/stevie.h    Tue Oct 08 16:20:58 1991
  262. ***************
  263. *** 9,34 ****
  264.   #include <stdio.h>
  265.   #include <ctype.h>
  266.   
  267. ! #ifdef    BSD
  268. ! #include <strings.h>
  269. ! #define strchr index
  270. ! #else
  271. ! #ifdef    MINIX
  272. ! extern    char    *strchr();
  273. ! extern    char    *strrchr();
  274. ! extern    char    *strcpy();
  275. ! extern    char    *strcat();
  276. ! extern    int    strlen();
  277. ! #else
  278. ! #include <string.h>
  279. ! #endif
  280. ! #endif
  281.   
  282.   #include "ascii.h"
  283.   #include "keymap.h"
  284. --- 9,28 ----
  285.   #include <stdio.h>
  286.   #include <ctype.h>
  287.   
  288. ! #ifdef BSD
  289. ! #  include <strings.h>
  290. ! #  define strchr index
  291. ! #else /* !BSD */
  292. ! #  ifdef MINIX
  293. !      extern    char    *strchr();
  294. !      extern    char    *strrchr();
  295. !      extern    char    *strcpy();
  296. !      extern    char    *strcat();
  297. !      extern    int    strlen();
  298. ! #  else /* !MINIX */
  299. ! #    include <string.h>
  300. ! #  endif /* ?MINIX */
  301. ! #endif /* ?BSD */
  302.   
  303.   #include "ascii.h"
  304.   #include "keymap.h"
  305. diff -cs ./term.h c:\stevie/term.h
  306. *** ./term.h    Tue May 01 22:22:56 1990
  307. --- c:/stevie/term.h    Tue Oct 08 16:38:10 1991
  308. ***************
  309. *** 3,23 ****
  310.    * System-dependent escape sequence definitions.
  311.    */
  312.   
  313. ! #ifdef    TERMCAP
  314.   
  315. ! extern char *T_EL;        /* erase the entire current line */
  316. ! extern char *T_IL;        /* insert one line */
  317. ! extern char *T_DL;        /* delete one line */
  318. ! extern char *T_SC;        /* save the cursor position */
  319. ! extern char *T_ED;        /* erase display (may optionally home cursor) */
  320. ! extern char *T_RC;        /* restore the cursor position */
  321. ! extern char *T_CI;        /* invisible cursor (very optional) */
  322. ! extern char *T_CV;        /* visible cursor (very optional) */
  323. ! extern char *T_CM;        /* cursor motion string */
  324. ! #else
  325.   /*
  326.    * This file contains the machine dependent escape sequences that
  327.    * the editor needs to perform various operations. Some of the sequences
  328. --- 3,20 ----
  329.    * System-dependent escape sequence definitions.
  330.    */
  331.   
  332. ! #ifdef TERMCAP
  333. !    extern char *T_EL;        /* erase the entire current line */
  334. !    extern char *T_IL;        /* insert one line */
  335. !    extern char *T_DL;        /* delete one line */
  336. !    extern char *T_SC;        /* save the cursor position */
  337. !    extern char *T_ED;        /* erase display (may optionally home cursor) */
  338. !    extern char *T_RC;        /* restore the cursor position */
  339. !    extern char *T_CI;        /* invisible cursor (very optional) */
  340. !    extern char *T_CV;        /* visible cursor (very optional) */
  341. !    extern char *T_CM;        /* cursor motion string */
  342.   
  343. ! #else /* !TERMCAP */
  344.   /*
  345.    * This file contains the machine dependent escape sequences that
  346.    * the editor needs to perform various operations. Some of the sequences
  347. ***************
  348. *** 30,36 ****
  349.    * There are lots of terminals that have 'index' and 'reverse index'
  350.    * capabilities, but no line insert/delete. For this reason, the editor
  351.    * routines s_ins() and s_del() should be modified to use 'index'
  352. !  * sequences when the line to be inserted or deleted line zero.
  353.    */
  354.   
  355.   /*
  356. --- 27,33 ----
  357.    * There are lots of terminals that have 'index' and 'reverse index'
  358.    * capabilities, but no line insert/delete. For this reason, the editor
  359.    * routines s_ins() and s_del() should be modified to use 'index'
  360. !  * sequences when the line to be inserted or deleted is line zero.
  361.    */
  362.   
  363.   /*
  364. ***************
  365. *** 37,84 ****
  366.    * The macro names here correspond (more or less) to the actual ANSI names
  367.    */
  368.   
  369. ! #ifdef    ATARI
  370. ! #ifdef    MINIX
  371. ! #define    T_EL    "\033[2K"    /* erase the entire current line */
  372. ! #define    T_IL    "\033[L"    /* insert one line */
  373. ! #define    T_DL    "\033[M"    /* delete one line */
  374. ! #define    T_SC    "\0337"        /* save the cursor position */
  375. ! #define    T_ED    "\033[2J"    /* erase display (may optionally home cursor) */
  376. ! #define    T_RC    "\0338"        /* restore the cursor position */
  377. ! #define    T_CI    ""        /* invisible cursor (very optional) */
  378. ! #define    T_CV    ""        /* visible cursor (very optional) */
  379. ! #else
  380. ! #define    T_EL    "\033l"        /* erase the entire current line */
  381. ! #define    T_IL    "\033L"        /* insert one line */
  382. ! #define    T_DL    "\033M"        /* delete one line */
  383. ! #define    T_SC    "\033j"        /* save the cursor position */
  384. ! #define    T_ED    "\033E"        /* erase display (may optionally home cursor) */
  385. ! #define    T_RC    "\033k"        /* restore the cursor position */
  386. ! #define    T_CI    "\033f"        /* invisible cursor (very optional) */
  387. ! #define    T_CV    "\033e"        /* visible cursor (very optional) */
  388.   
  389. ! #endif
  390. ! #endif
  391. ! #ifdef    UNIX
  392.   /*
  393.    * The following sequences are hard-wired for ansi-like terminals. To get
  394.    * termcap support, define TERMCAP in env.h and these sequences go away.
  395.    */
  396. ! #define    T_EL    "\033[2K"    /* erase the entire current line */
  397. ! #define    T_IL    "\033[L"    /* insert one line */
  398. ! #define    T_DL    "\033[M"    /* delete one line */
  399. ! #define    T_ED    "\033[2J"    /* erase display (may optionally home cursor) */
  400. ! #define    T_SC    "\0337"        /* save the cursor position */
  401. ! #define    T_RC    "\0338"        /* restore the cursor position */
  402. ! #define    T_CI    ""        /* invisible cursor (very optional) */
  403. ! #define    T_CV    ""        /* visible cursor (very optional) */
  404. ! #endif
  405.   
  406. ! #ifdef    OS2
  407.   /*
  408.    * The OS/2 ansi console driver is pretty deficient. No insert or delete line
  409.    * sequences. The erase line sequence only erases from the cursor to the end
  410. --- 34,78 ----
  411.    * The macro names here correspond (more or less) to the actual ANSI names
  412.    */
  413.   
  414. ! #  ifdef ATARI
  415. ! #    ifdef MINIX
  416. ! #      define    T_EL    "\033[2K"    /* erase the entire current line */
  417. ! #      define    T_IL    "\033[L"    /* insert one line */
  418. ! #      define    T_DL    "\033[M"    /* delete one line */
  419. ! #      define    T_SC    "\0337"        /* save the cursor position */
  420. ! #      define    T_ED    "\033[2J"     /* erase display (option:  home cursor) */
  421. ! #      define    T_RC    "\0338"        /* restore the cursor position */
  422. ! #      define    T_CI    ""        /* invisible cursor (very optional) */
  423. ! #      define    T_CV    ""        /* visible cursor (very optional) */
  424. ! #    else /* !MINIX */
  425. ! #      define    T_EL    "\033l"        /* erase the entire current line */
  426. ! #      define    T_IL    "\033L"        /* insert one line */
  427. ! #      define    T_DL    "\033M"        /* delete one line */
  428. ! #      define    T_SC    "\033j"        /* save the cursor position */
  429. ! #      define    T_ED    "\033E" /* erase display (may optionally home cursor) */
  430. ! #      define    T_RC    "\033k"        /* restore the cursor position */
  431. ! #      define    T_CI    "\033f"        /* invisible cursor (very optional) */
  432. ! #      define    T_CV    "\033e"        /* visible cursor (very optional) */
  433. ! #    endif /* ?MINIX */
  434. ! #  endif /* ATARI */
  435.   
  436. ! #  ifdef UNIX
  437.   /*
  438.    * The following sequences are hard-wired for ansi-like terminals. To get
  439.    * termcap support, define TERMCAP in env.h and these sequences go away.
  440.    */
  441. ! #    define    T_EL    "\033[2K"    /* erase the entire current line */
  442. ! #    define    T_IL    "\033[L"    /* insert one line */
  443. ! #    define    T_DL    "\033[M"    /* delete one line */
  444. ! #    define    T_ED    "\033[2J"    /* erase display (may home cursor) */
  445. ! #    define    T_SC    "\0337"        /* save the cursor position */
  446. ! #    define    T_RC    "\0338"        /* restore the cursor position */
  447. ! #    define    T_CI    ""        /* invisible cursor (very optional) */
  448. ! #    define    T_CV    ""        /* visible cursor (very optional) */
  449. ! #  endif /* UNIX */
  450.   
  451. ! #  ifdef OS2
  452.   /*
  453.    * The OS/2 ansi console driver is pretty deficient. No insert or delete line
  454.    * sequences. The erase line sequence only erases from the cursor to the end
  455. ***************
  456. *** 90,107 ****
  457.    * available for the rest of the editor via appropriate escape sequences
  458.    * passed to outstr().
  459.    */
  460. ! #define    T_EL    "\033[K"    /* erase the entire current line */
  461. ! #define    T_IL    "\033[L"    /* insert one line - fake (see os2.c) */
  462. ! #define    T_DL    "\033[M"    /* delete one line - fake (see os2.c) */
  463. ! #define    T_ED    "\033[2J"    /* erase display (may optionally home cursor) */
  464. ! #define    T_SC    "\033[s"    /* save the cursor position */
  465. ! #define    T_RC    "\033[u"    /* restore the cursor position */
  466. ! #define    T_CI    ""        /* invisible cursor (very optional) */
  467. ! #define    T_CV    ""        /* visible cursor (very optional) */
  468. ! #endif
  469.   
  470.   
  471. ! #ifdef    DOS
  472.   /*
  473.    * DOS sequences
  474.    *
  475. --- 84,101 ----
  476.    * available for the rest of the editor via appropriate escape sequences
  477.    * passed to outstr().
  478.    */
  479. ! #    define    T_EL    "\033[K"    /* erase the entire current line */
  480. ! #    define    T_IL    "\033[L"    /* insert one line - fake (see os2.c) */
  481. ! #    define    T_DL    "\033[M"    /* delete one line - fake (see os2.c) */
  482. ! #    define    T_ED    "\033[2J"    /* erase display (may home cursor) */
  483. ! #    define    T_SC    "\033[s"    /* save the cursor position */
  484. ! #    define    T_RC    "\033[u"    /* restore the cursor position */
  485. ! #    define    T_CI    ""        /* invisible cursor (very optional) */
  486. ! #    define    T_CV    ""        /* visible cursor (very optional) */
  487. ! #  endif /* OS2 */
  488.   
  489.   
  490. ! #  ifdef DOS
  491.   /*
  492.    * DOS sequences
  493.    *
  494. ***************
  495. *** 109,131 ****
  496.    * console driver. The standard "ansi.sys" driver doesn't support
  497.    * sequences for insert/delete line.
  498.    */
  499. ! #define    T_EL    "\033[K"    /* erase the entire current line */
  500. ! #define    T_IL    "\033[L"    /* insert line (requires nansi.sys driver) */
  501. ! #define    T_DL    "\033[M"    /* delete line (requires nansi.sys driver) */
  502. ! #define    T_ED    "\033[2J"    /* erase display (may optionally home cursor) */
  503. ! #define    T_SC    "\033[s"    /* save the cursor position */
  504. ! #define    T_RC    "\033[u"    /* restore the cursor position */
  505. ! #define    T_CI    ""        /* invisible cursor (very optional) */
  506. ! #define    T_CV    ""        /* visible cursor (very optional) */
  507. ! #endif
  508.   
  509. ! #endif
  510.   
  511.   /*
  512.    * Machine-variant screen handling definitions.
  513.    *
  514.    * Define some macros which for invoking screen functions, whether by
  515. !  * callling a bios function or outputting an escape sequence to be
  516.    * interpreted by a PC console driver or terminal.
  517.    *
  518.    * At this writing, not all of Stevie has been converted to use these
  519. --- 103,125 ----
  520.    * console driver. The standard "ansi.sys" driver doesn't support
  521.    * sequences for insert/delete line.
  522.    */
  523. ! #    define    T_EL    "\033[K"    /* erase the entire current line */
  524. ! #    define    T_IL    "\033[L"    /* insert line (requires nansi.sys) */
  525. ! #    define    T_DL    "\033[M"    /* delete line (requires nansi.sys) */
  526. ! #    define    T_ED    "\033[2J"    /* erase display (may home cursor) */
  527. ! #    define    T_SC    "\033[s"    /* save the cursor position */
  528. ! #    define    T_RC    "\033[u"    /* restore the cursor position */
  529. ! #    define    T_CI    ""        /* invisible cursor (very optional) */
  530. ! #    define    T_CV    ""        /* visible cursor (very optional) */
  531. ! #  endif /* DOS */
  532.   
  533. ! #endif /* ?TERMCAP */
  534.   
  535.   /*
  536.    * Machine-variant screen handling definitions.
  537.    *
  538.    * Define some macros which for invoking screen functions, whether by
  539. !  * calling a bios function or outputting an escape sequence to be
  540.    * interpreted by a PC console driver or terminal.
  541.    *
  542.    * At this writing, not all of Stevie has been converted to use these
  543. ***************
  544. *** 137,177 ****
  545.    */
  546.   
  547.   #ifdef BIOS
  548. ! #define    CANDL        TRUE        /* Can delete lines */
  549. ! #define    CANIL        TRUE        /* Can insert lines */
  550. ! #define    CLEOL        bios_t_el()    /* Erase to end-of-line */
  551. ! #define    CLS        bios_t_ed()    /* Erase entire display */
  552. ! #define    CRTDL(r,l)    bios_t_dl(r,l)    /* Delete lines from display */
  553. ! #define    CRTIL(r,l)    bios_t_il(r,l)    /* Insert lines in display */
  554. ! #define    CUROFF        bios_t_ci()    /* Make cursor invisible */
  555. ! #define    CURON        bios_t_cv()    /* Make cursor visible */
  556. ! #define    RESCUR        bios_t_rc()    /* Restore saved cursor position */
  557. ! #define    SAVCUR        bios_t_sc()    /* Save cursor position */
  558. ! #else        /* Not BIOS */
  559. ! #define    CANDL        (T_DL[0]!='\0')    /* Determine if can delete lines */
  560. ! #define    CANIL        (T_IL[0]!='\0')    /* Determine if can insert lines */
  561. ! #define    CLEOL        outstr(T_EL)    /* Erase to end-of-line */
  562. ! #define    CLS        outstr(T_ED)    /* Erase entire display */
  563. ! #define    CRTDL(r,l)    DO_DL(r,l)    /* Delete lines from display */
  564. ! #define    CRTIL(r,l)    DO_IL(r,l)    /* Insert lines in display */
  565. ! #define    CUROFF        outstr(T_CI)    /* Make cursor invisible */
  566. ! #define    CURON        outstr(T_CV)    /* Make cursor visible */
  567. ! #define    RESCUR        outstr(T_RC)    /* Restore saved cursor position */
  568. ! #define    SAVCUR        outstr(T_SC)    /* Save cursor position */
  569. ! #define    DO_DL(r,l) {\
  570. !     int __xx_knt = l;\
  571. !     while (__xx_knt-- > 0) {outstr(T_DL);}\
  572. ! }
  573. ! #define    DO_IL(r,l) {\
  574. !     int __xx_knt = l;\
  575. !     while (__xx_knt-- > 0) {outstr(T_IL);}\
  576. ! }
  577. ! #endif        /* Not BIOS */
  578.   
  579.   
  580. --- 131,159 ----
  581.    */
  582.   
  583.   #ifdef BIOS
  584. ! #  define    CANDL        TRUE        /* Can delete lines */
  585. ! #  define    CANIL        TRUE        /* Can insert lines */
  586. ! #  define    CLEOL        bios_t_el()    /* Erase to end-of-line */
  587. ! #  define    CLS        bios_t_ed()    /* Erase entire display */
  588. ! #  define    CRTDL(r,l)    bios_t_dl(r,l)    /* Delete lines from display */
  589. ! #  define    CRTIL(r,l)    bios_t_il(r,l)    /* Insert lines in display */
  590. ! #  define    CUROFF        bios_t_ci()    /* Make cursor invisible */
  591. ! #  define    CURON        bios_t_cv()    /* Make cursor visible */
  592. ! #  define    RESCUR        bios_t_rc()    /* Restore saved cursor pos. */
  593. ! #  define    SAVCUR        bios_t_sc()    /* Save cursor position */
  594. ! #else /* !BIOS */
  595. ! #  define    CANDL        (T_DL[0]!='\0')    /* see if can delete lines */
  596. ! #  define    CANIL        (T_IL[0]!='\0')    /* see if can insert lines */
  597. ! #  define    CLEOL        outstr(T_EL)    /* Erase to end-of-line */
  598. ! #  define    CLS        outstr(T_ED)    /* Erase entire display */
  599. ! #  define    CRTDL(r,l)    DO_DL(r,l)    /* Delete lines from display */
  600. ! #  define    CRTIL(r,l)    DO_IL(r,l)    /* Insert lines in display */
  601. ! #  define    CUROFF        outstr(T_CI)    /* Make cursor invisible */
  602. ! #  define    CURON        outstr(T_CV)    /* Make cursor visible */
  603. ! #  define    RESCUR        outstr(T_RC)    /* Restore saved cursor pos. */
  604. ! #  define    SAVCUR        outstr(T_SC)    /* Save cursor position */
  605. ! #  define    DO_DL(r,l)    {int __xx_knt = l; while (__xx_knt-- > 0) {outstr(T_DL);} }
  606. ! #  define    DO_IL(r,l)    {int __xx_knt = l; while (__xx_knt-- > 0) {outstr(T_IL);} }
  607. ! #endif /* ?BIOS */
  608.   
  609.   
  610. diff -cs ./version.c c:\stevie/version.c
  611. *** ./version.c    Tue May 01 22:45:38 1990
  612. --- c:/stevie/version.c    Tue Oct 08 20:59:32 1991
  613. ***************
  614. *** 6,11 ****
  615. --- 6,24 ----
  616.    *
  617.    * $Log:    version.c,v $
  618.    *
  619. +  * Revision 3.69grr  91/10/08          Greg Roelofs
  620. +  *   -  Fixed several errors (typos) in os2.c.
  621. +  *   -  Created new OS/2 makefile for use with MSC's NMAKE; fixed
  622. +  *      some errors (notably, lack of regexp and regsub).
  623. +  *   -  Added a module definition file and incorporated Kai Uwe Rommel's 
  624. +  *      IsFileSystemFAT() code into os2.c to allow for HPFS long filenames.
  625. +  *   -  ifdef'd out the vbeep code, since it doesn't seem to do anything
  626. +  *      under OS/2's ANSI driver (OS/2 1.30.1).
  627. +  *
  628. +  * Revision 3.69b  90/?/?              David Kirschbaum
  629. +  * (May have done something prior to compiling under Turbo C and
  630. +  * uploading to Simtel archives.  May not have, too. :-)  -GRR)
  631. +  *
  632.    * Revision 3.69a  90/02/04            dave
  633.    * A couple of minor bugfixes, and a whole load of enhancements:
  634.    *   -    Added tag-stacking.
  635. ***************
  636. *** 302,305 ****
  637.    * 
  638.    */
  639.   
  640. ! char    *Version = "STEVIE - Version 3.69a";
  641. --- 315,318 ----
  642.    * 
  643.    */
  644.   
  645. ! char    *Version = "STEVIE - Version 3.69grr";
  646.