IRC log for #brlcad on 20120901

00:34.56 *** join/#brlcad CIA-62 (cia@cia.vc)
01:49.05 elf_ brlcad, you were right, now that I looked again over that joint.c file it did look very bad, I did what you said, got libged/joint to work along with mged/joint and to print a message header file http://paste.ubuntu.com/1178931/ , joint.c file http://paste.ubuntu.com/1178930/
02:04.30 brlcad elf_: that's looking much MUCH better .. suggest next removing all of those headers in joint.c and only adding the ones you need as you need them
02:04.36 brlcad probably only need two or three
02:05.39 brlcad then next would be to look at the existing f_joint() in src/mged and seeing if you can translate it one statement at a time
02:05.48 brlcad into your new joint.c file
02:12.16 elf_ brlcad, okay I got rid of all the headers that were not needed so far
02:13.11 elf_ Now I will look at f_joint() and try and translate some of it into ged_joint() as you said.
02:20.50 brlcad 90% of it will probably translate as-is
02:20.58 brlcad some of it changes slightly
02:21.20 brlcad for example, the old might call bu_log() to print a result, ged goes through a result string instead
02:21.55 brlcad look at some of the other ged commands if you come across something that you can't seem to get working to see if it's a common pattern
02:24.03 brlcad if it's not or if you get stuck, please do ask :)
02:40.31 elf_ okay : )
09:57.17 *** join/#brlcad Al_Da_Best (~Al_Da_Bes@5e0e1434.bb.sky.com)
11:47.51 elf_ About the f_joint() function, there's a line status = mged_cmd(argc, argv, &joint[0]) that I don't know yet how to port into the libged library
11:48.51 elf_ I understand that mged_cmd checks in a table for a command and then passes control to another function
11:49.40 elf_ It's there a way to do that with libged functions? I haven't found any example that deals with the functions in this manner in libged library
11:53.08 elf_ I found the int bu_getopt(int, char * const, const char *) that looks for the next known caracter option in a string, I am not sure though that's what I should be looking after...
13:07.01 *** join/#brlcad ChanServ (ChanServ@services.)
13:07.01 *** mode/#brlcad [+o ChanServ] by hubbard.freenode.net
14:50.51 *** join/#brlcad louipc (~louipc@archlinux/fellow/louipc)
15:38.14 *** join/#brlcad CIA-61 (cia@cia.vc)
17:10.54 *** join/#brlcad ``Erik_ (~erik@pool-108-3-186-191.bltmmd.fios.verizon.net)
17:17.46 *** join/#brlcad dtidrow (~dtidrow@c-68-84-167-135.hsd1.mi.comcast.net)
17:17.54 *** join/#brlcad merzo_ (~merzo@134-11-133-95.pool.ukrtel.net)
22:13.56 *** join/#brlcad merzo_ (~merzo@32-9-133-95.pool.ukrtel.net)

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.