this repo has no description
1/*
2 app.c
3 Copyright (C) 2009 Paul C. Pratt
4
5 You can redistribute this file and/or modify it under the terms
6 of version 2 of the GNU General Public License as published by
7 the Free Software Foundation. You should have received a copy
8 of the license along with this file; see the file COPYING.
9
10 This file is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 license for more details.
14*/
15
16#include <stdio.h>
17#include <stdlib.h>
18#include <string.h>
19
20
21#include "COREDEFS.i"
22
23
24#define MyMoveBytes(src, dst, n) \
25 (void) memmove((void *)(dst), (void *)(src), n)
26
27#define kMyErr_noErr 0 /* no error */
28
29#define kMyErrReported 1029
30 /* already notified user, no further report needed */
31#define kMyErrNoMatch 1030
32 /* (so try something else) always should be handled, not reported */
33
34
35#include "STRUTILS.i"
36
37#include "CMDARGT1.i"
38
39#include "WRTEXTFL.i"
40
41#include "SPBASDEF.i"
42
43#include "GNBLDOPT.i"
44#ifdef Have_SPBLDOPT
45#include "SPBLDOPT.i"
46#endif
47
48#include "BLDUTIL3.i"
49
50#include "DFFILDEF.i"
51#include "SPFILDEF.i"
52
53#include "USFILDEF.i"
54#include "WRMACRES.i"
55#include "WRMPLIST.i"
56#include "WRCNFGGL.i"
57#include "WRCNFGAP.i"
58
59#include "WRMPWFLS.i"
60#include "WRMW8FLS.i"
61#include "WRMVCFLS.i"
62#include "WRBGCFLS.i"
63#include "WRSNCFLS.i"
64#include "WRMSCFLS.i"
65#include "WRLCCFLS.i"
66#include "WRDVCFLS.i"
67#include "WRXCDFLS.i"
68#include "WRDMCFLS.i"
69#include "WRPLCFLS.i"
70#include "WRCCCFLS.i"
71
72#ifdef Have_SPCNFGGL
73#include "SPCNFGGL.i"
74#endif
75#ifdef Have_SPCNFGAP
76#include "SPCNFGAP.i"
77#endif
78#include "SPOTHRCF.i"
79
80#include "BLDUTIL4.i"
81
82int main(int argc, char *argv[])
83{
84 tMyErr err;
85 int return_code = 1;
86
87 BeginParseCommandLineArguments(argc, argv);
88
89 err = DoTheCommand();
90
91 if (kMyErr_noErr == err) {
92 return_code = 0;
93 } else {
94 if (kMyErrReported != err) {
95 fprintf(stderr, "Unknown Error in %s", argv[0]);
96 }
97 }
98
99 return return_code;
100}