Kaydet (Commit) 4b8a6ca6 authored tarafından Lars Langhans's avatar Lars Langhans

cleanup

üst b34566c5
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: autoregisterhelper.cxx,v $ * $RCSfile: autoregisterhelper.cxx,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change: $Author: lla $ $Date: 2003-01-09 11:46:11 $ * last change: $Author: lla $ $Date: 2003-01-20 11:10:53 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -100,6 +100,7 @@ AutomaticRegisterHelper::AutomaticRegisterHelper(rtl::OUString const& _sDLLName, ...@@ -100,6 +100,7 @@ AutomaticRegisterHelper::AutomaticRegisterHelper(rtl::OUString const& _sDLLName,
aCallback.aCallbackDispatch = &CallbackDispatch; aCallback.aCallbackDispatch = &CallbackDispatch;
// special parameter for API testing
if (_aOptions.hasOpt("-forward")) if (_aOptions.hasOpt("-forward"))
{ {
aCallback.psForward = _aOptions.getOpt("-forward").getStr(); aCallback.psForward = _aOptions.getOpt("-forward").getStr();
...@@ -128,7 +129,7 @@ AutomaticRegisterHelper::AutomaticRegisterHelper(rtl::OUString const& _sDLLName, ...@@ -128,7 +129,7 @@ AutomaticRegisterHelper::AutomaticRegisterHelper(rtl::OUString const& _sDLLName,
else else
{ {
// ERROR, the function seams not to be what we thing it's to be. // ERROR, the function seams not to be what we thing it's to be.
fprintf(stderr, "error: Internal test failed. Value Magic2 != Magic\n"); fprintf(stderr, "error: Internal check failed. Structure inconsistent, Value Magic2 != Magic.\nPlease recompile your test libraries.");
exit(-1); exit(-1);
} }
} }
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: versioner.cxx,v $ * $RCSfile: versioner.cxx,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change: $Author: lla $ $Date: 2003-01-09 11:46:11 $ * last change: $Author: lla $ $Date: 2003-01-20 11:10:27 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -68,10 +68,6 @@ ...@@ -68,10 +68,6 @@
#include <iostream> #include <iostream>
/**
* display usage screen
*/
// ----------------------------------- Main ----------------------------------- // ----------------------------------- Main -----------------------------------
#if (defined UNX) || (defined OS2) #if (defined UNX) || (defined OS2)
int main( int argc, char* argv[] ) int main( int argc, char* argv[] )
...@@ -94,6 +90,13 @@ int _cdecl main( int argc, char* argv[] ) ...@@ -94,6 +90,13 @@ int _cdecl main( int argc, char* argv[] )
exit(0); exit(0);
} }
if (opt.getParams().empty())
{
std::cerr << "error: At least a library should given." << std::endl;
opt.showUsage();
exit(0);
}
rtl::OUString suLibraryName = rtl::OStringToOUString(opt.getFirstParam(), RTL_TEXTENCODING_ASCII_US ); rtl::OUString suLibraryName = rtl::OStringToOUString(opt.getFirstParam(), RTL_TEXTENCODING_ASCII_US );
VersionHelper aHelper(suLibraryName, opt); VersionHelper aHelper(suLibraryName, opt);
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: versionhelper.cxx,v $ * $RCSfile: versionhelper.cxx,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change: $Author: lla $ $Date: 2003-01-09 11:46:11 $ * last change: $Author: lla $ $Date: 2003-01-20 11:10:27 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -81,12 +81,12 @@ VersionHelper::VersionHelper(rtl::OUString const& _sDLLName, GetOpt & _aOptions) ...@@ -81,12 +81,12 @@ VersionHelper::VersionHelper(rtl::OUString const& _sDLLName, GetOpt & _aOptions)
void VersionHelper::print(std::ostream &stream) void VersionHelper::print(std::ostream &stream)
{ {
stream << m_pInfo->aTime << std::endl; stream << " Time:" << m_pInfo->aTime << std::endl;
stream << m_pInfo->aDate << std::endl; stream << " Date:" << m_pInfo->aDate << std::endl;
stream << m_pInfo->aUpd << std::endl; stream << " Upd:" << m_pInfo->aUpd << std::endl;
stream << m_pInfo->aMinor << std::endl; stream << " Minor:" << m_pInfo->aMinor << std::endl;
stream << m_pInfo->aBuild << std::endl; stream << " Build:" << m_pInfo->aBuild << std::endl;
stream << m_pInfo->aInpath << std::endl; stream << "Inpath:" << m_pInfo->aInpath << std::endl;
} }
std::ostream & std::ostream &
...@@ -98,3 +98,5 @@ operator <<( std::ostream &stream, ...@@ -98,3 +98,5 @@ operator <<( std::ostream &stream,
} }
// versioner gpf zu haeufig.
// perl script um alles herum
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment