summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Simon Marchi [Fri, 9 Apr 2021 16:39:19 +0000 (12:39 -0400)]
Fix: Error out when passing an argument to long option that takes no argument
If the user defines a long option `--foo` and passes `--foo=arg`, the
current behavior is that the option foo is recognized and the argument
is ignored. Change that to be an error.
It is currently not possible to pass arguments to short options using an
equal sign, so this doesn't apply to short options.
Change-Id: I4b0c50398161aebc81789fdb3fce19a80a5f6646
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Simon Marchi [Sun, 15 Mar 2020 19:36:10 +0000 (15:36 -0400)]
Add format attributes to functions with format strings
Compiling with -Wsuggest-attribute=format shows that these functions
could use a format attribute, which helps the compiler validate format
strings. This patch adds them.
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Change-Id: I2884d13b08d9ea67680289e59fb40ebdfecdc3d4
Simon Marchi [Fri, 6 Dec 2019 19:23:29 +0000 (14:23 -0500)]
Add missing va_end in argpar_vasprintf
args2 is currently leaked, we need to call va_end on it.
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Simon Marchi [Thu, 5 Dec 2019 18:57:11 +0000 (13:57 -0500)]
Remove bt_/BT_ prefixes throughout
Since this is not longer part of Babeltrace, remove the bt_/BT_
prefixes. This was done mechanically using:
sed -i -e 's/BT_ARGPAR/ARGPAR/g' -e 's/bt_argpar/argpar/g'
Hopefully there isn't too much collateral damage.
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Simon Marchi [Thu, 5 Dec 2019 18:27:09 +0000 (13:27 -0500)]
Fix comments in bt_argpar_item_array, data -> items
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Simon Marchi [Wed, 4 Dec 2019 22:58:36 +0000 (17:58 -0500)]
Strip trailing spaces
Simon Marchi [Wed, 4 Dec 2019 22:33:56 +0000 (17:33 -0500)]
Add bootstrap script
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Simon Marchi [Wed, 4 Dec 2019 21:12:56 +0000 (16:12 -0500)]
Add .gitignore
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Simon Marchi [Wed, 4 Dec 2019 22:33:56 +0000 (17:33 -0500)]
Add build system, remove dependency on glib, add TAP library
This commit...
* adds an automake-based system.
* removes glib dependencies from the library code (i.e. not from the tests),
replacing them with home-grown code.
* sets up the tests to run using the TAP library [1].
[1] https://github.com/shlomif/libtap-prev
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Simon Marchi [Wed, 4 Dec 2019 16:51:08 +0000 (11:51 -0500)]
Initial commit
Copy source and tests from the babeltrace repository, commit:
23256fd15c8ac7d1faaa3e37d0df2e225e90a6c6
bt2: reverse order of printed causes in _Error.__str__
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
This page took 0.02331 seconds and 4 git commands to generate.