Commit Graph

65 Commits

Author SHA1 Message Date
Vladimir Prus
6565cbc334 Revive 'additional parser'.
[SVN r28415]
2005-04-22 14:05:17 +00:00
Vladimir Prus
c984d59de1 Refactor the command line parser so that it uses options_description,
as opposed to having his own data structures. Clean up option description
classes a bit, removing unneeded methods. Remove support for 'implicit'
options.


[SVN r28413]
2005-04-22 13:35:45 +00:00
Hartmut Kaiser
7b23670e4d Improved readability in certain cases.
[SVN r27896]
2005-03-31 06:55:01 +00:00
Vladimir Prus
cb9bd037d9 Fix 64-bit portability problem.
Patch from Jonathan Wakely. Original explanation follows:

   The attached patch fixes a 64 bit portability problem where
   std::string::size_type is assigned to unsigned, which is shorter
   than size_t on x86-64 and so will be truncated. This means the
   following comparison to std::string::npos is always false.


[SVN r27772]
2005-03-23 11:11:55 +00:00
Vladimir Prus
58d35a27b9 Change "throw" to "throw_exception".
[SVN r27398]
2005-02-16 09:03:19 +00:00
Vladimir Prus
cedd6570fd Patches for IRIX MIPSPro. See
https://sourceforge.net/tracker/?func=detail&atid=307586&aid=1115576&group_id=7586


[SVN r27269]
2005-02-09 09:06:45 +00:00
Vladimir Prus
c3e02a2b0a Merge the utf8 workaround in program_options and serialization and
put the result to boost/detail and libs/detail.


[SVN r26758]
2005-01-20 08:49:13 +00:00
Vladimir Prus
934e96dcef Workaround for borland
[SVN r26757]
2005-01-20 07:29:17 +00:00
Vladimir Prus
87558bfe7c Added wordwrapping and improved intentation for options_description
output.

Patch from Bertolt Mildner.


[SVN r26679]
2005-01-12 12:05:47 +00:00
Vladimir Prus
87b4fff3e2 Fix missing includes.
Patch from Graham Bennett.


[SVN r26677]
2005-01-12 10:50:32 +00:00
Vladimir Prus
a00373eec5 Better way to supress the warning
[SVN r26276]
2004-11-23 12:25:20 +00:00
Vladimir Prus
4394406aeb Suppress gcc warning in release mode.
Thanks to Jody Hagins for the report.


[SVN r26274]
2004-11-23 07:31:13 +00:00
Vladimir Prus
9bd7193660 Make program_options compile on IBM compiler.
Patch from Matthias Troyer.


[SVN r26096]
2004-11-03 07:11:45 +00:00
Vladimir Prus
97b337c1ce MinGW-no-wstring workaround
[SVN r25292]
2004-09-21 06:20:02 +00:00
Vladimir Prus
074c154d18 Fix a recently introduces failure of unicode_test. I was trying
to form an argument to logic_error using wstring, which did not work. Now
try to convert wstring into local 8-bit encoding, and use a dummy text
when that fails.


[SVN r25242]
2004-09-20 06:14:18 +00:00
Vladimir Prus
ca1531d210 Improve the error reporting for invalid option values. Now the
'validation_error' exception allows to set the name of the option, and the
what() method uses the name to generate better message.


[SVN r25141]
2004-09-16 07:10:27 +00:00
Vladimir Prus
89a7168a42 Typo
[SVN r25106]
2004-09-15 09:56:53 +00:00
Vladimir Prus
44d5ba98c1 Improve 'bool_switch' -- don't accept any argument on the command line.
Allow to set 'zero_tokens' flag for the typed_value type.


[SVN r25105]
2004-09-15 09:49:00 +00:00
Vladimir Prus
80ecc439cf Try to fix Comeau problems.
[SVN r24741]
2004-08-26 10:07:39 +00:00
Vladimir Prus
2db987de85 Don't even compiler utf8_codecvt_facet.cpp when wstring is not available.
This avoids link errors on mingw.


[SVN r24740]
2004-08-26 09:37:53 +00:00
Vladimir Prus
b4192e34b9 Another set of doc/comment edits from Charles.
[SVN r24657]
2004-08-23 10:18:09 +00:00
Vladimir Prus
a2946c45fa Workaround lack of WCHAR_MAX on FreeBSD. Patch from Jonathan Wakely.
[SVN r23947]
2004-07-22 09:42:45 +00:00
Vladimir Prus
138d959d68 Don't instantiate std::vector with incomplete type, this is not allowed.
Thanks to Jonathan Wakely for the report.


[SVN r23942]
2004-07-22 07:39:34 +00:00
Vladimir Prus
2aa09ac7b2 Fix the utf8_codecvt::do_length declaration. Pointed out by Rene Rivera.
[SVN r23882]
2004-07-21 07:49:15 +00:00
Vladimir Prus
3e4531b71f Make the library compile on mingw, again. Thanks to Janusz Piwowarski for the
patch.


[SVN r23772]
2004-07-19 08:38:03 +00:00
Vladimir Prus
0cc6946235 Define environ on Comeau.
[SVN r23670]
2004-07-17 07:01:06 +00:00
Vladimir Prus
0535a47431 Replace string::push_back with string::operator+= for the sake on Intel.
[SVN r23669]
2004-07-17 06:58:38 +00:00
Vladimir Prus
bb4be6b636 VC fixes:
- use ispace, not std::ispace
- include <cctype> (noted by Hartmut Kaiser)


[SVN r23621]
2004-07-16 09:36:36 +00:00
Vladimir Prus
6f49b5b999 Patch from John Maddock for platforms without wchar_t support, specifically
cygwin.


[SVN r23576]
2004-07-15 11:40:26 +00:00
Vladimir Prus
9133a2e903 Added 'split_winmain' function.
[SVN r23550]
2004-07-14 15:57:02 +00:00
Vladimir Prus
6dcf98d974 Don't declare environ on WIN32 -- it's already defined in headers and second
definition cause warning about different dll linkage.


[SVN r23541]
2004-07-14 11:42:23 +00:00
Vladimir Prus
f084eeac4b Applied numerious suggestions from Pavel Vozenilek.
[SVN r23496]
2004-07-13 15:12:26 +00:00
Vladimir Prus
ee778af57c More declspecs
[SVN r23315]
2004-07-02 08:38:52 +00:00
Vladimir Prus
7a614e26ef More declspecs.
[SVN r23280]
2004-06-30 07:16:09 +00:00
Vladimir Prus
82ecb460b3 Add missing DLL exports for Windows.
[SVN r23249]
2004-06-29 07:36:09 +00:00
Vladimir Prus
54fa9b45fd Remove unused file.
[SVN r23229]
2004-06-28 09:24:30 +00:00
Vladimir Prus
75a6e42360 Patch from Janusz Piwowarski, to make the library work on mingw, despite
the fact the mingw does not have std::wstring. The patch disables wchar_t
support, but it allows the rest of the library to work ok.


[SVN r23111]
2004-06-17 12:34:59 +00:00
Vladimir Prus
cd45c6cc04 Make vc6 workaround apply only on vc6, since it suddenly breaks borland.
[SVN r23099]
2004-06-15 06:53:43 +00:00
Vladimir Prus
b6f9e1f367 Workaround for vc6/vc7.
[SVN r23081]
2004-06-11 06:11:34 +00:00
Vladimir Prus
c4f84e5111 Add extra qualification to help vc7 find the right function.
[SVN r23069]
2004-06-10 08:46:24 +00:00
Vladimir Prus
b441ebab91 Restructure the implementation to avoid the need to specialize member
templates, which does not work on some compilers.

* new 'to_internal' function which takes a vector.
* new 'common_command_line_parser' class.


[SVN r23054]
2004-06-08 08:14:09 +00:00
Vladimir Prus
7d546f5e5e Don't declare environ on borland, since it chokes on declaration. Remove
some unused env-handling code.


[SVN r23053]
2004-06-08 07:10:05 +00:00
Vladimir Prus
990ae86a20 Convert the 'validator' class into 'validate' function. Add a fake parameter
to specify type to convert to, and long/int parameter to fake partial template
ordering. Hopefully, this will work on some broken compilers.


[SVN r23052]
2004-06-08 07:06:44 +00:00
Vladimir Prus
d6bea29bce Rename value_semantic_codecvt_helper::parse to xparse, to avoid warnings
about overloading vs. overriding. The warning is wrong, but both gcc and
Comeau emit it.


[SVN r23050]
2004-06-08 05:07:56 +00:00
Vladimir Prus
2466bdea09 Introduce new 'to_internal' function. Don't specialize
basic_config_file_iterator::getline on wchar_t, since that causes problems
with borland and vc7.


[SVN r23043]
2004-06-07 14:10:55 +00:00
Vladimir Prus
e5ddfade07 Another way to get environment on Metrowerks.
[SVN r23015]
2004-06-03 06:57:31 +00:00
Vladimir Prus
3c8fa25d29 Another environment fix for Darwin. Apparently, initialization of 'envrion'
as global variable does not work right. Make 'environ' a macro, calling the
right function. Thanks to Michael LaSpina.


[SVN r23013]
2004-06-03 06:39:43 +00:00
Vladimir Prus
1382cbcc3c More size_t -> std::size_t conversion. Drop "throw()" from do_length
method in codecvt -- it's not needed there.


[SVN r22995]
2004-06-02 06:12:45 +00:00
Vladimir Prus
a75d21dafb Workaround member template specialization bug on Metrowerks.
[SVN r22961]
2004-05-28 08:17:40 +00:00
Vladimir Prus
c71c907bcc Disable parse_config_file specialization for wchar_t if we don't have wstring.
[SVN r22925]
2004-05-26 06:25:56 +00:00