comparison cos/kernel/kernel.c @ 27:7f74363f4c82

Added some files for the python port
author windel
date Tue, 27 Dec 2011 18:59:02 +0100
parents dcce92b1efbc
children 47b7df514243
comparison
equal deleted inserted replaced
26:dcce92b1efbc 27:7f74363f4c82
1 #include "kernel.h" 1 #include "kernel.h"
2
3 void startPython()
4 {
5 // TODO: connect to Py_Main
6 //PyRun_SimpleString("print('hello world')");
7 }
8 2
9 void testMalloc() 3 void testMalloc()
10 { 4 {
11 char *a, *b; 5 char *a, *b;
12 6
32 printf("Welcome!\n"); 26 printf("Welcome!\n");
33 27
34 while (1==1) 28 while (1==1)
35 { 29 {
36 char buffer[70]; 30 char buffer[70];
37 printf(">>>"); 31 printf(">");
38 getline(buffer, 70); 32 getline(buffer, 70);
39 // TODO: interpret this line with python :) 33 // TODO: interpret this line with python :)
40 printf("\n"); 34 printf("\n");
41 if (buffer[0] == 'x') 35 if (buffer[0] == 'x')
42 { 36 {