Skip to content

Commit bb2b79b

Browse files
czarkoffrichaas
authored andcommitted
Clean up remnants of Symbian support (creytiv#13)
1 parent fd381c7 commit bb2b79b

File tree

12 files changed

+3
-72
lines changed

12 files changed

+3
-72
lines changed

docs/README

-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ Supported platforms:
130130
* FreeBSD
131131
* OpenBSD
132132
* NetBSD
133-
* Symbian OS (not supported)
134133
* Solaris
135134
* Windows
136135
* Apple Mac OS X and iOS

include/re_main.h

-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ enum poll_method {
5858
METHOD_POLL,
5959
METHOD_SELECT,
6060
METHOD_EPOLL,
61-
METHOD_ACTSCHED,
6261
METHOD_KQUEUE,
6362
/* sep */
6463
METHOD_MAX

include/re_mod.h

-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
#if defined (WIN32)
1818
#define MOD_PRE ""
1919
#define MOD_EXT ".dll"
20-
#elif defined (__SYMBIAN32__)
21-
#define MOD_PRE "mod_"
22-
#define MOD_EXT ".dll"
2320
#else
2421
#define MOD_PRE ""
2522
#define MOD_EXT ".so"

include/re_sys.h

+1-17
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,16 @@
1515
* Architecture
1616
*/
1717
#ifndef ARCH
18-
#ifdef __SYMBIAN32__
19-
#if defined(__WINS__)
20-
#define ARCH "WINS"
21-
#elif defined(__MARM__)
22-
#define ARCH "ARM"
23-
#elif defined(__MARM_ARMI__)
24-
#define ARCH "ARMI"
25-
#elif defined(EKA2)
26-
#define ARCH "EKA2"
27-
#else
28-
#define ARCH "Symbian Arch"
29-
#endif
30-
#else
3118
#define ARCH "?"
3219
#endif
33-
#endif
3420

3521
/**
3622
* @def OS
3723
*
3824
* Operating System
3925
*/
4026
#ifndef OS
41-
#ifdef __SYMBIAN32__
42-
#define OS "Symbian"
43-
#elif defined (WIN32)
27+
#ifdef WIN32
4428
#define OS "win32"
4529
#else
4630
#define OS "?"

include/re_types.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ typedef bool _Bool;
135135
#endif
136136

137137
/** Defines a soft breakpoint */
138-
#if (defined(__i386__) || defined(__x86_64__)) && !defined(__SYMBIAN32__)
138+
#if (defined(__i386__) || defined(__x86_64__))
139139
#define BREAKPOINT __asm__("int $0x03")
140140
#else
141141
#define BREAKPOINT

mk/win32/re.vcproj

-3
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,6 @@
316316
<File
317317
RelativePath="..\..\src\main\mod.mk">
318318
</File>
319-
<File
320-
RelativePath="..\..\src\main\symbian">
321-
</File>
322319
</Filter>
323320
<Filter
324321
Name="mbuf"

src/main/init.c

-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ int libre_init(void)
2121
{
2222
int err;
2323

24-
#ifdef HAVE_ACTSCHED
25-
actsched_init();
26-
#endif
2724
rand_init();
2825

2926
#ifdef USE_OPENSSL

src/main/main.c

-17
Original file line numberDiff line numberDiff line change
@@ -965,13 +965,6 @@ int re_main(re_signal_h *signalh)
965965

966966
re->polling = true;
967967

968-
#ifdef HAVE_ACTSCHED
969-
if (METHOD_ACTSCHED == re->method) {
970-
err = actsched_start();
971-
goto out;
972-
}
973-
#endif
974-
975968
re_lock(re);
976969
for (;;) {
977970

@@ -1020,12 +1013,6 @@ void re_cancel(void)
10201013
struct re *re = re_get();
10211014

10221015
re->polling = false;
1023-
1024-
#ifdef HAVE_ACTSCHED
1025-
if (METHOD_ACTSCHED == re->method) {
1026-
actsched_stop();
1027-
}
1028-
#endif
10291016
}
10301017

10311018

@@ -1091,10 +1078,6 @@ int poll_method_set(enum poll_method method)
10911078
return EINVAL;
10921079
break;
10931080
#endif
1094-
#ifdef HAVE_ACTSCHED
1095-
case METHOD_ACTSCHED:
1096-
break;
1097-
#endif
10981081
#ifdef HAVE_KQUEUE
10991082
case METHOD_KQUEUE:
11001083
break;

src/main/main.h

-7
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@ bool epoll_check(void);
1414
extern "C" {
1515
#endif
1616

17-
#ifdef HAVE_ACTSCHED
18-
void actsched_init(void);
19-
int actsched_start(void);
20-
void actsched_stop(void);
21-
void actsched_restart_timer(void);
22-
#endif
23-
2417
#ifdef USE_OPENSSL
2518
int openssl_init(void);
2619
void openssl_close(void);

src/main/method.c

-9
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
static const char str_poll[] = "poll"; /**< POSIX.1-2001 poll */
1414
static const char str_select[] = "select"; /**< POSIX.1-2001 select */
1515
static const char str_epoll[] = "epoll"; /**< Linux epoll */
16-
static const char str_as[] = "actsched"; /**< Symbian ActiveScheduler */
1716
static const char str_kqueue[] = "kqueue";
1817

1918

@@ -50,11 +49,6 @@ enum poll_method poll_method_best(void)
5049
m = METHOD_SELECT;
5150
}
5251
#endif
53-
#ifdef HAVE_ACTSCHED
54-
if (METHOD_NULL == m) {
55-
m = METHOD_ACTSCHED;
56-
}
57-
#endif
5852

5953
return m;
6054
}
@@ -74,7 +68,6 @@ const char *poll_method_name(enum poll_method method)
7468
case METHOD_POLL: return str_poll;
7569
case METHOD_SELECT: return str_select;
7670
case METHOD_EPOLL: return str_epoll;
77-
case METHOD_ACTSCHED: return str_as;
7871
case METHOD_KQUEUE: return str_kqueue;
7972
default: return "???";
8073
}
@@ -100,8 +93,6 @@ int poll_method_type(enum poll_method *method, const struct pl *name)
10093
*method = METHOD_SELECT;
10194
else if (0 == pl_strcasecmp(name, str_epoll))
10295
*method = METHOD_EPOLL;
103-
else if (0 == pl_strcasecmp(name, str_as))
104-
*method = METHOD_ACTSCHED;
10596
else if (0 == pl_strcasecmp(name, str_kqueue))
10697
*method = METHOD_KQUEUE;
10798
else

src/sys/sys.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ const char *sys_username(void)
197197
login = getenv("LOGNAME");
198198
if (!login)
199199
login = getenv("USER");
200-
#if defined (HAVE_UNISTD_H) && !defined (__SYMBIAN32__)
200+
#ifdef HAVE_UNISTD_H
201201
if (!login) {
202202
login = getlogin();
203203
}

src/tmr/tmr.c

-9
Original file line numberDiff line numberDiff line change
@@ -271,15 +271,6 @@ void tmr_start(struct tmr *tmr, uint64_t delay, tmr_h *th, void *arg)
271271
list_prepend(tmrl, &tmr->le, tmr);
272272
}
273273
}
274-
275-
#ifdef HAVE_ACTSCHED
276-
/* TODO: this is a hack. when a new timer is started we must reset
277-
the main sleeping timer in actsched.cpp */
278-
{
279-
extern void actsched_restart_timer(void);
280-
actsched_restart_timer();
281-
}
282-
#endif
283274
}
284275

285276

0 commit comments

Comments
 (0)