TIP: Click on subject to list as thread! ANSI
echo: msged_echo
to: All
from: Andrew Clarke
date: 1997-02-06 22:02:22
subject: [1/2] Msged patches from 4.1 to 4.2b1

*** 4.1\spawn.h Sun Feb  2 04:10:00 1997
--- 4.2b\spawn.h Wed Feb  5 14:53:52 1997
***************
*** 1,13 ****
  /*
   *  SPAWN.H
   *
!  *  Released to the public domain.
   *
!  *  Prototypes for SPAWN.ASM.
   */
  
  #ifndef __SPAWN_H__
  #define __SPAWN_H__
  
  #if defined(MSDOS) && defined(__WATCOMC__)
  #define DOSPREF cdecl
--- 1,43 ----
  /*
   *  SPAWN.H
   *
!  *  Prototypes for SPAWN.ASM.  This file released to the public domain.
   *
!  *  These swap routines imply the use of Thomas Wagner's EXEC module
!  *  somewhere in the executable.  If you don't have this (it's free, and
!  *  PD), then simply define NODOSSWAP.
   */
  
  #ifndef __SPAWN_H__
  #define __SPAWN_H__
+ 
+ /* Return codes (only upper byte significant) */
+ 
+ #define RC_PREPERR   0x0100
+ #define RC_NOFILE    0x0200
+ #define RC_EXECERR   0x0300
+ #define RC_ENVERR    0x0400
+ #define RC_SWAPERR   0x0500
+ 
+ /* Swap method and option flags */
+ 
+ #define USE_EMS      0x01
+ #define USE_XMS      0x02
+ #define USE_FILE     0x04
+ #define EMS_FIRST    0x00
+ #define XMS_FIRST    0x10
+ #define HIDE_FILE    0x40
+ #define NO_PREALLOC  0x100
+ #define CHECK_NET    0x200
+ 
+ #define USE_ALL      (USE_EMS | USE_XMS | USE_FILE)
+ 
+ #define SWAP_FILENAME "$msged.swp"
+ 
+ /* internal flags for prep_swap */
+ 
+ #define CREAT_TEMP      0x0080
+ #define DONT_SWAP_ENV   0x4000
  
  #if defined(MSDOS) && defined(__WATCOMC__)
  #define DOSPREF cdecl
*** 4.1\version.h Sun Feb  2 04:10:00 1997
--- 4.2b\version.h Wed Feb  5 15:11:46 1997
***************
*** 7,17 ****
  #ifndef __VERSION_H__
  #define __VERSION_H__
  
! #define BETA 0   /* beta test release? */
  
  #if BETA
! #define CLOSED   " beta 3"
! #define PIDBETA  ".b3"
  #else
  #define CLOSED   ""
  #define PIDBETA  ""
--- 7,17 ----
  #ifndef __VERSION_H__
  #define __VERSION_H__
  
! #define BETA 1   /* beta test release? */
  
  #if BETA
! #define CLOSED   " beta 1"
! #define PIDBETA  ".b1"
  #else
  #define CLOSED   ""
  #define PIDBETA  ""
***************
*** 23,33 ****
   */
  
  #ifndef PIDVER
! #define PIDVER   "4.1"
  #endif
  
  #ifndef VERSION
! #define VERSION  "4.10"
  #endif
  
  #ifdef MSDOS
--- 23,33 ----
   */
  
  #ifndef PIDVER
! #define PIDVER   "4.2"
  #endif
  
  #ifndef VERSION
! #define VERSION  "4.20"
  #endif
  
  #ifdef MSDOS
*** 4.1\msged.h Sun Feb  2 04:10:00 1997
--- 4.2b\msged.h Wed Feb  5 15:20:26 1997
***************
*** 324,330 ****
      int msgids;                 /* add msgid lines */
      int opusdate;               /* put in the opus time stamp */
      int shownotes;              /* show hidden lines */
!     int seenbys;                /* show seenby lines */
      int confirmations;          /* confirm deletes, aborts? */
      int datearrived;            /* show the date msg arrived? */
      int showaddr;               /* shows curr address on screen */
--- 324,332 ----
      int msgids;                 /* add msgid lines */
      int opusdate;               /* put in the opus time stamp */
      int shownotes;              /* show hidden lines */
!     int showseenbys;            /* show seenby lines */
!     int showorigins;            /* show origin lines */
!     int showtearlines;          /* show tearlines */
      int confirmations;          /* confirm deletes, aborts? */
      int datearrived;            /* show the date msg arrived? */
      int showaddr;               /* shows curr address on screen */
*** 4.1\fido.c Sun Feb  2 04:10:00 1997
--- 4.2b\fido.c Wed Feb  5 14:17:30 1997
***************
*** 726,742 ****
      time_t tt;
      unsigned long x;
      x = (arr[0] << 16) | (arr[1] << 24) | arr[2] | (arr[3] << 8);
!     tms.tm_sec = (x & 0x1f) * 2;
      x >>= 5;
!     tms.tm_min = x & 0x3f;
      x >>= 6;
!     tms.tm_hour = x & 0x1f;
      x >>= 5;
!     tms.tm_mday = x & 0x1f;
      x >>= 5;
!     tms.tm_mon = (x & 0x0f) - 1;
      x >>= 4;
!     tms.tm_year = (x & 0x7f) + 80;
      tms.tm_isdst = -1;
      tt = mktime(&tms);
      return tt;
--- 726,742 ----
      time_t tt;
      unsigned long x;
      x = (arr[0] << 16) | (arr[1] << 24) | arr[2] | (arr[3] << 8);
!     tms.tm_sec = (int) ((x & 0x1f) * 2);
      x >>= 5;
!     tms.tm_min = (int) (x & 0x3f);
      x >>= 6;
!     tms.tm_hour = (int) (x & 0x1f);
      x >>= 5;
!     tms.tm_mday = (int) (x & 0x1f);
      x >>= 5;
!     tms.tm_mon = (int) ((x & 0x0f) - 1);
      x >>= 4;
!     tms.tm_year = (int) ((x & 0x7f) + 80);
      tms.tm_isdst = -1;
      tt = mktime(&tms);
      return tt;
*** 4.1\readmail.c Sun Feb  2 04:10:00 1997
--- 4.2b\readmail.c Wed Feb  5 15:18:10 1997
***************
*** 223,229 ****
                  if (strncmp(text + 1, "EOT:", 4) == 0)
                  {
                      goteot = 1;
!                     if (gotsot && !(SW->seenbys || SW->shownotes))
                      {
                          m->soteot = 1;
                      }
--- 223,229 ----
                  if (strncmp(text + 1, "EOT:", 4) == 0)
                  {
                      goteot = 1;
!                     if (gotsot && !(SW->showseenbys ||
SW->shownotes))
                      {
                          m->soteot = 1;
                      }
***************
*** 333,346 ****
          if (*text == 'S')
          {
              if (strncmp(text, "SEEN-BY:", 8) == 0 &&
!               !(SW->seenbys || SW->shownotes) && (!gotsot || goteot))
              {
                  release(text);
                  continue;
              }
          }
  
!         if (goteot && *text == '\n' && !(SW->seenbys
|| SW->shownotes))
          {
              release(text);
              continue;
--- 333,346 ----
          if (*text == 'S')
          {
              if (strncmp(text, "SEEN-BY:", 8) == 0 &&
!               !(SW->showseenbys || SW->shownotes) &&
(!gotsot || goteot))
              {
                  release(text);
                  continue;
              }
          }
  
!         if (goteot && *text == '\n' &&
!(SW->showseenbys || SW->shownotes))
          {
              release(text);
              continue;
***************
*** 404,417 ****
          }
  
          if (strncmp(text, "---", 3) == 0 &&
strncmp(text, "----", 4) != 0 &&
!           !(SW->seenbys || SW->shownotes) && (!gotsot || goteot))
          {
              release(text);
              continue;
          }
  
!           !(SW->seenbys || SW->shownotes) &&
            (!gotsot || goteot))
          {
              release(text);
--- 404,417 ----
          }
  
          if (strncmp(text, "---", 3) == 0 &&
strncmp(text, "----", 4) != 0 &&
!           !(SW->showtearlines || SW->shownotes) && (!gotsot
|| goteot))
          {
              release(text);
              continue;
          }
  
!           !(SW->showorigins || SW->shownotes) &&
            (!gotsot || goteot))
          {
              release(text);
***************
*** 1342,1356 ****
           *  (before the text).
           */
  
!         if (curr)
          {
              curr->next = m->text;
!             if (m->text)
              {
                  m->text->prev = curr;
              }
  
!             while (curr->prev)
              {
                  curr = curr->prev;
              }
--- 1342,1356 ----
           *  (before the text).
           */
  
!         if (curr != NULL)
          {
              curr->next = m->text;
!             if (m->text != NULL)
              {
                  m->text->prev = curr;
              }
  
!             while (curr->prev != NULL)
              {
                  curr = curr->prev;
              }
***************
*** 1386,1402 ****
                  }
                  else
                  {
!                     if (l->next && *(l->next->text) ==
'\n' &&
                        text[strlen(text) - 1] != '\r')
                      {
                          strcat(text, "\r");
                      }
!                     else
                      {
!                         if (!isspace(*(text + strlen(text) - 1)))
!                         {
!                             strcat(text, " ");
!                         }
                      }
                  }
                  release(l->text);
--- 1386,1404 ----
                  }
                  else
                  {
!                     if ((l->next == NULL || *(l->next->text) ==
'\0') &&
                        text[strlen(text) - 1] != '\r')
                      {
                          strcat(text, "\r");
                      }
!                     else if (l->next != NULL &&
*(l->next->text) == '\n' &&
!                       text[strlen(text) - 1] != '\r')
                      {
!                         strcat(text, "\r");
!                     }
!                     else if (!isspace(*(text + strlen(text) - 1)))
!                     {
!                         strcat(text, " ");
                      }
                  }
                  release(l->text);
***************
*** 1409,1415 ****
      /* find the end of the message */
  
      curr = m->text;
!     while (curr->next)
      {
          curr = curr->next;
      }
--- 1411,1417 ----
      /* find the end of the message */
  
      curr = m->text;
!     while (curr->next != NULL)
      {
          curr = curr->next;
      }
*** 4.1\init.c Sun Feb  2 04:10:00 1997
--- 4.2b\init.c Wed Feb  5 15:20:46 1997
***************
*** 107,113 ****
      SW->msgids = YES;
      SW->opusdate = NO;
      SW->shownotes = NO;
!     SW->seenbys = NO;
      SW->confirmations = YES;
      SW->datearrived = YES;
      SW->redraw = YES;
--- 107,115 ----
      SW->msgids = YES;
      SW->opusdate = NO;
      SW->shownotes = NO;
!     SW->showseenbys = NO;
!     SW->showorigins = YES;
!     SW->showtearlines = YES;
      SW->confirmations = YES;
      SW->datearrived = YES;
      SW->redraw = YES;
*** 4.1\areas.c Sun Feb  2 04:10:00 1997
--- 4.2b\areas.c Wed Feb  5 16:12:56 1997
***************
*** 200,206 ****
          if (!*find)
          {
              WndCurr(hPrev);
!             WndClear(16, 0, maxx - 36, 0, cm[CM_NINF]);
              WndWriteStr(0, 0, cm[MN_NTXT], ">>Pick New Area:");
              WndCurr(hWnd);
          }
--- 200,206 ----
          if (!*find)
          {
              WndCurr(hPrev);
!             WndClear(16, 0, maxx - 36, 0, cm[MN_NTXT]);
              WndWriteStr(0, 0, cm[MN_NTXT], ">>Pick New Area:");
              WndCurr(hWnd);
          }
*** 4.1\list.c Sun Feb  2 04:10:00 1997
--- 4.2b\list.c Wed Feb  5 16:36:58 1997
***************
*** 298,304 ****
  
      WndClearLine(0, cm[MN_NTXT]);
      WndClearLine(maxy - 1, cm[MN_NTXT]);
!     WndWriteStr(2, 0, cm[CM_NINF], CurArea.description);
      hCurr = WndTop();
      hWnd = WndOpen(0, 1, maxx - 1, maxy - 2, NBDR | NOSAVE, 0, cm[LS_NTXT]);
      headers = xcalloc(maxy, sizeof(MLHEAD));
--- 298,304 ----
  
      WndClearLine(0, cm[MN_NTXT]);
      WndClearLine(maxy - 1, cm[MN_NTXT]);
!     WndWriteStr(2, 0, cm[LS_TTXT], CurArea.description);
      hCurr = WndTop();
      hWnd = WndOpen(0, 1, maxx - 1, maxy - 2, NBDR | NOSAVE, 0, cm[LS_NTXT]);
      headers = xcalloc(maxy, sizeof(MLHEAD));
***************
*** 319,325 ****
          if (SW->statbar)
          {
              char line[255];
!             sprintf(line, "%c %3ldk ", SC7, (long)(corerem() / 1024));
              WndCurr(WndTop());
              WndPutsn(maxx - 7, maxy - 1, 7, cm[CM_ITXT], line);
              WndCurr(hWnd);
--- 319,325 ----
          if (SW->statbar)
          {
              char line[255];
!             sprintf(line, "%c %3ldK ", SC7, (long)(corerem() / 1024));
              WndCurr(WndTop());
              WndPutsn(maxx - 7, maxy - 1, 7, cm[CM_ITXT], line);
              WndCurr(hWnd);
*** 4.1\wrap.c Sun Feb  2 04:10:00 1997
--- 4.2b\wrap.c Wed Feb  5 16:37:30 1997
***************
*** 2303,2309 ****
          if (mem != oldmem)
          {
              oldmem = mem;
!             sprintf(line, "%c %3ldk ", SC7, (long)(corerem() / 1024));
              WndPutsn(maxx - 7, maxy - 1, 7, cm[CM_ITXT], line);
          }
  #endif
--- 2303,2309 ----
          if (mem != oldmem)
          {
              oldmem = mem;
!             sprintf(line, "%c %3ldK ", SC7, (long)(corerem() / 1024));
              WndPutsn(maxx - 7, maxy - 1, 7, cm[CM_ITXT], line);
          }
  #endif
*** 4.1\nshow.c Sun Feb  2 04:10:00 1997
--- 4.2b\nshow.c Wed Feb  5 16:40:08 1997
***************
*** 100,106 ****
      MouseMnu.cmdtab[1].col = 7 + maxx - MNU_LEN - 1;
      MouseMnu.cmdtab[2].col = 14 + maxx - MNU_LEN - 1;
      MouseMnu.cmdtab[3].col = 21 + maxx - MNU_LEN - 1;
!     MnuSetColours(cm[MN_BTXT], cm[MN_NTXT], cm[MN_STXT]);
  
      /* set up the dialog box colours */
  
--- 100,106 ----
      MouseMnu.cmdtab[1].col = 7 + maxx - MNU_LEN - 1;
      MouseMnu.cmdtab[2].col = 14 + maxx - MNU_LEN - 1;
      MouseMnu.cmdtab[3].col = 21 + maxx - MNU_LEN - 1;
!     MnuSetColours(cm[MN_BTXT], cm[CM_NINF], cm[MN_STXT]);
  
      /* set up the dialog box colours */
  
***************
*** 123,129 ****
  
  void DrawHeader(void)
  {
!     WndClear(0, 0, maxx - 1, 0, cm[CM_NINF]);
  
      memset(line, SC8, maxx);  /* clear dividing line */
      WndPutsn(0, 5, maxx, cm[CM_DTXT], line);
--- 123,129 ----
  
  void DrawHeader(void)
  {
!     WndClear(0, 0, maxx - 1, 4, cm[CM_NINF]);
  
      memset(line, SC8, maxx);  /* clear dividing line */
      WndPutsn(0, 5, maxx, cm[CM_DTXT], line);
***************
*** 132,145 ****
      WndWriteStr(0, 2, cm[CM_FTXT], " To   :");
      WndWriteStr(0, 3, cm[CM_FTXT], " Subj :");
      WndWriteStr(0, 4, cm[CM_FTXT], " Attr :");
- 
- /*
-     if (SW->usemouse)
-     {
-         EVT e;
-         ProcessMenu(&MouseMnu, &e, 1);
-     }
- */
  }
  
  /*
--- 132,137 ----
***************
*** 175,181 ****
  
  void ShowNewArea(void)
  {
!     WndClear(0, 0, maxx - 36, 0, cm[CM_NINF]);
      memset(line, SC8, maxx + 1);  /* clear dividing line */
      WndPutsn(0, 5, maxx, cm[CM_DTXT], line);
      WndWriteStr(2, 0, cm[CM_NINF], CurArea.description);
--- 167,173 ----
  
  void ShowNewArea(void)
  {
!     WndClear(0, 0, maxx - 1, 0, cm[CM_NINF]);
      memset(line, SC8, maxx + 1);  /* clear dividing line */
      WndPutsn(0, 5, maxx, cm[CM_DTXT], line);
      WndWriteStr(2, 0, cm[CM_NINF], CurArea.description);
***************
*** 185,191 ****
          WndWriteStr(3, 5, cm[CM_NINF], line);
          if (dv_running())
          {
!             WndWriteStr(maxx - 7, 5, cm[CM_DTXT], "dv");
          }
      }
      if (SW->usemouse)
--- 177,183 ----
          WndWriteStr(3, 5, cm[CM_NINF], line);
          if (dv_running())
          {
!             WndWriteStr(maxx - 7, 5, cm[CM_DTXT], "DV");
          }
      }
      if (SW->usemouse)
***************
*** 441,447 ****
  #if defined(MSDOS) && !defined(__FLAT__)
      if (SW->statbar)
      {
!         sprintf(line, "%c %3ldk ", SC7, (long)(corerem() / 1024));
          WndPutsn(maxx - 7, maxy - 1, 7, cm[CM_ITXT], line);
      }
  #endif
--- 433,439 ----
  #if defined(MSDOS) && !defined(__FLAT__)
      if (SW->statbar)
      {
!         sprintf(line, "%c %3ldK ", SC7, (long)(corerem() / 1024));
          WndPutsn(maxx - 7, maxy - 1, 7, cm[CM_ITXT], line);
      }
  #endif
--- Blue Wave/OS2 v2.30

SDޝ,
if (strncmp(text, " * Origin:", 10) == 0 &&
if (strncmp(text, " * Origin:", 10) == 0 &&
* Origin: COMM Port OS/2 juge.com 204.89.247.1 (281) 980-9671 (1:106/2000)
SEEN-BY: 633/267 270
@PATH: 106/2000 396/1 270/101 712/624 50/99 635/728 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.