2002-07-03 20:16:32 +00:00
|
|
|
/*
|
|
|
|
link.h
|
|
|
|
|
|
|
|
qc object file linking
|
|
|
|
|
2002-07-05 17:02:39 +00:00
|
|
|
Copyright (C) 2002 Bill Currie <bill@taniwha.org>
|
2002-07-03 20:16:32 +00:00
|
|
|
|
|
|
|
Author: Bill Currie <bill@taniwha.org>
|
|
|
|
Date: 2002/7/3
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License
|
|
|
|
as published by the Free Software Foundation; either version 2
|
|
|
|
of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
|
|
See the GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to:
|
|
|
|
|
|
|
|
Free Software Foundation, Inc.
|
|
|
|
59 Temple Place - Suite 330
|
|
|
|
Boston, MA 02111-1307, USA
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __linker_h
|
|
|
|
#define __linker_h
|
|
|
|
|
2011-03-02 11:48:55 +00:00
|
|
|
struct qfo_s;
|
|
|
|
struct type_s;
|
|
|
|
|
2002-07-03 20:16:32 +00:00
|
|
|
void linker_begin (void);
|
2011-03-02 11:48:55 +00:00
|
|
|
int linker_add_string (const char *str);
|
|
|
|
void linker_add_def (const char *name, struct type_s *type, unsigned flags,
|
2012-11-14 04:12:58 +00:00
|
|
|
void *val);
|
2012-11-09 02:57:06 +00:00
|
|
|
struct qfo_def_s *linker_find_def (const char *name);
|
2011-03-02 11:48:55 +00:00
|
|
|
int linker_add_qfo (struct qfo_s *qfo);
|
2002-08-15 18:53:03 +00:00
|
|
|
int linker_add_object_file (const char *filename);
|
|
|
|
int linker_add_lib (const char *libname);
|
2002-11-01 18:05:12 +00:00
|
|
|
void linker_add_path (const char *path);
|
2002-07-11 21:04:09 +00:00
|
|
|
struct qfo_s *linker_finish (void);
|
2002-07-03 20:16:32 +00:00
|
|
|
|
|
|
|
#endif//__linker_h
|