Subversion Repositories Tewi

Rev

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

Rev 367 Rev 368
Line 1... Line 1...
1
/* $Id: tw_module.h 367 2024-10-17 04:22:49Z nishi $ */
1
/* $Id: tw_module.h 368 2024-10-17 04:26:00Z nishi $ */
2
 
2
 
3
#ifndef __TW_MODULE_H__
3
#ifndef __TW_MODULE_H__
4
#define __TW_MODULE_H__
4
#define __TW_MODULE_H__
5
 
5
 
6
#ifdef __cplusplus
6
#ifdef __cplusplus
Line 10... Line 10...
10
#include "tw_config.h"
10
#include "tw_config.h"
11
#include "tw_http.h"
11
#include "tw_http.h"
12
 
12
 
13
#ifdef __NETWARE__
13
#ifdef __NETWARE__
14
#include <nwconio.h>
14
#include <nwconio.h>
-
 
15
#include <nwthread.h>
-
 
16
#include <stddef.h>
-
 
17
#define END_MODULE	void _thread(void* arg){ \
-
 
18
				while(1); \
-
 
19
			} \
-
 
20
			int main(){ \
15
#define END_MODULE int main(){DestroyScreen(GetCurrentScreen());while(1);return 0;}
21
				DestroyScreen(GetCurrentScreen()); \
-
 
22
				BeginThread(_thread, NULL, 0, NULL); \
-
 
23
				ThreadSwitch(); \
-
 
24
				return 0; \
-
 
25
			}
16
#else
26
#else
17
#define END_MODULE
27
#define END_MODULE
18
#endif
28
#endif
19
 
29
 
20
#if defined(__OS2__)
30
#if defined(__OS2__)