Ron Koenderink
4bbc3f4286
Simple POSIX I/O emulation layer to work around Windows's defective
...
Unix I/O:
[_WIN32] (socklen_t, accept, posix_accept, bind. posix_bind, listen)
(posix_listen, setsockopt, posix_setsockopt, shutdown, posix_shutdown)
(socket, posix_socket, close, posix_close, creat, fstat, posix_fstat)
(lseek, posix_lseek, open, posix_open, read, posix_read, write)
(posix_write, fileno, posix_fileno, fcntl, O_NONBLOCK, F_RDLCK)
(F_WRLCK, F_GETFL, F_SETFL, F_SETLK, EWOULDBLOCK, ENOTSOCK)
(flock, fsync, posix_fsync):
New.
(ef_open, io_close, io_input, io_output, io_shutdown, io_noblocking)
(player_accept): Use them to simplify.
[_WIN32] (posix_fd2socket): New.
(empth_select): Use it.
(gen_power): Use it.
2007-08-14 03:33:28 +00:00
63bdc89835
Update copyright notice.
2007-01-09 19:09:31 +00:00
Ron Koenderink
d413884a37
[_WIN32, __GNUC__]: Reorganize the include files for WIN32 to
...
separate the MinGW environment from the MSVC environment and
WIN32 environment. Reorganize the order of the includes so
the system files are always loaded first to prevent with misc.h defines.
Remove system file includes from misc.h.
2006-07-13 21:14:16 +00:00
e42053d928
Break inclusion cycle: prototypes.h and commands.h included each
...
other. Ensure headers in include/ can be included in any order
(except for econfig-spec.h, which is special). New header types.h to
help avoid inclusion cycles. Sort include directives. Remove some
superflous includes.
2006-07-10 06:37:23 +00:00
b5c62f5c89
Fix long lines. No functional changes.
2006-04-30 08:39:20 +00:00
f5a9284867
Update known contributors comment.
2006-02-24 21:35:27 +00:00
4515b84c59
COPYING duplicates information from README. Remove. Move GPL from
...
LICENSE to COPYING, because that's where it usually is. Update all
the references to these files.
2006-01-21 19:48:41 +00:00
3e400c018c
Update copyright notice.
2006-01-05 13:36:57 +00:00
0d267e0b24
There's no reason to include <time.h> in empio.h, except it's missing
...
in a couple of other files. Include it where it's needed.
2005-12-28 21:25:39 +00:00
3aebb68ee7
Include config.h.
2005-12-27 18:04:19 +00:00
71e164ed30
Document, in particular use of UTF-8. Simplify code in a couple of
...
places, but no functional changes.
2005-06-13 19:02:49 +00:00
cb454a1f56
(rea, turn): Use a different buffer for message text. Just for
...
clarity.
2005-06-12 10:11:04 +00:00
df0bbf5bd2
(turn): Buffer passed to getele() was one too small. Deity could
...
overrun it by entering a message of maximum size.
2005-06-12 09:38:30 +00:00
8585ec930f
Remove some redundant casts.
2005-06-12 08:17:13 +00:00
Marc Olzheim
73a94a3591
(turn): Check whether fclose() succeeds.
2005-03-25 23:59:48 +00:00
345ad3dfe0
Update copyright notice.
2005-03-16 22:03:16 +00:00
Ron Koenderink
55e6aca9e0
(wrmakesrc,wripglob,wrgamesdef,info,apro,mobupdate,rea,turn
...
upda,ef_open,logerror,emp_config,match_user,show_motd,gamedown,
typed_wu,delete_old_announcements,mobility_check,mobility_init,
allocate_memory,write_newcap_script,main,files,fairland,doconfig,)
[_WIN32]: Switchback to default mode of text.
"t" (text) is not included the ISO/ANSI C standard but "b" (binary)
is included.
2005-03-02 12:47:15 +00:00
Ron Koenderink
df7dc203c4
(turn): Change to stdio.
...
(turn): Always close the file after attempting to write.
Fixes bug where the file is not close when there is writing
error.
2005-02-28 23:21:05 +00:00
Ron Koenderink
1a8488bc45
(main,mobility_check,upda,turn,rea,mobupdate,ef_open,logerror,
...
emp_config,gamedown,show_motd,match_user,typed_wu,
delete_old_announcements) [_WIN32]: switch the default file mode to
binary to match POSIX. Remove the now unneccessary ifdef for
the open/fopen. Add text mode for user files (econfig/auth).
2004-12-30 01:31:03 +00:00
6ce77efd82
Fix rev. 1.5's placement of braces. No functional changes.
2004-12-21 12:23:01 +00:00
Marc Olzheim
09b73000c2
"(turn): Fix comparing the output of write() to an unsigned sizeof by
...
casting the sizeof to write's most used return-type (ssize_t). Introduce
a typedef for ssize_t for WIN32."
2004-12-17 15:39:28 +00:00
Marc Olzheim
d9f0f475da
(turn): Change the command to allow for both an MOTD and a no-login
...
message. Clean 'register' and 's_char' remnants on the way.
Circumvents bug #813167 .
2004-12-16 14:17:08 +00:00
fac342ed49
Update copyright notice.
2004-09-07 15:07:16 +00:00
966eb40899
Declare all configuration parameters in optlist.h. Remove some
...
redundant declarations elsewhere.
2004-02-19 16:46:18 +00:00
9b7adfbecc
Indented with src/scripts/indent-emp.
2003-09-02 20:48:48 +00:00
d8b7fdfae1
Import of Empire 4.2.12
2003-08-23 12:23:04 +00:00