summaryrefslogtreecommitdiff
path: root/issue.h
diff options
context:
space:
mode:
authorNick White <arch@njw.me.uk>2007-04-29 13:07:45 +0000
committerNick White <arch@njw.me.uk>2007-04-29 13:07:45 +0000
commit1f0a1fd57bd1dbddab4ad189a721fbe67f59ca3a (patch)
tree0e923adfe47783a5329f8871fdbb2245bca7f261 /issue.h
parente2296304a88112cad84482e0a06b2504e51a3b21 (diff)
Completed issue malloc, fixed build warnings
Used malloc to dynamically assign enough memory for sections, items, and media, using the functionality of issuemem.c Included some function definitions in issue.h to remove various build warnings git-archimport-id: getht@sv.gnu.org/getht--mainline--0.1--patch-21
Diffstat (limited to 'issue.h')
-rw-r--r--issue.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/issue.h b/issue.h
index cfb6e72..6c25ef0 100644
--- a/issue.h
+++ b/issue.h
@@ -45,7 +45,7 @@ typedef struct
char title[512];
int number;
int size;
- it item[ITEM_NO];
+ it ** item;
int no_of_items;
} sec;
@@ -64,8 +64,15 @@ typedef struct
char title[512];
int size;
issdates date;
- sec section[SEC_NO];
+ sec ** section;
int no_of_sections;
- med media[MED_NO];
+ med ** media;
int no_of_media;
} iss;
+
+iss ** parsetoc(char *filepath, int * iss_no, int * latest);
+iss ** parsemedia(char * filepath, iss ** issue, int * no_of_issues);
+
+iss ** assignnew_iss(int *no_of_issues, iss ** issue);
+sec ** assignnew_sec(int *no_of_sections, sec ** section);
+it ** assignnew_it(int * no_of_items, it ** item);