Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure C++ compatibility for designated initialisers #167

Merged
merged 3 commits into from
Sep 17, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Examples: Reorder config structure designated initialiser.
C++ compatibility.
  • Loading branch information
tlsa committed Sep 17, 2021
commit 790ec57e7269732ead4844b3e948dd77ff945d19
2 changes: 1 addition & 1 deletion examples/numerical/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ static const cyaml_schema_value_t top_schema = {
* Here we have a very basic config.
*/
static const cyaml_config_t config = {
.log_level = CYAML_LOG_WARNING, /* Logging errors and warnings only. */
.log_fn = cyaml_log, /* Use the default logging function. */
.mem_fn = cyaml_mem, /* Use the default memory allocator. */
.log_level = CYAML_LOG_WARNING, /* Logging errors and warnings only. */
};

/* Main entry point from OS. */
Expand Down
2 changes: 1 addition & 1 deletion examples/planner/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,9 @@ static const cyaml_schema_value_t plan_schema = {
* Here we have a very basic config.
*/
static const cyaml_config_t config = {
.log_level = CYAML_LOG_WARNING, /* Logging errors and warnings only. */
.log_fn = cyaml_log, /* Use the default logging function. */
.mem_fn = cyaml_mem, /* Use the default memory allocator. */
.log_level = CYAML_LOG_WARNING, /* Logging errors and warnings only. */
};

/* Main entry point from OS. */
Expand Down