source: trunk/emx/src/emxomf/weakld.h@ 3669

Last change on this file since 3669 was 2692, checked in by bird, 19 years ago

#89: more wlink stuff. ; Fixed the exp=int .def errors in weakld.

  • Property cvs2svn:cvs-rev set to 1.7
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 KB
Line 
1/* $Id: weakld.h 2692 2006-04-10 22:50:06Z bird $ */
2/** @file
3 *
4 * Weak Pre-Linker.
5 *
6 * Copyright (c) 2003 InnoTek Systemberatung GmbH
7 * Author: knut st. osmundsen <bird-srcspam@anduin.net>
8 *
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with This program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 *
24 */
25
26#ifndef __weak_h__
27#define __weak_h__
28
29/*******************************************************************************
30* Structures and Typedefs *
31*******************************************************************************/
32struct wld;
33/** Weak LD Instance Pointer. */
34typedef struct wld * PWLD;
35
36/** wld_create() flags. */
37enum wld_create_flags
38{
39 /** Verbose */
40 WLDC_VERBOSE = 1,
41 /** Skip extended dictionary of libraries. */
42 WLDC_NO_EXTENDED_DICTIONARY_SEARCH = 2,
43 /** Case in-sensitive symbol resolution. */
44 WLDC_CASE_INSENSITIVE = 4,
45 /** The linker is link386. */
46 WLDC_LINKER_LINK386 = 0x1000,
47 /** The linker is wlink. */
48 WLDC_LINKER_WLINK = 0x2000
49};
50
51
52/*******************************************************************************
53* Functions *
54*******************************************************************************/
55/** @group Weak LD - Public methods.
56 * @{ */
57PWLD WLDCreate(unsigned fFlags);
58int WLDAddObject(PWLD pWld, FILE *phFile, const char *pszName);
59int WLDAddDefFile(PWLD pWld, FILE *phFile, const char *pszName);
60int WLDAddLibrary(PWLD pWld, FILE *phFile, const char *pszName);
61int WLDPass1(PWLD pWld);
62int WLDGenerateWeakAliases(PWLD pwld, char *pszObjName, char *pszDefName);
63int WLDDestroy(PWLD pWld);
64/** @} */
65
66#endif
Note: See TracBrowser for help on using the repository browser.