Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 5676 → Rev 5959

/programs/cmm/examples/Tupfile.lua
4,3 → 4,4
else C_LANG = "LANG_ENG" -- this includes default case without config
end
tup.rule("example.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "example.com")
tup.rule("collections.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "collections.com")
/programs/cmm/examples/collections.c
0,0 → 1,17
#define MEMSIZE 4096*10
 
#include "../lib/io.h"
#include "../lib/collection.h"
 
void main()
{
collection s;
io.run("/sys/develop/board", "");
s.init(4096);
s.add("lorem");
s.add("ipsum");
s.add("1234566");
debugln(s.get(0));
debugln(s.get(1));
debugln(s.get(2));
}
/programs/cmm/examples/compile.bat
1,10 → 1,11
C-- example.c
@del example
@rename example.com example
kpack example
c-- example.c
c-- collections.c
 
@del @@example
@del @@collections
 
@rename example.com @@example
@rename collections.com @@collections
 
@del warning.txt
@pause
@rem ====== Automatically add binnary to kolibri.img and then run QEMU =====
@rem"C:\Program Files (x86)\WinImage\WINIMAGE.exe" D:\Kolibri\work\QEMU\kolibri.img /I /H/Q C:\Users\Leency\Dropbox\CMM\example\example
@rem @cd /d C:\Work\QEMU
@rem C:\Work\QEMU\kolibri_qumu.bat
@pause