home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / others / crypt / pgp262st / diff.st < prev    next >
Encoding:
Text File  |  1994-12-17  |  4.4 KB  |  156 lines

  1. diff -cwB pgp262.old/src/makefile pgp262/src/makefile
  2. *** pgp262.old/src/makefile    Thu Oct 13 17:33:34 1994
  3. --- pgp262/src/makefile    Sun Dec 18 02:53:16 1994
  4. ***************
  5. *** 151,156 ****
  6. --- 151,161 ----
  7.   $(PROJ):    $(OBJS)
  8.           $(LD) -o $(PROJ) $(OBJS) $(LDFLAGS) $(LIBS_EXT) $(RSALIBS)
  9.   
  10. + # Atari-version with gcc
  11. + atari:
  12. +     $(MAKE) all CC=gcc LD=gcc LIBS_EXT=-liio RSALIBS=-lrsaref PROJ=pgp.ttp \
  13. +     CFLAGS="$(RSAINCDIR) $(USEMPILIB) -O -DATARI -DHIGHFIRST -DPORTABLE -DUNIT32 -DIDEA32"
  14.   #  Commodore Amiga Running SVR4 2.1p2a with GCC 2.6.0 LER
  15.   amix-68k-gcc:
  16.       $(MAKE) all CC=gcc LD=gcc \
  17. diff -cwB pgp262.old/src/pgp.c pgp262/src/pgp.c
  18. *** pgp262.old/src/pgp.c    Tue Oct 11 17:26:10 1994
  19. --- pgp262/src/pgp.c    Sat Dec 17 21:52:28 1994
  20. ***************
  21. *** 848,854 ****
  22. --- 848,858 ----
  23.       workfile = tempfile(TMP_WIPE | TMP_TMPDIR);
  24.       readPhantomInput(workfile);
  25.       } else {
  26. + #ifdef ATARI            /* problem with Mintlibs:         */
  27. +     workfile = plainfile;    /* lost inputfile in 'signfile()' */
  28. + #else
  29.       workfile = inputfile;
  30. + #endif
  31.       }
  32.   
  33.       get_header_info_from_file(workfile, &ctb, 1);
  34. ***************
  35. *** 1170,1181 ****
  36.   #endif
  37.   #endif                /* MSDOS */
  38.   #ifdef SIGINT
  39. - #ifdef ATARI
  40. -     signal(SIGINT, (sigfunc_t) breakHandler);
  41. - #else
  42.       if (signal(SIGINT, SIG_IGN) != SIG_IGN)
  43.       signal(SIGINT, breakHandler);
  44. ! #if defined(UNIX) || defined(VMS)
  45.       if (signal(SIGHUP, SIG_IGN) != SIG_IGN)
  46.       signal(SIGHUP, breakHandler);
  47.       if (signal(SIGQUIT, SIG_IGN) != SIG_IGN)
  48. --- 1174,1182 ----
  49.   #endif
  50.   #endif                /* MSDOS */
  51.   #ifdef SIGINT
  52.       if (signal(SIGINT, SIG_IGN) != SIG_IGN)
  53.       signal(SIGINT, breakHandler);
  54. ! #if defined(UNIX) || defined(VMS) || defined(ATARI)
  55.       if (signal(SIGHUP, SIG_IGN) != SIG_IGN)
  56.       signal(SIGHUP, breakHandler);
  57.       if (signal(SIGQUIT, SIG_IGN) != SIG_IGN)
  58. ***************
  59. *** 1193,1199 ****
  60.   #endif
  61.   #endif                /* DEBUG */
  62.   #endif                /* UNIX */
  63. - #endif                /* not Atari */
  64.   #endif                /* SIGINT */
  65.   }                /* initsigs */
  66.   
  67. --- 1194,1199 ----
  68. diff -cwB pgp262.old/src/pgp.h pgp262/src/pgp.h
  69. *** pgp262.old/src/pgp.h    Tue Oct 11 17:26:10 1994
  70. --- pgp262/src/pgp.h    Sat Dec 17 21:53:36 1994
  71. ***************
  72. *** 30,39 ****
  73.   #endif
  74.   #endif
  75.   
  76. - #ifdef ATARI
  77. - #define sizeof(x) (int)sizeof(x)
  78. - #define fread(a,b,c,d)    ((int)fread(a,b,c,d))
  79. - #endif
  80.   
  81.   /*
  82.   **********************************************************************
  83. --- 30,35 ----
  84. diff -cwB pgp262.old/src/rsaglue2.c pgp262/src/rsaglue2.c
  85. *** pgp262.old/src/rsaglue2.c    Sun Oct  2 23:23:32 1994
  86. --- pgp262/src/rsaglue2.c    Sun Dec 18 02:19:52 1994
  87. ***************
  88. *** 52,60 ****
  89.   Uses the RSAREF(tm) Toolkit, which is copyright RSA Data Security, Inc.\n\
  90.   Distributed by the Massachusetts Institute of Technology.\n");
  91.   
  92. ! #include <global.h>
  93. ! #include <rsaref.h>
  94. ! #include <rsa.h>
  95.   /*
  96.    * The functions we call in rsa.h are:
  97.    *
  98. --- 52,60 ----
  99.   Uses the RSAREF(tm) Toolkit, which is copyright RSA Data Security, Inc.\n\
  100.   Distributed by the Massachusetts Institute of Technology.\n");
  101.   
  102. ! #include "global.h"
  103. ! #include "rsaref.h"
  104. ! #include "rsa.h"
  105.   /*
  106.    * The functions we call in rsa.h are:
  107.    *
  108. diff -cwB pgp262.old/src/system.c pgp262/src/system.c
  109. *** pgp262.old/src/system.c    Tue Oct 11 17:26:12 1994
  110. --- pgp262/src/system.c    Sat Dec 17 21:59:54 1994
  111. ***************
  112. *** 1707,1714 ****
  113.    */
  114.   
  115.   #ifdef ATARI
  116. ! #include <string.h>
  117. ! #endif
  118.   
  119.   #if !defined(MSDOS) && !defined(ATARI)
  120.   #include <ctype.h>
  121. --- 1707,1724 ----
  122.    */
  123.   
  124.   #ifdef ATARI
  125. ! #include <osbind.h>        /* use GEMDOS functions for I/O */
  126. ! int kbhit(void)
  127. ! {
  128. !     return Cconis();    /* ret == 0 : no char available */
  129. ! }
  130. ! int getch(void)
  131. ! {
  132. !     return (Cnecin() & 0x000000FF);    /* ASCII-Code in Bits 0..7   */
  133. ! }                    /* Scan-Codes in Bits 16..23 */
  134. ! #endif /* ATARI */
  135.   
  136.   #if !defined(MSDOS) && !defined(ATARI)
  137.   #include <ctype.h>
  138. diff -cwB pgp262.old/src/zdeflate.c pgp262/src/zdeflate.c
  139. *** pgp262.old/src/zdeflate.c    Fri Jul 15 13:59:40 1994
  140. --- pgp262/src/zdeflate.c    Sat Dec 17 22:01:14 1994
  141. ***************
  142. *** 220,228 ****
  143.    *  MSDOS but not Unix. However the asm version version is recommended
  144.    *  for 386 Unix.
  145.    */
  146. - #ifdef ATARI_ST
  147. - #  undef MSDOS /* avoid the processor specific parts */
  148. - #endif
  149.   #if defined(MSDOS) && !defined(NO_ASM) && !defined(ASM)
  150.   #  define ASM
  151.   #endif
  152. --- 220,225 ----
  153.