00:40:52 -!- tokigun_ has quit (Read error: 104 (Connection reset by peer)).
00:40:57 -!- tokigun has joined.
00:41:27 -!- CakeProphet has joined.
04:30:01 -!- Sgeo has quit (Read error: 104 (Connection reset by peer)).
04:33:42 -!- Sgeo has joined.
06:00:08 -!- cmeme has quit ("Client terminated by server").
06:00:18 -!- oerjan has quit ("leaving").
06:01:03 -!- cmeme has joined.
06:18:57 -!- Sgeo has quit ("Ex-Chat").
07:59:59 -!- clog has quit (ended).
08:00:00 -!- clog has joined.
08:09:43 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)).
08:10:09 -!- CakeProphet_ has joined.
08:10:20 -!- CakeProphet_ has changed nick to CakeProphet.
08:28:21 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)).
08:28:46 -!- CakeProphet_ has joined.
08:28:57 -!- CakeProphet_ has changed nick to CakeProphet.
08:47:49 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)).
08:47:57 -!- CakeProphet_ has joined.
08:48:03 -!- CakeProphet_ has changed nick to CakeProphet.
08:57:40 -!- sebbu has joined.
09:06:25 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)).
09:06:54 -!- CakeProphet_ has joined.
09:07:13 -!- CakeProphet_ has changed nick to CakeProphet.
09:25:56 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)).
09:26:05 -!- CakeProphet_ has joined.
09:26:13 -!- CakeProphet_ has changed nick to CakeProphet.
09:45:05 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)).
09:45:22 -!- CakeProphet_ has joined.
09:45:31 -!- CakeProphet_ has changed nick to CakeProphet.
10:04:19 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)).
10:04:28 -!- CakeProphet_ has joined.
10:04:47 -!- CakeProphet_ has changed nick to CakeProphet.
10:23:29 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)).
10:23:58 -!- CakeProphet_ has joined.
10:24:05 -!- CakeProphet_ has changed nick to CakeProphet.
10:42:32 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)).
10:43:03 -!- CakeProphet_ has joined.
10:43:22 -!- CakeProphet_ has changed nick to CakeProphet.
11:02:08 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)).
11:02:43 -!- CakeProphet_ has joined.
11:02:51 -!- CakeProphet_ has changed nick to CakeProphet.
11:21:13 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)).
11:21:59 -!- CakeProphet_ has joined.
11:22:08 -!- CakeProphet_ has changed nick to CakeProphet.
11:40:44 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)).
11:41:11 -!- CakeProphet_ has joined.
11:41:17 -!- CakeProphet_ has changed nick to CakeProphet.
11:57:40 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)).
11:58:21 -!- CakeProphet_ has joined.
11:58:30 -!- CakeProphet_ has changed nick to CakeProphet.
12:16:01 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)).
12:16:20 -!- CakeProphet_ has joined.
12:16:29 -!- CakeProphet_ has changed nick to CakeProphet.
12:35:17 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)).
12:35:42 -!- CakeProphet_ has joined.
12:35:51 -!- CakeProphet_ has changed nick to CakeProphet.
12:54:11 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)).
12:54:27 -!- CakeProphet_ has joined.
12:54:41 -!- CakeProphet_ has changed nick to CakeProphet.
13:13:12 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)).
13:13:55 -!- CakeProphet_ has joined.
13:14:05 -!- CakeProphet_ has changed nick to CakeProphet.
13:54:41 -!- oerjan has joined.
14:01:00 -!- Pikhq has quit (Read error: 110 (Connection timed out)).
14:13:52 -!- oerjan has quit ("leaving").
14:21:55 -!- Pikhq has joined.
14:30:35 -!- jix has joined.
17:33:18 -!- Sgeo has joined.
17:33:45 -!- Sgeo has quit (Connection reset by peer).
17:34:38 <SimonRC> wtf just happenned to mz kezboard_
17:34:58 <SimonRC> qwertzuiop asdfghjkl yxcvbnm
17:35:24 <SimonRC> there... deleted every language except english
18:37:10 -!- CakeProphet has quit ("haaaaaaaaaa").
18:37:31 -!- CakeProphet_ has joined.
18:37:36 -!- CakeProphet_ has changed nick to CakeProphet.
19:19:23 <Pikhq> I feel like either implementing PESOIX or doing absolutely nothing. . .
19:19:29 <Pikhq> And I think doing nothing would be easier.
19:19:50 <CakeProphet> ......games are pretty kickass to make.... besides being a crapload of work.
19:46:06 -!- CakeProphet has quit (Remote closed the connection).
20:52:41 -!- oerjan has joined.
20:58:02 -!- fizzie has joined.
21:00:33 -!- oklopol has joined.
21:11:43 -!- CakeProphet has joined.
21:13:43 <CakeProphet> apparently the *'s are throwing the compiler off.
21:14:57 <GregorR> if((num_updates % (1 MINUTE)) == 0 // wtf?
21:17:50 <GregorR> What's CHAR_DATA #define'd to?
21:20:57 <CakeProphet> ...I don't know....... C SYNTAX DOESN'T TELL YOU WHERE SHIT IS DEFINED.
21:21:09 <oerjan> well what are the #include lines?
21:22:11 <fizzie> You can also run it through something like 'gcc -E' and look at the preprocessed output.
21:23:36 <oerjan> i would guess those _DATA's are all defined in some #included .h file.
21:24:07 <oerjan> so "grep -f _DATA *.h"
21:24:33 <oerjan> i would think MINUTE is unlikely to be the culprit.
21:25:21 <oerjan> whoops, that should be -F not -f
21:29:17 <oerjan> i included it because i couldn't remember if _ was a regexp character
21:29:53 <oerjan> use -E for advanced regexes
21:30:21 <fizzie> Or just use \(, \| and so on, if you have gnu grep.
21:30:26 <oerjan> (this from grep --help)
21:30:46 <oerjan> this is gnu grep i'm looking at
21:30:57 <fizzie> "In GNU grep, there is no difference in available functions in either of the first two syntaxes [-E and without]."
21:31:12 <fizzie> It's just that without -E you need the \s to keep the magic.
21:31:14 * CakeProphet is trying to weed out CHAR_DATA's definition out from all the countless function signatures.
21:31:53 <oerjan> do grep '[#]define *CHAR_DATA'
21:32:50 <fizzie> It might also be a typedef. (But causing that parse error with a typedef would be rather impressive.)
21:32:54 -!- sebbu2 has joined.
21:33:30 <CakeProphet> ....here's what I've got that's the most useful.
21:33:30 <oerjan> actually neither # nor _ seem to be special
21:33:36 <CakeProphet> [bread@portent src]$ grep -E "struct.*?CHAR_DATA" *.h
21:36:34 <CakeProphet> ...what the hell is it? I can't figure out where it's at.
21:37:39 <oerjan> but it looks like a perfectly ok standalone declaration.
21:37:55 <oerjan> which should not make it possible to trigger that parse error.
21:38:47 <CakeProphet> ...if it means anything.... I never ran a configure script..... there wasn't one.
21:38:51 <fizzie> Yes, and if that file's not included, it should be a 'CHAR_DATA was not defined' error.
21:40:21 <oerjan> are you compiling with all warnings?
21:40:30 <oerjan> but it cannot be missing
21:40:41 <CakeProphet> -shrug- I don't know... I just ran the makefile
21:41:06 <CakeProphet> ....I thought it might have something to do with the * being there.
21:42:15 <Pikhq> CakeProphet: Try getting it to compile with -Wall added to the CC args.
21:46:12 <fizzie> With a struct char_data { ... }; like that, and a typedef struct char_data CHAR_DATA; I don't see any reason for a parse terror.
21:47:17 <CakeProphet> well... the parse error comes before the *..... if that means anything.
21:49:17 <CakeProphet> I don't necessarily care why it does it... I just want it not to do it.
21:49:35 <fizzie> Well, you could try sticking just "struct char_data *ch" there.
21:49:46 <fizzie> Instead of "CHAR_DATA *ch".
21:50:15 <fizzie> Since it's C++, even plain "char_data *ch" might work.
21:51:22 <fizzie> I wonder where I got the C++ impression from.
21:51:30 <oerjan> so did i except for the // comments
21:51:30 -!- sebbu has quit (Connection timed out).
21:51:32 <CakeProphet> from http://homepages.uc.edu/~hollisgf/nakedmud.html : "NakedMud is written in C, and uses Python for scripting."
21:51:45 <fizzie> Ah, right, must've been the // comments.
21:52:08 <fizzie> Anyway, 'struct char_data' should work.
22:01:08 <CakeProphet> gameloop.c:350: parse error before `struct'
22:01:09 <CakeProphet> gameloop.c:351: `ch' undeclared (first use in this function)
22:01:11 <CakeProphet> gameloop.c:351: (Each undeclared identifier is reported only once
22:01:12 <CakeProphet> gameloop.c:351: for each function it appears in.)
22:01:14 <CakeProphet> gameloop.c:353: parse error before `struct'
22:01:15 <CakeProphet> gameloop.c:354: `obj' undeclared (first use in this function)
22:01:17 <CakeProphet> gameloop.c:356: parse error before `struct'
22:01:18 <CakeProphet> gameloop.c:357: `room' undeclared (first use in this function)
22:01:21 <CakeProphet> ....nope.... I don't think it had anything to do with CHAR_DATA
22:01:45 <oerjan> maybe you should take a look at that MINUTE anyhow.
22:02:44 <fizzie> This is sort of grasping for straws, but you wouldn't happen to have any non-printing non-visible evil characters there somewhere?
22:04:35 <CakeProphet> mud.h:#define MINUTE * 60 SECONDS /* one minute */
22:05:21 <fizzie> That's just sick and SICK.
22:05:43 <fizzie> 1+1 MINUTES => 1 + 1*60 SECONDS.
22:06:14 <GregorR> fizzie: Well, that just means that 'MINUTES' has a lower precedence than + *shrugs*
22:06:17 <CakeProphet> mud.h:#define PULSES_PER_SECOND mudsettingGetInt("pulses_per_second")
22:06:19 <CakeProphet> mud.h:#define SECOND * PULSES_PER_SECOND /* used for figuring out how many pulses in a second*/
22:06:20 <CakeProphet> mud.h:#define SECONDS SECOND /* same as above */
22:06:22 <CakeProphet> mud.h:#define MINUTE * 60 SECONDS /* one minute */
22:06:30 <Pikhq> #define MINUTE(x) x * SECONDS(60)
22:06:40 <Pikhq> Holy. . . Must. Kill.
22:07:31 <CakeProphet> 1 * 60 * mudsettingGetInt("pulses_per_second")
22:08:34 <GregorR> The MUD I nearly wrote was event-queue based :)
22:08:58 <Pikhq> Bah. Make it IRC-based. :p
22:09:42 <fizzie> Just checking: is line 350 in the file line 34 in the paste?
22:10:18 <CakeProphet> mine just makes a thread for each conncetion, and slaps input on a queue. it's like hardware nterrupts versus hardware polling.
22:11:32 <oerjan> lessee, gameloop.c is the first file compiled.
22:11:42 <oerjan> or at least mentioned in the makefile.
22:14:07 <fizzie> Is that nakedmudv3.3? gameloop.c compiles just fine for me.
22:15:05 <oerjan> aha, the plot thickens.
22:15:59 <oerjan> with plain make? is everyone using gcc >= 3.02 which the web site says is the only tested compiler?
22:16:55 <fizzie> Well, I had to add -I/usr/include/python2.4 to find Python.h, but other than that it compiled just fine with plain make.
22:17:08 <fizzie> With gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21).
22:20:35 <oerjan> requires >= 3.02, it says.
22:22:51 * oerjan boggles his mind on the fact that CakeProphet's does _not_ run the latest version by default
22:23:22 <CakeProphet> not mine... it's on a MUD host......... full of -really- old server programs.
22:24:03 <oerjan> like when _I_ was playing MUDs :)
22:24:29 <CakeProphet> well... I don't like hack and slash ones... feels too much like excercising.
22:29:15 <oerjan> abbreviation for .tar.gzip
22:29:47 <fizzie> I use zxvf, but everyone else seems to use xzvf. Must be something wrong with me. :/
22:30:19 <oerjan> no it is just your sense of ordering.
22:51:34 <CakeProphet> [bread@portent src]$ gcc -V 23.5 --version
22:51:44 <CakeProphet> ....unless gcc actually -does- have a version 23.5
22:51:58 <fizzie> That's nice behaviour to have.
22:58:38 <CakeProphet> ...my guess is that -V sets a version variable... and --version reads the version variable.
22:59:24 <fizzie> For my 'gcc' -V is the version to run, if multiple versions are installed.
22:59:50 <fizzie> I wouldn't expect it to lie.
23:00:12 <CakeProphet> but considering how must scripts work... it's not surprising.
23:01:10 <CakeProphet> hmmm..... I -could- find a way to compile the source for the target machine.... using my computer.
23:01:48 <Pikhq> Yeah. Cross-compilation.
23:01:59 <Pikhq> Figure out what architecture their system uses.
23:02:31 <oerjan> that's where you have to keep your fingers crossed? :)
23:02:41 <fizzie> If it's ancient enough to have gcc less-than-three, it might also have pretty ancient libraries.
23:02:55 <fizzie> a.out executables and non-glibc C library, that sort of thing.
23:06:56 -!- tokigun has quit (Read error: 104 (Connection reset by peer)).
23:12:01 -!- tokigun has joined.
23:15:44 -!- tokigun has quit (Read error: 104 (Connection reset by peer)).
23:17:01 -!- tokigun has joined.
23:18:08 -!- Sgeo has joined.
23:23:18 <Pikhq> fizzie: Cross-compiler which outputs a.out, static linking, voila.
23:25:12 <fizzie> Static linking doesn't much help if it runs a kernel so ancient that the syscalls are all different from what your fancy new library expects. (Not that you couldn't use old libs with the compiler.)
23:25:41 <Pikhq> Cross-compilation *would* let you compile for linux-ancient.
23:51:15 -!- tokigun has quit (Read error: 104 (Connection reset by peer)).
23:52:19 -!- tokigun has joined.