Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

Commit a2aaf20

Browse files
authored
Forgot C guards 💀
1 parent 42120cb commit a2aaf20

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

kernel/core/process.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#ifndef PROCESS_H
22
#define PROCESS_H
33

4+
#ifdef __cplusplus
5+
extern "C" {
6+
#endif
7+
48
#include <error.h>
59
#include <util.h>
610
#include "../mem/vmm.h"
@@ -17,7 +21,7 @@ typedef enum {
1721
IDLE
1822
} proc_state_t;
1923

20-
// Process Control Block (PCB)
24+
// pcb
2125
typedef struct {
2226
int pid; // process id
2327
int ppid; // parent process id
@@ -44,4 +48,8 @@ extern Process* cproc;
4448
extern Process* processes[256]; // TODO: Dynamic.. For now we shouldn't need more than this. (who tf has 256 proccesses open)
4549
extern int cpid;
4650

51+
#ifdef __cplusplus
52+
}
53+
#endif
54+
4755
#endif

0 commit comments

Comments
 (0)