Author |
Message |
Helicon Server Help Squatter
Joined: Dec 03 2002 Posts: 771 Location: GNU Doldrums Offline
|
Posted: Sat Apr 05, 2003 1:45 pm Post subject: |
|
|
|
|
//// chat.c ////
local void SendArenaMessage(Arena *arena, const char *str, ...)
{
LinkedList set = LL_INITIALIZER;
va_list args;
get_arena_set(&set, arena);
va_start(args, str);
v_send_msg(&set, MSG_ARENA, 0, str, args);
va_end(args);
}
|
my C is rusty, here is the function...please explain the
argument _________________ Signatures just seem so quaint. |
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Sat Apr 05, 2003 2:25 pm Post subject: |
|
|
|
|
its the etc... means you put the rest in there, he didnt have time to write it all in. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
|
Helicon Server Help Squatter
Joined: Dec 03 2002 Posts: 771 Location: GNU Doldrums Offline
|
Posted: Sat Apr 05, 2003 6:39 pm Post subject: |
|
|
|
|
no its in the function decalration... in the code...that is not a comment in chat.c |
|
Back to top |
|
|
Mine GO BOOM Hunch Hunch What What
Age:40 Gender: Joined: Aug 01 2002 Posts: 3614 Location: Las Vegas Offline
|
Posted: Sun Apr 06, 2003 1:52 am Post subject: |
|
|
|
|
... means "anything". Have you never used printf before? Anyways, it works like this. The function inside reads the normal variables that are defined, then reads the argument list for the extra stuff. It does a little bit of work, exchanging %s, %d, etc, in a string (usually one of the variables passed to the function) with the extra stuff you sent it. Play around with a printf once to get the hang of it. |
|
Back to top |
|
|
Helicon Server Help Squatter
Joined: Dec 03 2002 Posts: 771 Location: GNU Doldrums Offline
|
Posted: Sun Apr 06, 2003 12:35 pm Post subject: |
|
|
|
|
like i said...i quite a bit rusty....
i messed with it... do %s and %d have any other equivalents as in a possible %a. i noticed you pass p->name and use %s while integers like newship are alll %d |
|
Back to top |
|
|
Mine GO BOOM Hunch Hunch What What
Age:40 Gender: Joined: Aug 01 2002 Posts: 3614 Location: Las Vegas Offline
|
|
Back to top |
|
|
Warhaven Newbie
Gender: Joined: Oct 02 2003 Posts: 9 Location: Sacramento, CA Offline
|
Posted: Thu Oct 02, 2003 7:54 pm Post subject: It's bad enough... |
|
|
|
|
... that Continuum is written in VB.
It could respond SO much better if done in C++.
I even offered to do a port (which would have included a Cocoa version), but they replied, "We don't see a market for it."
I just want to know what market they're speaking of. It's not like Continuum makes money. |
|
Back to top |
|
|
Mine GO BOOM Hunch Hunch What What
Age:40 Gender: Joined: Aug 01 2002 Posts: 3614 Location: Las Vegas Offline
|
Posted: Thu Oct 02, 2003 8:57 pm Post subject: Re: It's bad enough... |
|
|
|
|
Warhaven wrote: | Continuum is written in VB |
I believe you are mistaken here. Continuum is done in C++, the whole way throughout. I don't know where you got the VB part, but it is wrong. Trust me, Priit hates VB as much as the next guy.
And who would respond to a question with the "market" answer? I would have thought your post would be about something else completely, but you did mention Continuum. |
|
Back to top |
|
|
Warhaven Newbie
Gender: Joined: Oct 02 2003 Posts: 9 Location: Sacramento, CA Offline
|
Posted: Wed Oct 08, 2003 6:20 pm Post subject: My Mistake |
|
|
|
|
The earlier versions of Continuum weren't very responsive, and I was told by several people online that it was written in VB (which would have explained everything, outside of it being an early release).
Might explain a little why I got scuffed off. Sorry.
In any event, I had mentioned helping to do a port for OS X (macintosh), and the response was, "We don't see a market for it." So I was wondering what market he/she/they were talking about. May have been a retort against the VB remark.
Anyway, I have a feeling they're not too keen with the PPC architecture, Macs in particular. I get a lot of anti-Mac sentiments in the SS community, so a port is probably very unlikely, even if offered the help. |
|
Back to top |
|
|
Dustpuppy Server Help Squatter
Age:39 Gender: Joined: Jan 23 2003 Posts: 215 Location: England Offline
|
Posted: Thu Oct 09, 2003 9:35 am Post subject: |
|
|
|
|
Looks like standard printf() formatting... |
|
Back to top |
|
|
|