Loading pkgs/build-support/make-hardcode-gsettings-patch/hardcode-gsettings.cocci +1 −1 Original line number Diff line number Diff line Loading @@ -162,4 +162,4 @@ expression SCHEMA_ID; identifier schema_exists_fn.fn; @@ -fn(SCHEMA_ID) +true +TRUE pkgs/test/make-hardcode-gsettings-patch/fixtures/example-project-patched-with-exists-fn/main.c +3 −3 Original line number Diff line number Diff line Loading @@ -74,7 +74,7 @@ void schema_id_with_path() { } void exists_fn_guard() { if (!true) { if (!TRUE) { return; } Loading @@ -89,7 +89,7 @@ void exists_fn_guard() { } void exists_fn_nested() { if (true) { if (TRUE) { g_autoptr(GSettings) settings = NULL; { g_autoptr(GSettingsSchemaSource) schema_source; Loading @@ -102,7 +102,7 @@ void exists_fn_nested() { } void exists_fn_unknown() { if (true) { if (TRUE) { g_autoptr(GSettings) settings = NULL; { g_autoptr(GSettingsSchemaSource) schema_source; Loading Loading
pkgs/build-support/make-hardcode-gsettings-patch/hardcode-gsettings.cocci +1 −1 Original line number Diff line number Diff line Loading @@ -162,4 +162,4 @@ expression SCHEMA_ID; identifier schema_exists_fn.fn; @@ -fn(SCHEMA_ID) +true +TRUE
pkgs/test/make-hardcode-gsettings-patch/fixtures/example-project-patched-with-exists-fn/main.c +3 −3 Original line number Diff line number Diff line Loading @@ -74,7 +74,7 @@ void schema_id_with_path() { } void exists_fn_guard() { if (!true) { if (!TRUE) { return; } Loading @@ -89,7 +89,7 @@ void exists_fn_guard() { } void exists_fn_nested() { if (true) { if (TRUE) { g_autoptr(GSettings) settings = NULL; { g_autoptr(GSettingsSchemaSource) schema_source; Loading @@ -102,7 +102,7 @@ void exists_fn_nested() { } void exists_fn_unknown() { if (true) { if (TRUE) { g_autoptr(GSettings) settings = NULL; { g_autoptr(GSettingsSchemaSource) schema_source; Loading