home *** CD-ROM | disk | FTP | other *** search
/ The AGA Experience 2 / agavol2.iso / software / utilities / comms / metamail-2.3a / elm113diffs.lha / f3.diff < prev    next >
Text File  |  1992-05-02  |  2KB  |  115 lines

  1. *** Elm113/f3.c    Sat Apr 18 14:52:52 1992
  2. --- new/f3.c    Fri May 01 02:58:12 1992
  3. ***************
  4. *** 10,15 ****
  5. --- 10,20 ----
  6.   #include <proto/dos.h>
  7.   #include <proto/reqtools.h>
  8.   #endif
  9. + #ifdef DICE
  10. + #include <clib/dos_protos.h>
  11. + #include <clib/exec_protos.h>
  12. + #include <clib/reqtools_protos.h>
  13. + #endif
  14.   #include <libraries/reqtools.h>
  15.   #include <time.h>
  16.   
  17. ***************
  18. *** 668,675 ****
  19.   
  20.   
  21.   
  22. ! void status_msg(char *msg, long delay_time)
  23.   {
  24.     int hpos;
  25.     if (intui_interface()) {
  26.       hpos = (Win_Width-strlen(msg))/2;
  27. --- 673,697 ----
  28.   
  29.   
  30.   
  31. ! #ifdef DICE
  32. ! /* DICE has a compiler option '-gs' for supporting dynamic stack allocation.
  33. !  * At each procedure call the code will check if less than 2000 bytes of
  34. !  * free stack remains. If so, then more stack is allocted. If this allocation
  35. !  * fails (because we are out of memory), stack_abort() is called.
  36. !  *
  37. !  * A requirement for dynamic stack allocation to work is that no procedure has
  38. !  * more than (about) 2000 bytes of local variables.
  39. !  */
  40. ! void stack_abort(void)
  41.   {
  42. +   clean_exit(20);
  43. + }
  44. + #endif
  45. + void status_msg(char *msg, long delay_time)
  46. + {
  47.     int hpos;
  48.     if (intui_interface()) {
  49.       hpos = (Win_Width-strlen(msg))/2;
  50. ***************
  51. *** 686,693 ****
  52.   
  53.   
  54.   
  55. ! char *parse_arpa_from(char *str)
  56.   {
  57.     /** try to parse the 'From:' line given... It can be in one of
  58.         two formats:
  59.               From: Dave Taylor <hpcnou!dat>
  60. --- 708,738 ----
  61.   
  62.   
  63.   
  64. ! #ifdef DICE
  65. ! char *strrev(char *s)
  66.   {
  67. +     char *head, *tail;
  68. +     char temp;
  69. +     head = s;
  70. +     tail = s + strlen(s);
  71. +     tail--;
  72. +     while (head < tail) {
  73. +       temp = *head;
  74. +       *head = *tail;
  75. +       *tail = temp;
  76. +       head++;
  77. +       tail--;
  78. +     }
  79. +     return(s);
  80. + }
  81. + #endif
  82. + char *parse_arpa_from(char *str)
  83. + {
  84.     /** try to parse the 'From:' line given... It can be in one of
  85.         two formats:
  86.               From: Dave Taylor <hpcnou!dat>
  87. ***************
  88. *** 739,744 ****
  89. --- 784,790 ----
  90.       strrev(temp);
  91.     }
  92.   
  93. + #if 0
  94.   /*
  95.     /* We want a REAL name... else NULL... */
  96.   
  97. ***************
  98. *** 770,775 ****
  99. --- 816,822 ----
  100.       }
  101.     }
  102.   */
  103. + #endif
  104.   
  105.     temp = delete_wspaces_begin(temp);
  106.     delete_wspaces_end(temp);
  107.