Skip to content

Commit 33f0953

Browse files
committed
various fixes
1 parent 7d57a56 commit 33f0953

File tree

4 files changed

+3
-28
lines changed

4 files changed

+3
-28
lines changed

test/fuzz/stump_str.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ LLVMFuzzerTestOneInput( const uint8_t *data, size_t size ) {
1313
memcpy( terminated_data, data, size );
1414
terminated_data[size] = '\0';
1515

16-
target = stumpless_open_buffer_target( "fuzzer", buffer, sizeof( buffer ) );
16+
target = stumpless_open_buffer_target( buffer, sizeof( buffer ) );
1717
stump_str( terminated_data );
1818
stumpless_close_buffer_target( target );
1919

tools/cmake/build_single_files.cmake

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,8 @@ function(include_file source_filename include_filenames already_included new_alr
2020
endif()
2121

2222
if("${line}" MATCHES ".*include .((private|stumpless)/.+\\.h).$")
23-
if("${CMAKE_MATCH_1}" STREQUAL "private/config.h")
24-
set(extracted_full_path "${PROJECT_BINARY_DIR}/include/private/config.h")
25-
elseif("${CMAKE_MATCH_1}" STREQUAL "stumpless/config.h")
26-
set(extracted_full_path "${PROJECT_BINARY_DIR}/include/stumpless/config.h")
27-
elseif("${CMAKE_MATCH_1}" STREQUAL "stumpless/windows/default_events.h")
28-
set(extracted_full_path "${PROJECT_BINARY_DIR}/include/stumpless/windows/default_events.h")
23+
if(EXISTS "${PROJECT_BINARY_DIR}/include/${CMAKE_MATCH_1}")
24+
set(extracted_full_path "${PROJECT_BINARY_DIR}/include/${CMAKE_MATCH_1}")
2925
else()
3026
set(extracted_full_path "${PROJECT_SOURCE_DIR}/include/${CMAKE_MATCH_1}")
3127
endif()

tools/wrapture/buffer_target.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ classes:
1919
name: "stumpless_open_buffer_target"
2020
includes: "stumpless/target/buffer.h"
2121
params:
22-
- name: "name"
23-
doc: "The name of this target."
24-
type: "const char *"
2522
- name: "buffer"
2623
doc: "The buffer to log events to."
2724
type: "char *"

tools/wrapture/target_templates.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -92,24 +92,6 @@ templates:
9292
return:
9393
type: "int"
9494
use-template: "error-code-check"
95-
- name: "GetName"
96-
doc: >
97-
Returns the name of this target.
98-
99-
The returned character buffer must be freed by the caller when it is
100-
no longer needed to avoid memory leaks.
101-
102-
Available since release v2.0.0.
103-
return:
104-
doc: "The name of this Target."
105-
type: "const char *"
106-
wrapped-function:
107-
name: "stumpless_get_target_name"
108-
includes: "stumpless/target.h"
109-
params:
110-
- value: "equivalent-struct-pointer"
111-
return:
112-
type: "const char *"
11395
- name: "GetOption"
11496
doc: >
11597
Gets the given option for this target.

0 commit comments

Comments
 (0)