Subversion Repositories Tewi

Rev

Rev 359 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 359 Rev 361
Line 1... Line 1...
1
/* $Id: main.c 359 2024-10-16 14:34:51Z nishi $ */
1
/* $Id: main.c 361 2024-10-17 00:37:10Z nishi $ */
2
 
2
 
3
#define SOURCE
3
#define SOURCE
4
 
4
 
5
#include "../config.h"
5
#include "../config.h"
6
 
6
 
Line 39... Line 39...
39
#include "tw_version.h"
39
#include "tw_version.h"
40
 
40
 
41
#if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__) && !defined(__DOS__))
41
#if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__) && !defined(__DOS__))
42
#include <windows.h>
42
#include <windows.h>
43
#elif defined(__NETWARE__)
43
#elif defined(__NETWARE__)
-
 
44
#include <nwnamspc.h>
-
 
45
#include <nwthread.h>
-
 
46
#include <nwconio.h>
44
#endif
47
#endif
45
 
48
 
46
#ifdef _PSP
49
#ifdef _PSP
47
#include <pspkernel.h>
50
#include <pspkernel.h>
48
#include <pspdebug.h>
51
#include <pspdebug.h>
Line 546... Line 549...
546
 
549
 
547
int main(int argc, char** argv) {
550
int main(int argc, char** argv) {
548
	int st;
551
	int st;
549
#ifdef __NETWARE__
552
#ifdef __NETWARE__
550
	struct arg_struct* parg = malloc(sizeof(*parg));
553
	struct arg_struct* parg = malloc(sizeof(*parg));
-
 
554
	SetCurrentNameSpace(NW_NS_LONG);
551
	parg->argc = argc;
555
	parg->argc = argc;
552
	parg->argv = argv;
556
	parg->argv = argv;
-
 
557
	DestroyScreen(GetCurrentScreen());
-
 
558
	SetCurrentScreen(CreateScreen("Tewi Console", 0));
-
 
559
	BeginThread(thread_stuff, NULL, 0, parg);
553
	thread_stuff(parg);
560
	ThreadSwitch();
554
	return 0;
561
	return 0;
555
}
562
}
556
 
563
 
557
void thread_stuff(void* pargs) {
564
void thread_stuff(void* pargs) {
558
	int st;
565
	int st;