Use less error prone string list, map or multimap pointer types

Use pointers to incomplete struct types. If an argument of a not suitable
type is passed to a function of any string collection,
C compiler will warn:
  warning: passing argument 1 of <func> from incompatible pointer type
C++ compiler will raise an error, for example:
  error: cannot convert 'cef_string_list_t' ... to 'cef_string_multimap_t'

With the previously used `void*` pointer types, such errors in a code were not
diagnosed.
This commit is contained in:
Sergey Markelov
2023-04-13 16:06:02 +00:00
committed by Marshall Greenblatt
parent f90d5bc49e
commit c3648f42b2
6 changed files with 7 additions and 7 deletions

View File

@ -41,7 +41,7 @@ extern "C" {
///
/// CEF string maps are a set of key/value string pairs.
///
typedef void* cef_string_map_t;
typedef struct _cef_string_map_t* cef_string_map_t;
///
/// Allocate a new string map.