3 Copyright (C) 1989-1995 Alan R. Baldwin
4 721 Berkeley St., Kent, Ohio 44240
5 Copyright (C) 2008 Borut Razem, borut dot razem at siol dot net
7 This program is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the
9 Free Software Foundation; either version 2, or (at your option) any
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
22 * With contributions for the
23 * object libraries from
25 * kenh@cmf.nrl.navy.mil
30 * Extensions: P. Felber
39 typedef struct slibrarysymbol mlibrarysymbol;
40 typedef struct slibrarysymbol *pmlibrarysymbol;
44 char *name; /* Warning: allocate memory before using */
48 typedef struct slibraryfile mlibraryfile;
49 typedef struct slibraryfile *pmlibraryfile;
55 char *relfil; /* Warning: allocate memory before using */
56 char *filspc; /* Warning: allocate memory before using */
57 long offset; /* The embedded file offset in the library file libspc */
59 pmlibrarysymbol symbols;
63 extern pmlibraryfile libr;
65 pmlibrarysymbol add_rel_index (FILE * fp, long size, pmlibraryfile This);
67 int is_module_loaded (const char *filspc);
68 int add_rel_file (const char *name, struct lbname *lbnh, const char *relfil,
69 const char *filspc, int offset, FILE * fp, long size, int type);
74 int (*is_lib) (FILE * libfp);
76 pmlibraryfile (*buildlibraryindex) (struct lbname * lbnh, FILE * libfp, pmlibraryfile This, int type);
78 int (*fndsym) (const char *name, struct lbname * lbnh, FILE * libfp, int type);
80 void (*loadfile) (struct lbfile * lbfh);
83 extern struct aslib_target aslib_target_sdcclib;
84 extern struct aslib_target aslib_target_ar;
85 extern struct aslib_target aslib_target_lib;
93 # define D 1 ? (void)0 : (*(void (*)(const char *, ...))0)
96 #endif /* __LKLIBR_H */