style: fix include order in all source files

Move C stdlib headers before local/project headers with a
blank line separator, matching the AGENTS.md include order rule.

Replace em dash with colon in main.c comment.
This commit is contained in:
2026-06-15 04:35:44 +02:00
parent 3ce42cc8db
commit 657d154560
8 changed files with 13 additions and 6 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
#include "ctdd/log_write.h"
#include <stdio.h> #include <stdio.h>
#include "ctdd/log_write.h"
void log_write(char const* msg) { void log_write(char const* msg) {
printf("%s\n", msg); printf("%s\n", msg);
} }
+2 -1
View File
@@ -1,6 +1,7 @@
#include <stdio.h>
#include "ctdd/logger.h" #include "ctdd/logger.h"
#include "ctdd/log_write.h" #include "ctdd/log_write.h"
#include <stdio.h>
static log_level s_level = LOG_DEBUG; static log_level s_level = LOG_DEBUG;
+2 -1
View File
@@ -1,6 +1,7 @@
#include <stdio.h>
#include "ctdd/report.h" #include "ctdd/report.h"
#include "ctdd/logger.h" #include "ctdd/logger.h"
#include <stdio.h>
void report_value(char const* label, int value) { void report_value(char const* label, int value) {
char buf[256]; char buf[256];
+3 -2
View File
@@ -1,6 +1,7 @@
#include "ctdd/str.h"
#include <string.h>
#include <ctype.h> #include <ctype.h>
#include <string.h>
#include "ctdd/str.h"
int str_starts_with(char const* s, char const* prefix) { int str_starts_with(char const* s, char const* prefix) {
return strncmp(s, prefix, strlen(prefix)) == 0; return strncmp(s, prefix, strlen(prefix)) == 0;
+1 -1
View File
@@ -1,4 +1,4 @@
// Template placeholder replace with your own entry point. // Template placeholder: replace with your own entry point.
// Remove or rename this file when scaffolding a new project. // Remove or rename this file when scaffolding a new project.
#include "ctdd/str.h" #include "ctdd/str.h"
+1
View File
@@ -1,4 +1,5 @@
#include "unity.h" #include "unity.h"
#include "ctdd/logger.h" #include "ctdd/logger.h"
#include "Mocklog_write.h" #include "Mocklog_write.h"
+1
View File
@@ -1,4 +1,5 @@
#include "unity.h" #include "unity.h"
#include "ctdd/report.h" #include "ctdd/report.h"
#include "Mocklogger.h" #include "Mocklogger.h"
+1
View File
@@ -1,4 +1,5 @@
#include "unity.h" #include "unity.h"
#include "ctdd/str.h" #include "ctdd/str.h"
void setUp(void) {} void setUp(void) {}