Skip to content

Commit ade310a

Browse files
Fix spelling mistakes
1 parent 5c5cfd4 commit ade310a

15 files changed

+29
-29
lines changed

BUILD.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ cmake --build . --target loader_codegen
233233
`clang-format` is run on generated code files so that the generator scripts do
234234
not need format their output manually.
235235
If `clang-format` is not available when running code generation, a warning will
236-
be issued but does not stop code generation from occuring.
236+
be issued but does not stop code generation from occurring.
237237

238238
### Build Options
239239

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ if(CMAKE_C_COMPILER_ID MATCHES "MSVC" OR (CMAKE_C_COMPILER_ID STREQUAL "Clang" A
230230
# Prevent <windows.h> from polluting the code. guards against things like MIN and MAX
231231
target_compile_definitions(loader_common_options INTERFACE WIN32_LEAN_AND_MEAN)
232232

233-
# For some reason Advapi32.lib needs to be explicitely linked to when building for Arm (32 bit) on Windows, but isn't required on any other architecture
233+
# For some reason Advapi32.lib needs to be explicitly linked to when building for Arm (32 bit) on Windows, but isn't required on any other architecture
234234
if (SYSTEM_PROCESSOR MATCHES "arm" AND CMAKE_SIZEOF_VOID_P EQUAL 4)
235235
target_link_libraries(loader_common_options INTERFACE Advapi32)
236236
endif()
@@ -241,7 +241,7 @@ endif()
241241
target_compile_definitions(loader_common_options INTERFACE $<$<CONFIG:DEBUG>:DEBUG;GIT_BRANCH_NAME="${GIT_BRANCH_NAME}";GIT_TAG_INFO="${GIT_TAG_INFO}">)
242242

243243
if (NOT (WIN32 OR APPLE))
244-
# Check for the existance of the secure_getenv or __secure_getenv commands
244+
# Check for the existence of the secure_getenv or __secure_getenv commands
245245
include(CheckFunctionExists)
246246

247247
check_function_exists(secure_getenv HAVE_SECURE_GETENV)
@@ -254,12 +254,12 @@ if (NOT (WIN32 OR APPLE))
254254
target_compile_definitions(loader_common_options INTERFACE HAVE___SECURE_GETENV)
255255
endif()
256256
if (NOT (HAVE_SECURE_GETENV OR HAVE___SECURE_GETENV))
257-
message(WARNING "Using non-secure environmental lookups. This loader will not properly disable environent variables when run with elevated permissions.")
257+
message(WARNING "Using non-secure environmental lookups. This loader will not properly disable environment variables when run with elevated permissions.")
258258
endif()
259259
endif()
260260

261261
if (NOT (WIN32))
262-
# Check for the existance of the realpath() command
262+
# Check for the existence of the realpath() command
263263
include(CheckFunctionExists)
264264

265265
check_function_exists(realpath HAVE_REALPATH)

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ current assignee.
7272
* Run **clang-format** on your changes to maintain consistent formatting
7373
* There are `.clang-format` files present in the repository to define
7474
clang-format settings which are found and used automatically by clang-format.
75-
* **clang-format** binaries are available from the LLVM orginization, here:
75+
* **clang-format** binaries are available from the LLVM organization, here:
7676
[LLVM](https://clang.llvm.org/).
7777
Our CI system currently uses clang-format version 16 to
7878
check that the lines of code you have changed are formatted properly.

loader/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ elseif(UNIX OR MINGW OR (WIN32 AND USE_GAS)) # i.e.: Linux & Apple & MinGW & Win
312312
if(ASSEMBLER_WORKS)
313313
add_executable(asm_offset asm_offset.c)
314314
target_link_libraries(asm_offset loader_specific_options)
315-
# If not cross compiling, run asm_offset to generage gen_defines.asm
315+
# If not cross compiling, run asm_offset to generate gen_defines.asm
316316
if (NOT CMAKE_CROSSCOMPILING)
317317
add_custom_command(OUTPUT gen_defines.asm DEPENDS asm_offset COMMAND asm_offset GAS)
318318
else()

loader/cJSON.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ typedef int cJSON_bool;
146146
#define CJSON_CIRCULAR_LIMIT 10000
147147
#endif
148148

149-
/* Memory Management: the caller is always responsible to free instthe results from all variants of loader_cJSON_Parse (with
149+
/* Memory Management: the caller is always responsible to free the results from all variants of loader_cJSON_Parse (with
150150
* loader_cJSON_Delete) and loader_loader_cJSON_Print (with stdlib free, cJSON_Hooks.free_fn, or cJSON_free as appropriate). The
151151
* exception is cJSON_PrintPreallocated, where the caller has full responsibility of the buffer. */
152152
/* Supply a block of JSON, and this returns a cJSON object you can interrogate. */

loader/generated/vk_object_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ typedef enum VulkanObjectType {
9797
kVulkanObjectTypeIndirectExecutionSetEXT = 56,
9898
kVulkanObjectTypeIndirectCommandsLayoutEXT = 57,
9999
kVulkanObjectTypeMax = 58,
100-
// Aliases for backwards compatibilty of "promoted" types
100+
// Aliases for backwards compatibility of "promoted" types
101101
kVulkanObjectTypeSamplerYcbcrConversionKHR = kVulkanObjectTypeSamplerYcbcrConversion,
102102
kVulkanObjectTypeDescriptorUpdateTemplateKHR = kVulkanObjectTypeDescriptorUpdateTemplate,
103103
kVulkanObjectTypePrivateDataSlotEXT = kVulkanObjectTypePrivateDataSlot,

loader/loader.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ VkResult create_string_list(const struct loader_instance *inst, uint32_t allocat
306306
return VK_SUCCESS;
307307
}
308308

309-
VkResult incrase_str_capacity_by_at_least_one(const struct loader_instance *inst, struct loader_string_list *string_list) {
309+
VkResult increase_str_capacity_by_at_least_one(const struct loader_instance *inst, struct loader_string_list *string_list) {
310310
assert(string_list);
311311
if (string_list->allocated_count == 0) {
312312
string_list->allocated_count = 32;
@@ -329,7 +329,7 @@ VkResult incrase_str_capacity_by_at_least_one(const struct loader_instance *inst
329329

330330
VkResult append_str_to_string_list(const struct loader_instance *inst, struct loader_string_list *string_list, char *str) {
331331
assert(string_list && str);
332-
VkResult res = incrase_str_capacity_by_at_least_one(inst, string_list);
332+
VkResult res = increase_str_capacity_by_at_least_one(inst, string_list);
333333
if (res == VK_ERROR_OUT_OF_HOST_MEMORY) {
334334
loader_instance_heap_free(inst, str); // Must clean up in case of failure
335335
return res;
@@ -340,7 +340,7 @@ VkResult append_str_to_string_list(const struct loader_instance *inst, struct lo
340340

341341
VkResult prepend_str_to_string_list(const struct loader_instance *inst, struct loader_string_list *string_list, char *str) {
342342
assert(string_list && str);
343-
VkResult res = incrase_str_capacity_by_at_least_one(inst, string_list);
343+
VkResult res = increase_str_capacity_by_at_least_one(inst, string_list);
344344
if (res == VK_ERROR_OUT_OF_HOST_MEMORY) {
345345
loader_instance_heap_free(inst, str); // Must clean up in case of failure
346346
return res;
@@ -546,7 +546,7 @@ VkResult normalize_path(const struct loader_instance *inst, char **passed_in_pat
546546
#endif
547547
}
548548

549-
// Queries the path to the library that lib_handle & gipa are assoicated with, allocating a string to hold it and returning it in
549+
// Queries the path to the library that lib_handle & gipa are associated with, allocating a string to hold it and returning it in
550550
// out_path
551551
VkResult get_library_path_of_dl_handle(const struct loader_instance *inst, loader_platform_dl_handle lib_handle,
552552
PFN_vkGetInstanceProcAddr gipa, char **out_path) {
@@ -2539,7 +2539,7 @@ bool verify_meta_layer_component_layers(const struct loader_instance *inst, size
25392539
}
25402540
if (comp_prop_index != INT32_MAX && already_checked_meta_layers[comp_prop_index]) {
25412541
loader_log(inst, VULKAN_LOADER_WARN_BIT, 0,
2542-
"verify_meta_layer_component_layers: Recursive depedency between Meta-layer %s and Meta-layer %s. "
2542+
"verify_meta_layer_component_layers: Recursive dependency between Meta-layer %s and Meta-layer %s. "
25432543
"Skipping this layer.",
25442544
instance_layers->list[prop_index].info.layerName, comp_prop->info.layerName);
25452545
return false;

loader/loader_environment.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,8 +563,8 @@ VkResult loader_add_environment_layers(struct loader_instance *inst, const char
563563
return res;
564564
}
565565

566-
void parse_id_filter_enviroment_var(const struct loader_instance *inst, const char *env_var_name,
567-
struct loader_envvar_id_filter *filter_struct) {
566+
void parse_id_filter_environment_var(const struct loader_instance *inst, const char *env_var_name,
567+
struct loader_envvar_id_filter *filter_struct) {
568568
memset(filter_struct, 0, sizeof(struct loader_envvar_id_filter));
569569
char *parsing_string = NULL;
570570
char *env_var_value = loader_secure_getenv(env_var_name, inst);

loader/loader_environment.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ VkResult loader_add_environment_layers(struct loader_instance *inst, const char
5555
struct loader_pointer_layer_list *expanded_target_list,
5656
const struct loader_layer_list *source_list);
5757

58-
void parse_id_filter_enviroment_var(const struct loader_instance *inst, const char *env_var_name,
59-
struct loader_envvar_id_filter *filter_struct);
58+
void parse_id_filter_environment_var(const struct loader_instance *inst, const char *env_var_name,
59+
struct loader_envvar_id_filter *filter_struct);
6060
bool check_id_matches_filter_environment_var(const uint32_t id, const struct loader_envvar_id_filter *filter_struct);

loader/loader_windows.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ char *windows_get_app_package_manifest_path(const struct loader_instance *inst)
11121112

11131113
UINT32 numPackages = 0, bufferLength = 0;
11141114
// This literal string identifies the Microsoft-published OpenCL, OpenGL, and Vulkan Compatibility Pack, which contains
1115-
// OpenGLOn12, OpenCLOn12, and VulkanOn12 (aka Dozen) mappinglayers
1115+
// OpenGLOn12, OpenCLOn12, and VulkanOn12 (aka Dozen) mapping layers
11161116
PCWSTR familyName = L"Microsoft.D3DMappingLayers_8wekyb3d8bbwe";
11171117
if (ERROR_INSUFFICIENT_BUFFER != fpGetPackagesByPackageFamily(familyName, &numPackages, NULL, &bufferLength, NULL) ||
11181118
numPackages == 0 || bufferLength == 0) {

0 commit comments

Comments
 (0)