A tiny.tgz 39f6304c2e90549c209cd11a7920dc9921b9f48e 6e5855940eaa61c9e522d49068b193902aded2db C From\sthe\sOP:\r\n\r\nI\shave\sattached\sa\starfile,\stiny.tgz,\swith\sjust\r\nthe\sskeleton\sof\smy\sdual-event-loop\sC-plus-tcl\r\ncode,\stiny.c\s(130\slines).\s\sIt\sis\sdesigned\sto\r\ncatch\sevents\sin\sboth\sa\stk\sinterface\swindow\sand\r\na\sseperate\sGLX\sOpenGL\swindow\s(I\somitted\sthe\sX11\r\nevent\scode\sbut\sleft\smy\sdual\sevent\sloop).\r\n\r\nThis\sdemonstrates\sthe\sproblem\sof\snot\sbeing\sable\r\nto\stype\sa\sbare\s'-'\sinto\san\sentry\slinked\sto\sa\r\nC\svariable\susing\sTclLinkVar\s(int\sand\sdouble\r\nexamples).\r\n\r\nThe\stiny.tcl\stk\sinterface\smakes\slabeled\sentries\r\nusing\sboth\stk::entry\sand\sttk::entry.\r\n\r\nTo\scompile\sit,\sfirst\scopy\sthe\s8.5.18\stk\sand\stcl\r\nsource\sfiles\sinto\sthe\sdirectory\safter\suntar'ing\sit.\r\n(I\soriginally\sincluded\sthem\sin\sthe\starfile\sbut\r\nthey\swere\stoo\sbig\s:-}\s).\r\n\r\nThat\sway,\syou\scan\sdo\sa\sfresh\scompile\sand\sbe\r\nsure\sthat\syou\sare\scompiling\smy\stiny.c\scode\scode\r\nexplicitly\sagainst\sthem.\s\sI've\sappended\sthe\r\nNOTES.txt\sinstructions\sfor\scompiling/testing\r\nbelow\s(also\sinside\starfile).\r\n\r\nI\stested\sthis\son\sMac\sOS\s10.6.8\sand\s10.12.2,\sand\r\nCentOS\s5.9,\sin\sboth\stcsh\sand\sbash.\s\sIt\sbehaves\r\nthe\ssame\sin\sall:\r\n\r\n\s\stk::\s\s\sOK\r\n\s\sttk::\s\sapp\serror D 2016-12-17T14:17:49.383 U fvogel Z 4099f9676262f6f1f4c24bb4a5f15361