1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: ldump.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #include "hashtbl.hxx"
37 char *cExportName
; // zu exportierende Fkt.
38 unsigned long nOrdinal
; // Nummer der zu export. Fkt.
39 bool bByName
; // NONAME anhaengen
40 bool bExport
; // exportieren oder nicht ?
46 ExportSet
*pBaseTab
; // Zugriff auf gemangelte Namen
47 ExportSet
*pIndexTab
; // Zugriff auf die Ordinals
48 char *cBName
; // Name der Datenbasis
49 char *cAPrefix
; // Prefix fuer C-Fkts.
50 char *cLibName
; // Name der zu untersuchenden Lib
51 char *cFilterName
; // Name der Filterdatei
52 char *cModName
; // Modulname
53 unsigned short nBegin
; // Nummer des ersten Exports
54 unsigned long nBaseLines
; // Line in Datenbasis
55 unsigned long nFilterLines
; // Line in FilterTabelle
56 char **pFilterLines
; // Filtertabelle
57 unsigned long nDefStart
;
58 bool bBase
; // Existenz der DatenBasis;
59 bool bAll
; // Alle Fkts exportieren
60 bool bDef
; // DefFile schreiben ( bei -E )
61 int bExportName
; // 0 - export by ordinal; 1 - export by name
64 bool CheckLibrary(char * cName
);
66 bool ReadFilter(char *);
67 bool PrintSym(char *, bool bName
= true );
69 LibDump( char *cFileName
, int bExportByName
);
72 bool SetFilter(char *cFilterName
);
73 void SetBeginExport(unsigned short nVal
){nBegin
= nVal
;}
74 void SetCExport( char* pName
);
75 bool Filter(char *pName
);
76 bool IsFromAnonymousNamespace(char *pName
);
79 static void DumpError(unsigned long nError
);