home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / language / sozosun / tools.dif < prev    next >
Encoding:
Text File  |  1993-10-23  |  4.1 KB  |  241 lines

  1. Only in tools: Makefile
  2. diff ../stsrc/tools/ar.c tools/ar.c
  3. 9a10,13
  4. >  *
  5. >  * MODIFIED:
  6. >  *    10/1990 K. Dalton   added minor changes for BSD Unix
  7. >  *
  8. 11a16
  9. > #ifdef BSD
  10. 13c18,22
  11. < "ar: version 1.01  Copyright (c) 1988 by Sozobon, Limited.";
  12. ---
  13. > "ar: version 1.01  Copyright (c) 1988 by Sozobon, Limited.\nar: BSD UNIX port 0.01 Kent Dalton 10/1990";
  14. > #else
  15. > static    char    Version[] =
  16. > "ar: version 1.01  Copyright (c) 1988 by Sozobon, Limited.\n";
  17. > #endif
  18. 21c30
  19. < #include <ar.h>
  20. ---
  21. > #include "ar.h"
  22. 71a81,85
  23. > #ifdef BSD
  24. >         char chmstr[1024];
  25. > #endif
  26. >         int dodelete(), doreplace(), doqappend(), dotable(), doprint(),
  27. >           domove(), doextract();
  28. 134a149,151
  29. > #ifdef BSD
  30. >     if (strrchr(afile, '/') != NULL) {
  31. > #else
  32. 135a153
  33. > #endif
  34. 137c155,159
  35. <         s = strrchr(tfile, '\\');
  36. ---
  37. > #ifdef BSD
  38. >         s = strrchr(tfile, '/');
  39. > #else
  40. >                 s = strrchr(tfile, '\\');
  41. > #endif
  42. 176a199,202
  43. > #ifdef BSD
  44. >         sprintf(chmstr,"chmod 660 %s",afile);
  45. >         system(chmstr);
  46. > #endif
  47. 261c287
  48. <     int    magic;
  49. ---
  50. >     unsigned short magic;
  51. 394c420
  52. <     int    magic;
  53. ---
  54. >     unsigned short    magic;
  55. Only in tools: ar.c.~1~
  56. Only in tools: ar.h
  57. diff ../stsrc/tools/cc.c tools/cc.c
  58. 9a10,13
  59. >  *
  60. >  * MODIFIED:
  61. >  *    10/1990  K. Dalton   added minor changes for BSD Unix
  62. >  *
  63. 11a16
  64. > #ifdef BSD
  65. 13c18,22
  66. < "cc: version 1.01  Copyright (c) 1988 by Sozobon, Limited.";
  67. ---
  68. > "cc: version 1.01  Copyright (c) 1988 by Sozobon, Limited.\ncc: BSD UNIX port 0.01 by Kent Dalton 10/1990";
  69. > #else
  70. > static    char    Version[] =
  71. > "cc: version 1.01  Copyright (c) 1988 by Sozobon, Limited.\n";
  72. > #endif
  73. 23a33,35
  74. > #ifdef BSD
  75. > #include <string.h>
  76. > #else
  77. 24a37
  78. > #endif
  79. 70c83,88
  80. < #define    LD    "ld"
  81. ---
  82. > #ifdef BSD
  83. > #define    LD    "sld"
  84. > #else
  85. > #define LD      "ld"
  86. > #endif
  87. 94a113,116
  88. > #ifdef BSD
  89. > #define    DEFPATH        "/bin,/sozobon/bin"
  90. > #define    DEFLIB        "/lib,/sozobon/lib"
  91. > #else
  92. 96a119,120
  93. > #endif
  94. 127a152,156
  95. > #ifdef BSD
  96. > char    cmdln[1024];
  97. > #else
  98. > char    cmdln[512];
  99. > #endif
  100. 129,130d157
  101. < char    cmdln[512];
  102. 167c194
  103. < main(argc, argv)
  104. ---
  105. > main(argc, argv, envp)
  106. 169c196,197
  107. < char    *argv[];
  108. ---
  109. > char    *argv[],
  110. >         *envp[];
  111. 377a406,410
  112. > #ifdef BSD
  113. >     static    char    file[1024];
  114. >     char    env[2048];
  115. >     char    suf[1024];
  116. > #else
  117. 380a414
  118. > #endif
  119. 391c425
  120. <             if (*p == ';' || *p == ',')
  121. ---
  122. >             if (*p == ':' || *p == ';' || *p == ',')
  123. 416a451,453
  124. > #ifdef BSD
  125. >         sprintf(file, "/%s%s", b, sptr);
  126. > #else
  127. 418c455
  128. ---
  129. > #endif
  130. 427a465,467
  131. > #ifdef BSD
  132. >             sprintf(file, "%s/%s", eptr, b);
  133. > #else
  134. 428a469
  135. > #endif
  136. 434c475,477
  137. ---
  138. > #ifdef BSD
  139. >             sprintf(file, "%s/%s%s", eptr, b, sptr);
  140. > #else
  141. 436c479
  142. ---
  143. > #endif
  144. 458c501,506
  145. <     char    cmd[150];
  146. ---
  147. > #ifdef BSD
  148. >     char    cmd[1024],
  149. >                 *arg[200];
  150. > #else
  151. >     char    cmd[150];
  152. > #endif
  153. 459a508
  154. > #ifndef BSD
  155. 461d509
  156. <     cmd[0] = strlen(cmdline);
  157. 462a511
  158. >     cmd[0] = strlen(cmdline);
  159. 463a513,516
  160. > #else
  161. >         strcpy(cmd, path);
  162. >         strcat(cmd, " ");
  163. >         strcat(cmd, cmdline);
  164. 464a518,520
  165. >     i = system(cmd);
  166. > #endif
  167. 554a611,613
  168. > #ifdef BSD
  169. >     char    apath[1024], *dpath;
  170. > #else
  171. 555a615
  172. > #endif
  173. 576a637,639
  174. > #ifdef BSD
  175. >         if ((s = strrchr(dpath, '/')) == NULL) {
  176. > #else
  177. 577a641
  178. > #endif
  179. 628c692,696
  180. <     char    tfile[128];
  181. ---
  182. > #ifdef BSD
  183. >         char    tfile[1024];
  184. > #else
  185. >         char    tfile[128];
  186. > #endif
  187. 640a709,712
  188. > #ifdef BSD
  189. >         if (tfile[strlen(tfile)-1] != '/')
  190. >             strcat(tfile, "/");
  191. > #else
  192. 642a715
  193. > #endif
  194. 657c730
  195. <     l = pflag ? PCSU : CSU;
  196. ---
  197. >         if((l=getenv("CSU")) == NULL) l = pflag ? PCSU : CSU;
  198. 691c764,765
  199. <         l = pflag ? PLIBM : LIBM;
  200. ---
  201. >                 if((l=getenv("LIBM"))==NULL)
  202. >           l = pflag ? PLIBM : LIBM;
  203. 699c773,774
  204. <     l = pflag ? PLIBC : LIBC;
  205. ---
  206. >     if((l=getenv("LIBC")) == NULL)
  207. >       l = pflag ? PLIBC : LIBC;
  208. Only in tools: cc.c.~1~
  209. Only in ../stsrc/tools: globs.c
  210. Only in ../stsrc/tools: makefile
  211. diff ../stsrc/tools/nm.c tools/nm.c
  212. 15c15
  213. < #include <ar.h>
  214. ---
  215. > #include "ar.h"
  216. 18c18
  217. <     int magic;
  218. ---
  219. >     unsigned short magic;
  220. diff ../stsrc/tools/size.c tools/size.c
  221. 17c17
  222. < #include <ar.h>
  223. ---
  224. > #include "ar.h"
  225. 23c23
  226. <     int    magic;
  227. ---
  228. >     unsigned short magic;
  229. 77c77
  230. <     int    magic;
  231. ---
  232. >     unsigned short magic;
  233. Only in ../stsrc/tools: tools.lzh
  234.