FreeCalypso > hg > tcs211-patches
changeset 5:5ba13fd0e737
ti-libpatch: archive member vars moved into globals.[ch]
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Sat, 06 Jun 2015 03:16:28 +0000 |
parents | e33380b5bd46 |
children | 87e9f30f5f86 |
files | tool/archive.c tool/globals.c tool/globals.h tool/main.c |
diffstat | 4 files changed, 11 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/tool/archive.c Sat Jun 06 03:14:02 2015 +0000 +++ b/tool/archive.c Sat Jun 06 03:16:28 2015 +0000 @@ -11,9 +11,6 @@ #include "globals.h" struct ar_hdr ar_hdr; -char member_name[17]; -unsigned member_size; -u_char *member_body; process_archive() {
--- a/tool/globals.c Sat Jun 06 03:14:02 2015 +0000 +++ b/tool/globals.c Sat Jun 06 03:16:28 2015 +0000 @@ -2,6 +2,12 @@ * This module contains global variable definitions for our libpatch tool. */ +#include <sys/types.h> + char *lib_in_filename, *lib_out_filename; char *patch_desc_filename; struct patch_module_desc *patch_module_list; + +char member_name[17]; +unsigned member_size; +u_char *member_body;
--- a/tool/globals.h Sat Jun 06 03:14:02 2015 +0000 +++ b/tool/globals.h Sat Jun 06 03:16:28 2015 +0000 @@ -3,3 +3,7 @@ extern char *lib_in_filename, *lib_out_filename; extern char *patch_desc_filename; extern struct patch_module_desc *patch_module_list; + +extern char member_name[]; +extern unsigned member_size; +extern u_char *member_body;