home *** CD-ROM | disk | FTP | other *** search
- Binary files indent-1.3-Kick-2.0/indent and indent-1.3-Kick-1.3/indent differ
- diff -c indent-1.3-Kick-2.0/indent.c indent-1.3-Kick-1.3/indent.c
- *** indent-1.3-Kick-2.0/indent.c Mon Jun 08 19:02:00 1992
- --- indent-1.3-Kick-1.3/indent.c Mon Jun 08 19:19:36 1992
- ***************
- *** 35,49 ****
-
- #ifdef AMIGA
- #include <exec/types.h>
- ! #include <dos/dos.h>
- ! #include <dos/dosextens.h>
- ! #include <dos/dosasl.h>
- #include <proto/dos.h>
-
- #define MAXPATH 200
- #define MAXARGS 256
-
- ! extern struct DosLibrary *DOSBase;
-
- int expand_args ();
- #endif
- --- 35,51 ----
-
- #ifdef AMIGA
- #include <exec/types.h>
- ! #include <libraries/dos.h>
- ! #include <libraries/dosextens.h>
- ! #include <libraries/arpbase.h>
- ! #include <proto/arp.h>
- #include <proto/dos.h>
- + #include <proto/exec.h>
-
- #define MAXPATH 200
- #define MAXARGS 256
-
- ! struct ArpBase *ArpBase;
-
- int expand_args ();
- #endif
- ***************
- *** 1541,1546 ****
- --- 1543,1549 ----
- int using_stdin = false;
- #ifdef AMIGA
- int ex_err;
- + int close_arp();
- #endif
-
- #ifdef DEBUG
- ***************
- *** 1549,1559 ****
- #endif
-
- #ifdef AMIGA
- ! if (DOSBase->dl_lib.lib_Version < 37)
- ! {
- ! fprintf (stderr, "You must have Kickstart 2.0 (V37) or higher!\n");
- ! exit (20);
- ! }
-
- if (argc == 2 && stricmp (argv[1],"-h") == 0)
- {
- --- 1552,1564 ----
- #endif
-
- #ifdef AMIGA
- ! ArpBase = (struct ArpBase *) OpenLibrary("arp.library",39);
- ! if (ArpBase != NULL)
- ! if(!onexit(close_arp))
- ! {
- ! fprintf (stderr, "Couldn't initialize properly\n");
- ! exit (20);
- ! }
-
- if (argc == 2 && stricmp (argv[1],"-h") == 0)
- {
- ***************
- *** 1561,1575 ****
- exit (0);
- }
-
- ! if ((ex_err = expand_args (&argc, &argv)) == 0)
- {
- ! fprintf (stderr, "Couldn't expand wildcards\n");
- ! exit (20);
- ! }
- ! if (ex_err == 2)
- ! {
- ! fprintf (stderr, "Wildcards didn't match a file\n");
- ! exit (5);
- }
- #endif
-
- --- 1566,1583 ----
- exit (0);
- }
-
- ! if (ArpBase != NULL)
- {
- ! if ((ex_err = expand_args (&argc, &argv)) == 0)
- ! {
- ! fprintf (stderr, "Couldn't expand wildcards\n");
- ! exit (20);
- ! }
- ! if (ex_err == 2)
- ! {
- ! fprintf (stderr, "Wildcards didn't match a file\n");
- ! exit (5);
- ! }
- }
- #endif
-
- ***************
- *** 1756,1767 ****
- an = malloc (sizeof (struct AnchorPath) + MAXPATH);
- memset (an, 0, sizeof (struct AnchorPath) + MAXPATH);
- an->ap_BreakBits = SIGBREAKF_CTRL_C;
- ! an->ap_Strlen = MAXPATH;
- ! an->ap_Flags = APF_DOWILD;
- ! err = MatchFirst (pattern, an);
- }
- else
- ! err = MatchNext (an);
-
- /* Expand only files */
- if (an->ap_Info.fib_DirEntryType < 0)
- --- 1764,1775 ----
- an = malloc (sizeof (struct AnchorPath) + MAXPATH);
- memset (an, 0, sizeof (struct AnchorPath) + MAXPATH);
- an->ap_BreakBits = SIGBREAKF_CTRL_C;
- ! an->ap_StrLen = MAXPATH;
- ! an->ap_Flags = APF_DoWild;
- ! err = FindFirst (pattern, an);
- }
- else
- ! err = FindNext (an);
-
- /* Expand only files */
- if (an->ap_Info.fib_DirEntryType < 0)
- ***************
- *** 1770,1776 ****
-
- if (err)
- {
- ! MatchEnd (an);
- free (an);
- an = NULL;
- return NULL;
- --- 1778,1784 ----
-
- if (err)
- {
- ! FreeAnchorChain (an);
- free (an);
- an = NULL;
- return NULL;
- ***************
- *** 1814,1820 ****
- argv[argc++] = (*oargv)[0];
- for (i = 1; i < *oargc; i++)
- {
- ! if (ParsePattern ((*oargv)[i], buf, MAXPATH))
- {
- contains_wildcards = 1;
- num_matches = 0;
- --- 1822,1828 ----
- argv[argc++] = (*oargv)[0];
- for (i = 1; i < *oargc; i++)
- {
- ! if (PreParse ((*oargv)[i], buf))
- {
- contains_wildcards = 1;
- num_matches = 0;
- ***************
- *** 1854,1858 ****
- --- 1862,1876 ----
- return 2;
- else
- return 1;
- + }
- +
- +
- + int
- + close_arp(i)
- + int i;
- + {
- + if (ArpBase != NULL)
- + CloseLibrary ((struct Library *) ArpBase);
- + return (i);
- }
- #endif
- diff -c indent-1.3-Kick-2.0/io.c indent-1.3-Kick-1.3/io.c
- *** indent-1.3-Kick-2.0/io.c Fri Jun 05 21:45:50 1992
- --- indent-1.3-Kick-1.3/io.c Mon Jun 08 19:16:50 1992
- ***************
- *** 31,37 ****
-
- #ifdef AMIGA
- #include <exec/types.h>
- ! #include <dos/dos.h>
- #include <proto/dos.h>
- #define bcopy(s,d,l) memcpy(d,s,l)
- #else
- --- 31,37 ----
-
- #ifdef AMIGA
- #include <exec/types.h>
- ! #include <libraries/dos.h>
- #include <proto/dos.h>
- #define bcopy(s,d,l) memcpy(d,s,l)
- #else
-