FreeCalypso > hg > tcs211-patches
annotate tool/main.c @ 3:003df9892e57
import original TCS211 libs from Sotovik
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Fri, 05 Jun 2015 21:19:08 +0000 |
parents | 058d377fc299 |
children | 5ba13fd0e737 |
rev | line source |
---|---|
0
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
1 /* |
2
058d377fc299
ti-libpatch: archive processing implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
0
diff
changeset
|
2 * ti-libpatch main module |
0
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
3 */ |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
4 |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
5 #include <stdio.h> |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
6 #include <stdlib.h> |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
7 #include "globals.h" |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
8 |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
9 main(argc, argv) |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
10 char **argv; |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
11 { |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
12 if (argc != 4) { |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
13 fprintf(stderr, "usage: %s in.out patch-desc out.lib\n", |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
14 argv[0]); |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
15 exit(1); |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
16 } |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
17 lib_in_filename = argv[1]; |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
18 patch_desc_filename = argv[2]; |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
19 lib_out_filename = argv[3]; |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
20 read_spec_file(); |
2
058d377fc299
ti-libpatch: archive processing implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
0
diff
changeset
|
21 process_archive(); |
0
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
22 exit(0); |
12e230d431f0
started writing libpatch tool
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
23 } |