Beispiel #1
0
int main(int argc, char **argv)
{
	__INIT(argc, argv);
	__IMPORT(CmdLine__init);
	__IMPORT(Console__init);
	__IMPORT(Strings__init);
	__REGMAIN("CmdLineTest", 0);
/* BEGIN */
	CmdLineTest__for__2 = CmdLine_ParamCount;
	CmdLineTest_n = 1;
	while (CmdLineTest_n <= CmdLineTest__for__2) {
		CmdLine_GetParam(CmdLineTest_n, (void*)CmdLineTest_param, 1024);
		Console_WriteInt(CmdLineTest_n);
		Console_WriteStr((CHAR*)":", 2);
		Console_WriteStrLn(CmdLineTest_param, 1024);
		CmdLineTest__for__1 = (SHORTINT)Strings_Length((void*)CmdLineTest_param, 1024) - 1;
		CmdLineTest_i = 0;
		while (CmdLineTest_i <= CmdLineTest__for__1) {
			Console_WriteInt((SHORTINT)CmdLineTest_param[__X(CmdLineTest_i, 1024)]);
			Console_WriteStr((CHAR*)",", 2);
			CmdLineTest_i += 1;
		}
		Console_WriteLn();
		CmdLineTest_n += 1;
	}
	__FINI;
}
Beispiel #2
0
int main(int argc, char **argv)
{
	__INIT(argc, argv);
	__IMPORT(Basic__init);
	__REGMAIN("Hello", 0);
/* BEGIN */
	Basic_PRSTR((CHAR*)"Hello World", 12);
	__FINI;
}
Beispiel #3
0
int main(int argc, char **argv)
{
	__INIT(argc, argv);
	__IMPORT(CmdlnTexts__init);
	__IMPORT(Watson0__init);
	__REGMAIN("WatsonCmd", 0);
/* BEGIN */
	WatsonCmd_ShowDef();
	__FINI;
}
Beispiel #4
0
void create() {
    //call_out("reset", 0);  // this is good for virtual rooms.
    //it may be good for virtual rooms, but it's bad for actual rooms,
    //if you goto a room and force it to load, ob_data[objects] won't
    //kick in when you enter.
    //SO:
    __INIT();
    set("volume", 10000000, MASTER_ONLY); // Leto
    set("capacity", 10000000, MASTER_ONLY); // Leto
    seteuid(getuid());
    set("bashed", ({}));
Beispiel #5
0
int main(int argc, char **argv)
{
	__INIT(argc, argv);
	__IMPORT(Args__init);
	__IMPORT(Console__init);
	__IMPORT(Files__init);
	__IMPORT(Texts__init);
	__REGMAIN("OCatCmd", 0);
	__REGCMD("Cat", OCatCmd_Cat);
/* BEGIN */
	OCatCmd_Cat();
	__FINI;
}
Beispiel #6
0
int main(int argc, char **argv)
{
	__INIT(argc, argv);
	__IMPORT(Basic__init);
	__IMPORT(Input__init);
	__REGMAIN("TestInput", 0);
/* BEGIN */
	Basic_Init();
	do {
		TestInput_key = Input_Read();
		Basic_PRCHAR(TestInput_key);
	} while (!(TestInput_key == '0'));
	Basic_Quit();
	__FINI;
}