diff kernel/process.c3 @ 296:9417caea2eb3

Directorized some backend files
author Windel Bouwman
date Sun, 01 Dec 2013 13:36:58 +0100
parents 917eab04b8b7
children 158068af716c
line wrap: on
line diff
--- a/kernel/process.c3	Thu Nov 28 21:10:32 2013 +0100
+++ b/kernel/process.c3	Sun Dec 01 13:36:58 2013 +0100
@@ -3,19 +3,19 @@
 import kernel;
 
 // process type definition:
-typedef struct {
+type struct {
     int id;
     int status;
 } process_t;
 
 // Or, use this list structure:
-List<process_t> procs;
+// List<process_t> procs;
 
 // init is the root of all processes:
 var process_t* init = 0;
 var int next_pid = 0;
 
-public function void init()
+function void init()
 {
     next_pid = 0;
     init = Create();
@@ -24,7 +24,7 @@
 /*
     Create a new process.
 */
-public func process_t* Create()
+function process_t* Create()
 {
     process_t* p = memory.Alloc(sizeof(process_t));
     p->id = next_pid;