aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-07-20 17:39:12 +0900
committernsfisis <nsfisis@gmail.com>2025-08-15 10:04:20 +0900
commit8dfdbc9cf84be2d82960784f70a2e00378fca5c5 (patch)
tree30c0e13a6bbdf8a38ad9d304c1cb37b2dfb0a116
parent88d01cd637ae2b7d6c7c2e721eb98a72160c44e2 (diff)
downloadducc-8dfdbc9cf84be2d82960784f70a2e00378fca5c5.tar.gz
ducc-8dfdbc9cf84be2d82960784f70a2e00378fca5c5.tar.zst
ducc-8dfdbc9cf84be2d82960784f70a2e00378fca5c5.zip
refactor: rename function
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index b996615..48f391c 100644
--- a/main.c
+++ b/main.c
@@ -372,7 +372,7 @@ void pp_tokenize_all(Preprocessor* pp) {
}
}
-void pp_execute_pp_directive(Preprocessor* pp) {
+void process_pp_directives(Preprocessor* pp) {
PpToken* tok = pp->pp_tokens;
PpToken* define_dest;
while (tok->kind != PpTokenKind_eof) {
@@ -426,7 +426,7 @@ void pp_execute_pp_directive(Preprocessor* pp) {
PpToken* preprocess(char* src) {
Preprocessor* pp = preprocessor_new(src);
pp_tokenize_all(pp);
- pp_execute_pp_directive(pp);
+ process_pp_directives(pp);
return pp->pp_tokens;
}