irclog2html for #brlcad on 20100109

00:09.37*** join/#brlcad akafubu (n=akafubu@unaffiliated/akafubu)
00:17.55``Erikboth were const, I was also seeing it in a recursive function where it called itself with the exact same parameter...
00:18.03``Erikthere's something fruity going on with my bsd box I think
00:18.23``Erikbut at the moment, I'm cooking dinner, so *shrug* I don't care :)
00:21.02*** join/#brlcad cosurgi (n=cosurgi@atak.bl.pg.gda.pl)
00:57.24``Erik<colbert> so in order to influence people, I have to appear in their facebook pictures? I don't think I can vomit in that many photos
00:57.27``Erik*snrkt*
01:32.23*** join/#brlcad R0b0t1 (n=Enigma@unaffiliated/r0b0t1)
01:33.11*** join/#brlcad R0b0t1 (n=Enigma@unaffiliated/r0b0t1)
01:49.47brlcad``Erik: both are const, it's const char * vs const char [6] .. should be promotable, but there must be some obscure reason gcc feels the need to bitch about it
01:53.16``Erikhm, I thought I was seeing a couple cases of "const point_t p[6]" not maching "const point_t p[6]", and one case of "const point_t *p" not maching "const point_t *p"
01:53.33``Erik(think it was point_t... not plane_t... hrm...)
01:53.57``Erikstill in the office?
01:59.13RalithAnyone familiar with X input contexts?
01:59.46brlcadyeah, it was plane_t ``Erik
02:00.57brlcadmaybe some spec issue where a char [] parameter is always passed by pointer address so you get a warning if the prototype has [] even if it's a [] to begin with
02:01.01brlcaddunno
02:01.02brlcadsomething obscure for sure
02:01.18``Erikhttp://www.youtube.com/watch?v=4nigRT2KmCE
02:01.41brlcadRalith: have to be more specific to answer that ;)
02:01.42``Erikit's weird, did a -E and it all looked correct to me, saw it in metaball.c, too
02:01.57``ErikI'm thinkin' I may've busted something on my mp3 player *shrug* :)
02:02.23Ralithbrlcad: just trying to get basic internationalized text input working.
02:02.31RalithXutf8LookupString wants an XIC
02:02.35Ralithand I can't work out where to get one
02:03.18Raliththe X manpages are just short of completely useless.
02:03.40``Erikyou don't have the 10 volume X programmer manual on your shelf, ralith? :D
02:03.48Ralith:P
02:04.00Ralithwish I had a shelf that big.
02:04.47``Erikwhy are you touching that directly instead of using a wrapper like sdl, qt, gtk, oid, ...?
02:07.40RalithI'm writing a wrapper like ... ^^
02:11.55``Erikbrlcad: still get the error, replicated on crit
02:12.42``Erikmetaball does it on a "const point_t *"
02:13.24``Erikarb8 on "const plane_t *"
02:14.26Ralithooh, I think I found a PDF of a relevant book.
02:15.24``Erikremoving the const seems to fix it
02:17.34brlcadRalith: XCreateIC()
02:18.34brlcad``Erik: *shrug* .. need to see the snippet -- I replicated one earlier and fixed it just by making it a const * param
02:18.41brlcadinstead ofa [] param
02:18.56brlcadsomething with it being a sized array not being constable
02:18.59Ralithbrlcad: that seems to need a boatload of parameters and I can't find a single doc on what they are.
02:19.16brlcadperhaps the ambiguity that the array itself can't be protected as const
02:20.28``Erikperhaps
02:21.46brlcadRalith left, boo hiss
02:21.49``Erikhttp://pastebin.bzflag.bz/dfda925e
02:22.00``Erik(this is withOUT strict flags, btw)
02:22.05brlcadk
02:22.47brlcadhuh, are you up to date?
02:22.53brlcadbecause I changed arb8
02:22.56``Erikyes
02:23.14*** join/#brlcad Ralith (n=ralith@69.90.48.97)
02:23.40``Erikthe arb8 refers to "const plane_t *p" instead of "const plane_t p[6]"
02:23.54brlcadRalith: when in doubt..
02:23.59brlcadlook at someone else's code
02:24.01brlcadhttp://svn.tomasu.org/index.cgi/allegro/checkout/allegro/branches/4.9/src/x/xkeyboard.c?rev=12203
02:24.26brlcadallegro uses it exactly as I had in mind
02:25.15brlcadgotta get used to the hell that is X11 programming.. verbose and with many layers, like an onion
02:25.18brlcadnot a parfait
02:25.34``Erikhehehe
02:25.47``ErikX is the result of an API appearing on "will it blend" O:-)
02:26.30brlcad"hmm.. what ELSE can we abstract away in the API into it's own type??"
02:27.09``Erikwhat was the um, "if windowing systems were a car" or something? X had a dozen steering wheels, and no two worked alike?
02:30.47brlcadyea
02:31.12brlcadand you can use them all simultaneously
02:31.24brlcadand in some cases are required to use multiple simultaneously
02:31.31brlcadokay, so this is bizzare
02:31.56brlcadplane_t *foo = someplane_array; /* no problem */
02:32.09brlcadconst plane_t *bar = foo; /* bitches *
02:33.32brlcadunrolling, plane_t is a typedef for a fastf_t[4], so somehow related
02:33.39``Erikyup
02:33.50``Erikand -E doesn't show anything fruity happening to const or anything
02:34.14``Erikwonder if some change somewhere is setting something that's putting gcc in a weird mode
02:35.16brlcadconst fastf_t *bar = foo[0]; works fine as I'd hope
02:38.53CIA-38BRL-CAD: 03brlcad * r37181 10/brlcad/trunk/src/librt/primitives/arb8/arb8.c: see if this helps, make the pointer non-temporary
02:38.54brlcadsee if that does it
02:39.18``Eriksucceeded
02:39.38brlcadwelp, there's a pattern to follow at least
02:39.42brlcadseems retaded
02:39.50brlcadretaaaded
02:39.54``Erikghah, ughly
02:43.29``Erikbut functional :(
02:45.47CIA-38BRL-CAD: 03erikgreenwald * r37182 10/brlcad/trunk/src/librt/primitives/metaball/metaball.c: Use temp const to pass instead of casting
02:49.04``Erik"metro-curious" heh
02:52.36Ralithbrlcad: cool, thanks
03:01.26*** join/#brlcad akafubu (n=akafubu@unaffiliated/akafubu)
04:55.06CIA-38BRL-CAD: 03brlcad * r37183 10/brlcad/trunk/src/libged/ (ged_private.h rtcheck.c wdb_obj.c): quell the log() shadow warnings, rename to logstr.
05:08.00CIA-38BRL-CAD: 03brlcad * r37184 10/brlcad/trunk/src/libged/ (3ptarb.c adc.c analyze.c attr.c bev.c bigE.c): quell a slew of compilation warnings including type mismatches, exact floating point comparisons, and param checks.
05:36.19*** join/#brlcad louipc (n=louipc@archlinux/trusteduser/louipc)
11:45.09*** join/#brlcad mafm2 (n=mafm@119.Red-81-34-12.dynamicIP.rima-tde.net)
15:05.49CIA-38BRL-CAD: 03brlcad * r37185 10/brlcad/trunk/src/mged/chgview.c: fix the usage reporting of the drawing commands (E/draw/e/etc) so that usage printing (GED_HELP) is not considered an error.
16:23.44*** join/#brlcad archivist (n=archivis@host81-149-119-172.in-addr.btopenworld.com)
17:37.11*** join/#brlcad jesica__ (n=jesica@168.226.178.192)
18:04.55CIA-38BRL-CAD: 03brlcad * r37186 10/brlcad/trunk/ (NEWS src/libged/aet.c src/libged/quat.c src/libged/ypr.c):
18:04.55CIA-38BRL-CAD: fix a libged refactor bug in view quat and view ypr where you couldn't set quat
18:04.55CIA-38BRL-CAD: or ypr due to a wrong argc count (it was assuming "view .." as an additional
18:04.55CIA-38BRL-CAD: arg). this fixes both quat and ypr so you can now set their values as before.
18:14.10*** join/#brlcad mafm2 (n=mafm@119.Red-81-34-12.dynamicIP.rima-tde.net)
18:46.57CIA-38BRL-CAD: 03brlcad * r37187 10/brlcad/trunk/src/tclscripts/mged/garbage_collect.tcl: (log message trimmed)
18:46.57CIA-38BRL-CAD: complete overhaul of the 'garbage_collect' command. rewrite the command to take
18:46.57CIA-38BRL-CAD: a lot more care to not accidentally destroy the users data if something
18:46.57CIA-38BRL-CAD: unexpected happens. instead of copying over the current database, use the
18:46.59CIA-38BRL-CAD: working keep file as a testing copy and just rename files around as they are
18:47.01CIA-38BRL-CAD: processed and verified. add more verification checks to make sure the view is
18:47.03CIA-38BRL-CAD: restored, objects are saved, and that processing failures won't leave the user
18:55.30CIA-38BRL-CAD: 03brlcad * r37188 10/brlcad/trunk/src/tclscripts/mged/garbage_collect.tcl: if the file is really tiny, it might actually get bigger and that's okay. likewise, the percentage decrease can be dramatic if it's only got a couple objects.
18:56.47CIA-38BRL-CAD: 03brlcad * r37189 10/brlcad/trunk/src/tclscripts/mged/garbage_collect.tcl: clarify the percentage
19:01.03CIA-38BRL-CAD: 03brlcad * r37190 10/brlcad/trunk/NEWS:
19:01.03CIA-38BRL-CAD: the garbage_collect command gets a nearly complete rewrite with considerably
19:01.03CIA-38BRL-CAD: more data validation checks and care taken to not leave the users .g in a
19:01.03CIA-38BRL-CAD: damaged state. if various conditions are encountered, the users original .g
19:01.03CIA-38BRL-CAD: file is left intact.
19:04.31CIA-38BRL-CAD: 03brlcad * r37191 10/brlcad/trunk/src/tclscripts/mged/garbage_collect.tcl: heed warning to the users to back up their geometry, even if the command is considerably more careful now to not irrevocably damage their data.
20:39.01*** join/#brlcad Phurl (n=mdupont@ip-81-210-245-60.unitymediagroup.de)
21:17.55*** join/#brlcad cosurgi (n=cosurgi@atak.bl.pg.gda.pl)
23:37.34*** join/#brlcad jesica__ (n=jesica@168.226.178.192)

Generated by irclog2html.pl by Jeff Waugh - find it at freshmeat.net! Modified by Tim Riker to work with infobot logs, split per channel, etc.