Subversion Repositories Tewi

Rev

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

Rev 311 Rev 312
Line 1... Line 1...
1
/* $Id: config.c 311 2024-10-13 01:23:22Z nishi $ */
1
/* $Id: config.c 312 2024-10-13 18:17:37Z nishi $ */
2
 
2
 
3
#define SOURCE
3
#define SOURCE
4
 
4
 
5
#include "tw_config.h"
5
#include "../config.h"
6
#include "tw_module.h"
-
 
7
 
6
 
8
#include <stdio.h>
7
#include <stdio.h>
9
#include <stdint.h>
8
#include <stdint.h>
10
#include <stdlib.h>
9
#include <stdlib.h>
11
#include <string.h>
10
#include <string.h>
Line 13... Line 12...
13
 
12
 
14
#if !defined(_MSC_VER) && !defined(__BORLANDC__)
13
#if !defined(_MSC_VER) && !defined(__BORLANDC__)
15
#include <unistd.h>
14
#include <unistd.h>
16
#endif
15
#endif
17
 
16
 
18
#if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || (defined(__WATCOMC__) && !defined(__OS2__))
17
#if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__WATCOMC__))
19
#ifdef USE_WINSOCK1
18
#ifdef USE_WINSOCK1
20
#include <winsock.h>
19
#include <winsock.h>
21
#else
20
#else
22
#include <winsock2.h>
21
#include <winsock2.h>
23
#endif
22
#endif
24
#endif
23
#endif
25
 
24
 
26
#include <cm_string.h>
25
#include <cm_string.h>
27
#include <cm_log.h>
26
#include <cm_log.h>
28
 
27
 
-
 
28
#ifdef __OS2__
-
 
29
#include <types.h>
-
 
30
#include <netinet/in.h>
-
 
31
#include <tcpustd.h>
-
 
32
#endif
-
 
33
 
-
 
34
#include "tw_config.h"
-
 
35
#include "tw_module.h"
-
 
36
 
29
struct tw_config config;
37
struct tw_config config;
30
 
38
 
31
struct tw_config_entry* tw_vhost_match(const char* name, int port) {
39
struct tw_config_entry* tw_vhost_match(const char* name, int port) {
32
	int i;
40
	int i;
33
	for(i = 0; i < config.vhost_count; i++) {
41
	for(i = 0; i < config.vhost_count; i++) {