summaryrefslogtreecommitdiff
path: root/src/StringFormat.cc
Commit message (Collapse)AuthorAgeFilesLines
* 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-01-051-1/+1
| | | | | | | | | Untabify. Fixed one line in copyright which is longer than 80 columns. * src * test
* 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>Tatsuhiro Tsujikawa2008-06-161-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | Applied Ross's aria2-0.13.2+1-mingw.patch and aria2-0.13.2+1-mingw-2.patch. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the systems which don't have termious.h. I moved the directive inside of if(isTTY) { ... clause so that line is wiped out without termious.h. I also removed HAVE_ASCTIME_R clause because asctime_r is provided anyway. * src/asctime_r.h * src/asctime_r.c: Added for the systems don't have asctime_r function. I added 2nd argument to the prototype declaration. * src/StringFormat.cc: Get rid of vasprintf. * src/getaddrinfo.h: Fixed constants. * configure.ac: Added the check for asctime_r function. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
* 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>Tatsuhiro Tsujikawa2008-04-271-2/+2
| | | | | | | | | | | | | Rewritten Exception class. Throw exception object, not its pointer and catch by reference, so that remove problematic delete operator for catched exception. * src/Exception.cc * src/Exception.h * test/ExceptionTest.cc * src/*: All files throwing/catching exception. * test/*: All files throwing/catching exception.
* 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>Tatsuhiro Tsujikawa2008-04-261-0/+67
Added StringFormat class, which internally calls vasprintf. operator<< is defined for this class, so it can be used with iostream classes nicely. SimpleLogger and following functions are rewritten using StringFormat class. Besides, now Logger class's methods are non-const, many classes that has a const Logger* as a member variable are modified to remove const qualifier from the variable declaration. * src/HelpItemFactory.cc * src/Request.cc * src/SimpleLogger.cc * src/StringFormat.cc * src/StringFormat.h * src/Util.cc * src/option_processing.cc * src/version_usage.cc * test/StringFormatTest.cc * src/*.h: The classes that has const Logger* as a member variable.