home *** CD-ROM | disk | FTP | other *** search
/ The UNIX CD Bookshelf / OREILLY_TUCB_UNIX_CD.iso / upt / examples / SOURCES / SC / ALPHA / SC. next >
Encoding:
Text File  |  1998-07-24  |  1.8 KB  |  98 lines

  1. --- ./screen.c.rtr    Mon May 11 14:43:38 1992
  2. +++ ./screen.c    Sat Dec 30 09:37:56 1995
  3. @@ -575,8 +575,10 @@
  4.  stopdisp()
  5.  {
  6.      deraw();
  7. +#if 0
  8.      resetkbd();
  9.      endwin();
  10. +#endif
  11.  #ifdef XENIX2_3
  12.      (void) ioctl (fileno (stdin), TCSETAW, & tmio);
  13.  #endif
  14. @@ -603,7 +605,7 @@
  15.  void
  16.  goraw()
  17.  {
  18. -#if SYSV2 || SYSV3
  19. +#if SYSV2 || SYSV3 || 1
  20.      fixterm();
  21.  #else /* SYSV2 || SYSV3 */
  22.      cbreak();
  23. @@ -622,14 +624,15 @@
  24.      (void) move (LINES - 1, 0);
  25.      (void) clrtoeol();
  26.      (void) refresh();
  27. -#if SYSV2 || SYSV3
  28. +#if SYSV2 || SYSV3 || 1
  29.      resetterm();
  30. +    system("/bin/stty sane");
  31.  #else
  32.      nocbreak();
  33.      nl();
  34.      echo();
  35. -#endif
  36.      resetkbd();
  37. +#endif
  38.  }
  39.  
  40.  #endif /* VMS */
  41. --- ./interp.c.rtr    Sat Dec 30 09:37:55 1995
  42. +++ ./interp.c    Sat Dec 30 09:44:21 1995
  43. @@ -551,7 +551,7 @@
  44.  int which;
  45.  double when;
  46.  {
  47. -    long time();
  48. +    time_t time();
  49.  
  50.      static long t_cache;
  51.      static struct tm tm_cache;
  52. @@ -589,14 +589,14 @@
  53.  char *s;
  54.  {
  55.  #ifndef _AIX
  56. -      char *strtof();
  57. +      char *sc_strtof();
  58.  #endif
  59.      double v;
  60.  
  61.      if (!s)
  62.      return((double)0);
  63.  
  64. -    (void)strtof(s, &v);
  65. +    (void)sc_strtof(s, &v);
  66.      scxfree(s);
  67.      return(v);
  68.  }
  69. --- ./lex.c.rtr    Mon May 11 14:43:36 1992
  70. +++ ./lex.c    Sat Dec 30 09:42:19 1995
  71. @@ -63,7 +63,7 @@
  72.  extern YYSTYPE yylval;
  73.  #endif /* hpux */
  74.  
  75. -char *strtof();
  76. +char *sc_strtof();
  77.  
  78.  jmp_buf wakeup;
  79.  jmp_buf fpe_buf;
  80. @@ -192,7 +192,7 @@
  81.      }
  82.      if (*p=='.' || *p == 'e' || *p == 'E') {
  83.          ret = FNUMBER;
  84. -        p = strtof(nstart, &yylval.fval);
  85. +        p = sc_strtof(nstart, &yylval.fval);
  86.      } else {
  87.          /* A NUMBER must hold at least MAXROW and MAXCOL */
  88.          /* This is consistent with a short row and col in struct ent */
  89. @@ -655,7 +655,7 @@
  90.   */
  91.  
  92.  char *
  93. -strtof(p, res)
  94. +sc_strtof(p, res)
  95.  register char *p;
  96.  double *res;
  97.  {
  98.