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:
+2
-1
@@ -1,6 +1,7 @@
|
||||
#include "ctdd/log_write.h"
|
||||
#include <stdio.h>
|
||||
|
||||
#include "ctdd/log_write.h"
|
||||
|
||||
void log_write(char const* msg) {
|
||||
printf("%s\n", msg);
|
||||
}
|
||||
|
||||
+2
-1
@@ -1,6 +1,7 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#include "ctdd/logger.h"
|
||||
#include "ctdd/log_write.h"
|
||||
#include <stdio.h>
|
||||
|
||||
static log_level s_level = LOG_DEBUG;
|
||||
|
||||
|
||||
+2
-1
@@ -1,6 +1,7 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#include "ctdd/report.h"
|
||||
#include "ctdd/logger.h"
|
||||
#include <stdio.h>
|
||||
|
||||
void report_value(char const* label, int value) {
|
||||
char buf[256];
|
||||
|
||||
+3
-2
@@ -1,6 +1,7 @@
|
||||
#include "ctdd/str.h"
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "ctdd/str.h"
|
||||
|
||||
int str_starts_with(char const* s, char const* prefix) {
|
||||
return strncmp(s, prefix, strlen(prefix)) == 0;
|
||||
|
||||
@@ -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.
|
||||
|
||||
#include "ctdd/str.h"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "unity.h"
|
||||
|
||||
#include "ctdd/logger.h"
|
||||
#include "Mocklog_write.h"
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "unity.h"
|
||||
|
||||
#include "ctdd/report.h"
|
||||
#include "Mocklogger.h"
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "unity.h"
|
||||
|
||||
#include "ctdd/str.h"
|
||||
|
||||
void setUp(void) {}
|
||||
|
||||
Reference in New Issue
Block a user