Commit graph

  • b6c67c884f Fix the previous rev. Markus Armbruster 2004-02-20 19:24:43 +00:00
  • 8538b0b605 Portability fix: don't declare library function, include appropriate header. Markus Armbruster 2004-02-20 11:17:32 +00:00
  • 4a3f0b8146 Add some missing declarations to headers. Remove some redundant declarations elsewhere. Change linkage of some functions to static. Markus Armbruster 2004-02-20 10:51:03 +00:00
  • e7811102a3 Declare tags.c variables in tags.h. Declare stuff with external linkage that is not in any other header in misc.h. Remove some redundant declarations elsewhere. (prompt, doredir, dopipe, doexecute, output, screen, parsedelay): Static linkage. Markus Armbruster 2004-02-20 08:22:28 +00:00
  • 8d438a4601 (loginit, main): Pass log file basename as parameter. (logerror): Require prior call of loginit(). (empth_exit) [_EMPTH_WIN32]: Don't print the log file name here, it's not modular. (program, getlogfile): Unused, remove. Markus Armbruster 2004-02-19 21:15:16 +00:00
  • 379e0a61c3 Fix the previous rev. Markus Armbruster 2004-02-19 21:10:25 +00:00
  • c54149ef39 (cons_choose): Clean up somewhat dirty use of union pointers that's not quite blessed by the standard and prone to trigger compiler warnings. Markus Armbruster 2004-02-19 21:03:57 +00:00
  • 6482ed03d1 (player_coms): Declaration in com.h was misspelled. Remove redundant declarations elsewhere. Markus Armbruster 2004-02-19 20:38:02 +00:00
  • f2b2c2f5e3 Remove some superflous declarations. Markus Armbruster 2004-02-19 20:30:22 +00:00
  • c28f377fe9 (bitinit2): Move from common/maps.c to getbit.c, external linkage. (bitmap0, bitmap1, bitmap2, bitmap3, bitmap4, bitmaps): Static linkage. Markus Armbruster 2004-02-19 19:59:45 +00:00
  • c8bb4d9b87 (effadv_list, effadv, rejects, rejectname, telnames, rea, numnames, tennames, numstr): Replace by static local variables in their only user. (relates): Move from global/misc.c to common/nat.c. (att_mode): Move from global/misc.c to subs/attsub.c. Markus Armbruster 2004-02-19 19:14:29 +00:00
  • 22a356b1e1 New server.h for server startup, control and shutdown, i.e. stuff in src/server. Use it. Markus Armbruster 2004-02-19 19:02:30 +00:00
  • 8115388a58 (check_all_markets, update_wait): Static linkage. Markus Armbruster 2004-02-19 18:16:34 +00:00
  • 9491e2e7fc Remove useless user.h. Markus Armbruster 2004-02-19 18:10:27 +00:00
  • 2c5a4b4563 Declare update related variables in budg.h. Remove some redundant declarations elsewhere. Markus Armbruster 2004-02-19 17:28:03 +00:00
  • 966eb40899 Declare all configuration parameters in optlist.h. Remove some redundant declarations elsewhere. Markus Armbruster 2004-02-19 16:46:18 +00:00
  • 6b67276f4f (updating_mob, timestamp_fixing): Inappropriate for global/, move to update/mobility.c. (timestamp_fixing, do_upd_checking): Static linkage. Markus Armbruster 2004-02-19 16:39:31 +00:00
  • bfcfaf08c2 Properly declare stuff in headers; remove redundant declarations. Markus Armbruster 2004-02-19 16:25:14 +00:00
  • cda6f0e7cc (logerror): The version from libcommon.a logs to a file, which is inappropriate for this program. Log to stderr instead. (program): Unused, remove. Markus Armbruster 2004-02-19 15:19:20 +00:00
  • d59bc20516 Properly declare functions in headers; remove redundant declarations. Markus Armbruster 2004-02-19 12:39:17 +00:00
  • 731fcaf98f (iovec, ioq_peekiov, ioqtoiov): Unused, minor portability complication, remove. Markus Armbruster 2004-02-19 12:34:50 +00:00
  • e9eb6b8e2a (_noecho, _echo): Broken, portability headache, remove. (output): Ignore C_NOECHO. Server doesn't send it anyway. Markus Armbruster 2004-02-19 12:00:11 +00:00
  • bf6bfcd5f5 Remove some redundant declarations. Markus Armbruster 2004-02-19 10:53:58 +00:00
  • b5401d9dd4 <string.h> is ISO C, no need to #if it. Markus Armbruster 2004-02-19 10:05:53 +00:00
  • 696b5b4b64 POSIX has all we need in <time.h>. No need to fool around with <sys/time.h>. Markus Armbruster 2004-02-19 09:57:25 +00:00
  • 836e6f755a Don't declare library functions, include appropriate headers. Markus Armbruster 2004-02-19 09:20:28 +00:00
  • c5915737b6 (deli): Partial rewrite for clarity, motivated by a `might be used unitialized' warning. Funcional change: you can now change direction without threshold (matches documentation, clarify it anyway). Change prompt for the third argument to reflect that. Also provide context when prompting for the fourth argument; this is sorely needed we didn't prompt for the third argument. Markus Armbruster 2004-02-18 21:00:13 +00:00
  • cb23a7e5b0 (player_accept): Back out rev. 1.9, it doesn't compile under Windows. Needs fixing. Markus Armbruster 2004-02-18 19:43:09 +00:00
  • dc2d3ff447 (player_coms): Fix c_form for fire. Markus Armbruster 2004-02-18 19:37:52 +00:00
  • 21f4dc4f0f Declare command functions in commands.h. Delete their declarations in empmod.c Markus Armbruster 2004-02-18 19:35:49 +00:00
  • d2244b6c24 Make users of struct cmdstr agree on prototype of member c_addr. (player_login): Use player->argp[] to store arguments. (client_cmd, user_cmd, sanc_cmd, coun_cmd, pass_cmd, play_cmd, kill_cmd, list_cmd, quit_cmd): Remove parameters, fetch arguments from player->argp[]. (cmdstr): Prototype member c_addr. Markus Armbruster 2004-02-18 19:04:01 +00:00
  • 7aafe31f70 (count_planes): Remove declaration. A prototype would need struct shpstr, but not struct plnstr, which is a strong sign it doesn't belong here. Markus Armbruster 2004-02-18 11:35:25 +00:00
  • aa9fed70c1 [_WIN32]: Include required headers. Markus Armbruster 2004-02-18 07:26:09 +00:00
  • 97843dfdf6 [_EMPTH_WIN32]: Previous rev. didn't even compile, fix. Markus Armbruster 2004-02-18 07:12:51 +00:00
  • 0c4fccb43e Clean up previous revision. Markus Armbruster 2004-02-17 23:01:58 +00:00
  • 8cd0160176 Declare all configuration variables in optlist.h. Include that instead of declaring them all over the place. This uncovered type errors: (s_p_etu, adj_update): Defined long, sometimes declared int. Kills big endian machines where sizeof(long) != sizeof(int). Change to int. Markus Armbruster 2004-02-17 22:58:04 +00:00
  • 80aae5b8e6 Remove some superflous declarations missed in the previous revision. Markus Armbruster 2004-02-17 22:29:59 +00:00
  • c1162bbcf4 Cosmetic. Markus Armbruster 2004-02-17 18:08:51 +00:00
  • e446bfd904 (empth_t, empth_sem_t) [_EMPTH_WIN32]: Use incomplete types, not void for abstract data types. Markus Armbruster 2004-02-17 18:05:23 +00:00
  • 237baffca9 Supply prototypes where possible. This uncovered type errors with thread entrypoints: (lwpSelect, shutdown_sequence): Parameters didn't match thread entry point prototype. (lwpEntryPoint): Arguments didn't match thread entry point prototype. Markus Armbruster 2004-02-17 17:59:30 +00:00
  • 7dbb87b0e0 Windows cleanup: include proper headers, remove unused variables, fix type of signal handler. Mostly from Ron Koenderink. Markus Armbruster 2004-02-16 17:44:38 +00:00
  • cc5d78c2f0 (move_ground): Remove superflous parameter `mobility'. Callers changed. Edit for clarity. No functional changes. Markus Armbruster 2004-02-15 21:27:41 +00:00
  • 4fa84b5cb1 (emp_sig_t): Pre-ISO C compatibility cruft. Just use void. Markus Armbruster 2004-02-15 21:00:27 +00:00
  • b218799e15 (payo): Previous revision screwed up ally bonus. Markus Armbruster 2004-02-15 20:28:52 +00:00
  • 27efd2c266 (upd_ship): Capability fish didn't work together with capability oil. Markus Armbruster 2004-02-15 19:30:03 +00:00
  • 42a43e1461 (player_accept): Passed pointer to incorrect type to accept(). Markus Armbruster 2004-02-15 19:26:52 +00:00
  • 9a9820d77a (clean): Fix for Windows. Markus Armbruster 2004-02-15 19:24:08 +00:00
  • 7f8baa23f0 Fix markup of right quotes. Markus Armbruster 2004-02-15 19:23:42 +00:00
  • a09d36121f Fix generated HTML: proper !DOCTYPE, head, body, p. Fix request parsing, so empty requests are properly ignored. Markus Armbruster 2004-02-15 19:21:52 +00:00
  • d368e696c0 Spelling fixes. Markus Armbruster 2004-02-15 18:23:45 +00:00
  • a825fd9f2c One TH request per file; remove second one. Markus Armbruster 2004-02-15 18:21:50 +00:00
  • a43e509c5e Clarification. Markus Armbruster 2004-02-15 18:20:37 +00:00
  • 792e81428c Use plain double quote instead of \*Q and \*U in .EX, because it's typed text. Markus Armbruster 2004-02-15 18:20:13 +00:00
  • 358606e0f1 (Q, U): Expanded into nothing; fix. Markus Armbruster 2004-02-15 18:15:48 +00:00
  • d76180e80d (lF): Unused, remove. Markus Armbruster 2004-02-15 18:12:45 +00:00
  • 237d9ba1c8 Deviated from actual behavior (matched old behavior?). Fixed. Markus Armbruster 2004-02-15 17:38:23 +00:00
  • 55d58955a8 empclient later than 2.8 support the Empire 4 protocol, too. Don't claim no other client supports it. Markus Armbruster 2004-02-15 17:35:30 +00:00
  • 4f94dbae3a Fix title (second argument of TH). Markus Armbruster 2004-02-15 17:31:56 +00:00
  • 72cc68b837 Stricter tests for requests. Request s3 doesn't exist, remove translation. Markus Armbruster 2004-02-15 17:29:21 +00:00
  • cb5c45dcd2 Fix indentation; $ in the middle of regexps confuses Emacs, so use \Z instead. No functional changes. Markus Armbruster 2004-02-15 16:22:02 +00:00
  • eca121f709 Parse requests properly. Simpler, more correct and more robust. Markus Armbruster 2004-02-15 16:14:46 +00:00
  • 1625567f97 Fix markup: bogus numerical arguments that were mapped to zero silently (troff) or under protest (groff); table column width (also fixed some .L arguments to match actual game output); spacing in no-fill text; stray .FI, .in and .ce messing up indentation; stray .L; misspelled request and escape names; escaping of control and escape characters; properly ignore form-feed; argument quoting; extra arguments to .NF. Still broken: .L abused for headings, which triggers many groff warnings about negative indentation. Markus Armbruster 2004-02-15 15:59:09 +00:00
  • 4456ef9a3a (nF, eF, bF, iF, lF, pF, cS, CS): Define to silence groff. Markus Armbruster 2004-02-15 13:22:39 +00:00
  • 627f2f3ab2 Convert tabs before \" comments into spaces (troff pitfall). Markus Armbruster 2004-02-15 08:40:09 +00:00
  • 8288c3a5c7 (SY, EX): Fix Empire client prompt. Markus Armbruster 2004-02-15 07:59:04 +00:00
  • c5c6042f36 (eF, EF): Font C doesn't exist, use R. Markus Armbruster 2004-02-15 07:58:02 +00:00
  • 4091a5ff0b (N, EF): Define to R to silence groff. Markus Armbruster 2004-02-15 07:56:46 +00:00
  • 949f3ae940 4.2.13 last minute changes. v4.2.13 Markus Armbruster 2004-02-13 22:20:17 +00:00
  • 995a22dd91 Change tarball names to empire$part-4.2.13.tar.gz. Tarballs now unpack in a directory whose name matches the tarball name, as usual. Markus Armbruster 2004-02-13 21:27:19 +00:00
  • 9020da90b5 Set archive members' owner, group and force sensible permissions. Markus Armbruster 2004-02-13 21:07:24 +00:00
  • 94b86ae057 (lwpInitContext): Fix .function for current versions of as. Markus Armbruster 2004-02-13 21:00:06 +00:00
  • 9cfb72ab45 (main, USERNAME): Change Windows user name from win-empcl2.8 to nobody to get rid of the version number. Keeping it up-to-date by hand is too much work, but leaving it at 2.8 would be confusing. Markus Armbruster 2004-02-12 16:50:48 +00:00
  • 15c1afe4ae (FREEBSDLFLAGS): Compile with symbols. (HPCFLAGS, HPUXCFLAGS, RTPCLFLAGS, SOLCFLAGS, AIXCFLAGS): NOFLOCK is unused, don't define it. Markus Armbruster 2004-02-10 19:45:41 +00:00
  • cbf9d68372 Don't fool around with obsolete strings.h, just include standard string.h. Markus Armbruster 2004-02-10 18:17:34 +00:00
  • 51c3215cf8 Fix previous rev. Markus Armbruster 2004-02-10 18:11:44 +00:00
  • fa3675836a Fix the previous revision. Markus Armbruster 2004-02-10 13:57:23 +00:00
  • 2e57b2b610 Document production, feeding and plague for units. Markus Armbruster 2004-02-10 13:54:18 +00:00
  • 07ee157e2a (move_ground): explore() used endsect without initialized in certain cases, e.g. `expl X,Y N X,Y'. Other callers might have had similar problems. Fix: always assign to *END. Thanks to Marc Olzheim for help with debugging and fixing this. Markus Armbruster 2004-02-10 10:49:21 +00:00
  • 974ffded01 Do not regenerate mobility faster while it is negative. Markus Armbruster 2004-02-10 08:22:13 +00:00
  • e772e08dde Fix markup. Markus Armbruster 2004-02-10 08:17:28 +00:00
  • 258b21e41b Fix .NA and .TH. Markus Armbruster 2004-02-10 08:14:34 +00:00
  • a3c7146c91 Create info.text.tar.gz and info.html.tar.gz. Markus Armbruster 2004-02-07 02:23:00 +00:00
  • ffcf6bff0f (iom, fdmax, newoutput): Serve no purpose since previous rev., remove along with code to maintain them. This removes the last uses of io_mask.c io_mask.h; remove them. Markus Armbruster 2004-02-07 02:01:47 +00:00
  • c865f885e5 (install, ntinstall): Create the data directory. (ntinstall): Remove erroneous and superflous mkdir bin. Markus Armbruster 2004-02-07 01:49:35 +00:00
  • 024fa262f7 Update for 4.2.13. Markus Armbruster 2004-02-07 01:22:53 +00:00
  • 99ec0e41d1 Remove outdated version information for now. Keeping it up-to-date by hand is too much work; should be automated. Markus Armbruster 2004-02-07 01:19:00 +00:00
  • f23d2846f9 New make target dist, to run new src/scripts/mkdist. Markus Armbruster 2004-02-07 01:09:22 +00:00
  • 1669add706 Creating make include files with make doesn't work with many makes out there. Back out for 4.2.13. You have to create the make include files by hand if they don't exist. That's the case for freshly checked out trees. Markus Armbruster 2004-02-07 00:54:35 +00:00
  • d8983db308 (show, show_item): No new show' features without matching machine readable dumps. Back out show item' for 4.2.13. Markus Armbruster 2004-02-07 00:27:45 +00:00
  • 49a4d5065c (nuk_add): Failed to call makenotlost() when reusing a `hole' in the nuke file. Markus Armbruster 2004-02-06 23:52:11 +00:00
  • 32fac041b2 (RESOLVE_IPADDRESS): gethostbyaddr() uses a lot of stack space on some versions of GNU libc, which can lead to nasty heap smashes (observed with 2.2.93). Don't define RESOLVE_IPADDRESS for now, until we readjust thread stack sizes. Markus Armbruster 2004-02-06 23:42:36 +00:00
  • f520cbf4d2 Document help command. Closes #804550. Markus Armbruster 2004-02-06 23:39:59 +00:00
  • abe89a8596 Useless copy of an old version of Makefile, remove. Markus Armbruster 2004-02-06 23:34:21 +00:00
  • f4173aaa47 Whitespace fix. Markus Armbruster 2004-02-06 23:32:15 +00:00
  • ef042a754d No need to pass -nsob, it's implied by -kr. Markus Armbruster 2004-02-06 23:30:47 +00:00
  • 0696bb190d Indentation fix. Markus Armbruster 2004-02-06 23:26:25 +00:00
  • a3cd473589 (fly): Fix confusing line break. Markus Armbruster 2004-02-06 23:17:50 +00:00
  • 85b4125393 (doland): Fix output (run-away replace?). Markus Armbruster 2004-02-06 23:15:07 +00:00
  • 6b4afa3f3d Fix previous rev. Markus Armbruster 2004-02-06 23:07:18 +00:00
  • 0992747d62 (ca): Unused, remove. Markus Armbruster 2004-02-06 23:02:05 +00:00