diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2007-04-26 13:01:35 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2007-04-26 13:01:35 +0000 |
commit | 146b055a52752fe83bafa22f4a08a97a4a1fb2bd (patch) | |
tree | 3d617bf18165dd8dba861dab2a840af45310187d /soltools/ldump | |
parent | INTEGRATION: CWS ause077 (1.20.44); FILE MERGED (diff) | |
download | core-146b055a52752fe83bafa22f4a08a97a4a1fb2bd.tar.gz core-146b055a52752fe83bafa22f4a08a97a4a1fb2bd.zip |
INTEGRATION: CWS ause077 (1.13.18); FILE MERGED
2007/03/09 14:10:55 hjs 1.13.18.1: #i75064# reduce output
Diffstat (limited to 'soltools/ldump')
-rw-r--r-- | soltools/ldump/ldump.cxx | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/soltools/ldump/ldump.cxx b/soltools/ldump/ldump.cxx index dc5226e4c996..f62bc51e2087 100644 --- a/soltools/ldump/ldump.cxx +++ b/soltools/ldump/ldump.cxx @@ -4,9 +4,9 @@ * * $RCSfile: ldump.cxx,v $ * - * $Revision: 1.13 $ + * $Revision: 1.14 $ * - * last change: $Author: rt $ $Date: 2006-12-04 16:27:59 $ + * last change: $Author: rt $ $Date: 2007-04-26 14:01:35 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -51,6 +51,7 @@ int bFilter = 0; int bLdump3 = 0; int bUseDirectives = 0; +int bVerbose = 0; class ExportSet : public HashTable { @@ -364,7 +365,8 @@ bool LibDump::PrintSym(char *pName, bool bName ) pData->bByName = true; else pData->bByName = false; - fprintf(stderr,"."); + if ( bVerbose ) + fprintf(stderr,"."); } else { @@ -383,7 +385,8 @@ bool LibDump::PrintSym(char *pName, bool bName ) sprintf( cBuffer, "%lu", pData->nOrdinal ); pIndexTab->Insert( cBuffer, pData ); delete [] cBuffer; - fprintf(stderr,"n"); + if ( bVerbose ) + fprintf(stderr,"n"); } } } @@ -647,7 +650,8 @@ void LibDump::DumpError( unsigned long n ) "-A : all symbols (default: only C++)\n" "-E nn : gerenration of export table beginning with number nn\n" "-F name: Filter file\n" - "-D : file contains \"dumpbin\" directives\n"; break; + "-D : file contains \"dumpbin\" directives\n" + "-V : be verbose\n"; break; case 500: p = "Unable to open filter file\n"; break; case 510: p = "Overflow of filter table\n"; break; case 600: p = "Unable to open base database file\n"; break; @@ -730,6 +734,12 @@ main( int argc, char **argv ) } bUseDirectives = 1; } + else if (( !strcmp( argv[ i ], "-V" )) || ( !strcmp( argv[ i ], "-v" ))) { + if ( nState != STATE_NON ) { + usage(); + } + bVerbose = 1; + } else { switch ( nState ) { case STATE_BEGIN: |