Subversion Repositories Tewi

Rev

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

Rev 219 Rev 244
Line 1... Line 1...
1
/* $Id: main.c 219 2024-10-02 20:40:37Z nishi $ */
1
/* $Id: main.c 244 2024-10-03 20:04:15Z nishi $ */
2
 
2
 
3
#define SOURCE
3
#define SOURCE
4
 
4
 
5
#include "../config.h"
5
#include "../config.h"
6
 
6
 
7
#ifdef __BORLANDC__
7
#ifdef __BORLANDC__
8
 
8
 
9
#pragma resource "tewi_bcc.res"
9
#pragma resource "tewi_bcc.res"
-
 
10
#pragma resource "gui_bcc.res"
10
 
11
 
11
#endif
12
#endif
12
 
13
 
13
#if !defined(_MSC_VER) && !defined(__BORLANDC__)
14
#if !defined(_MSC_VER) && !defined(__BORLANDC__)
14
#include <unistd.h>
15
#include <unistd.h>
Line 28... Line 29...
28
 
29
 
29
#include "tw_config.h"
30
#include "tw_config.h"
30
#include "tw_server.h"
31
#include "tw_server.h"
31
#include "tw_version.h"
32
#include "tw_version.h"
32
 
33
 
33
#if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__)
34
#if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__)
34
#include <windows.h>
35
#include <windows.h>
35
#endif
36
#endif
36
 
37
 
37
#ifdef _PSP
38
#ifdef _PSP
38
#include <pspkernel.h>
39
#include <pspkernel.h>
Line 522... Line 523...
522
	free(rows);
523
	free(rows);
523
}
524
}
524
 
525
 
525
#endif
526
#endif
526
 
527
 
-
 
528
#if !defined(BUILD_GUI) || !(defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__))
527
int main(int argc, char** argv) {
529
int main(int argc, char** argv) {
528
	int st;
530
	int st;
529
	logfile = stderr;
531
	logfile = stderr;
530
#ifdef SERVICE
532
#ifdef SERVICE
531
	SERVICE_TABLE_ENTRY table[] = {{"Tewi HTTPd", servmain}, {NULL, NULL}};
533
	SERVICE_TABLE_ENTRY table[] = {{"Tewi HTTPd", servmain}, {NULL, NULL}};
Line 702... Line 704...
702
#ifdef _PSP
704
#ifdef _PSP
703
	sceKernelExitGame();
705
	sceKernelExitGame();
704
#endif
706
#endif
705
	return 0;
707
	return 0;
706
}
708
}
-
 
709
#endif
707
 
710
 
708
int startup(int argc, char** argv) {
711
int startup(int argc, char** argv) {
709
	int i;
712
	int i;
710
	char* r;
713
	char* r;
711
#if defined(__MINGW32__) || defined(_MSC_VER)
714
#if defined(__MINGW32__) || defined(_MSC_VER)