Tcl Source Code

Hex Artifact Content
Login

Artifact 7fdaed454b8cda3b5ed4df3bcb26924c007f2598:

Ticket change [7fdaed454b] - Add attachment [/artifact/6e5855940eaa61c9|tiny.tgz] to ticket [39f6304c2e90549c|39f6304c2e] by fvogel 2016-12-17 14:17:49.
0000: 41 20 74 69 6e 79 2e 74 67 7a 20 33 39 66 36 33  A tiny.tgz 39f63
0010: 30 34 63 32 65 39 30 35 34 39 63 32 30 39 63 64  04c2e90549c209cd
0020: 31 31 61 37 39 32 30 64 63 39 39 32 31 62 39 66  11a7920dc9921b9f
0030: 34 38 65 20 36 65 35 38 35 35 39 34 30 65 61 61  48e 6e5855940eaa
0040: 36 31 63 39 65 35 32 32 64 34 39 30 36 38 62 31  61c9e522d49068b1
0050: 39 33 39 30 32 61 64 65 64 32 64 62 0a 43 20 46  93902aded2db.C F
0060: 72 6f 6d 5c 73 74 68 65 5c 73 4f 50 3a 5c 72 5c  rom\sthe\sOP:\r\
0070: 6e 5c 72 5c 6e 49 5c 73 68 61 76 65 5c 73 61 74  n\r\nI\shave\sat
0080: 74 61 63 68 65 64 5c 73 61 5c 73 74 61 72 66 69  tached\sa\starfi
0090: 6c 65 2c 5c 73 74 69 6e 79 2e 74 67 7a 2c 5c 73  le,\stiny.tgz,\s
00a0: 77 69 74 68 5c 73 6a 75 73 74 5c 72 5c 6e 74 68  with\sjust\r\nth
00b0: 65 5c 73 73 6b 65 6c 65 74 6f 6e 5c 73 6f 66 5c  e\sskeleton\sof\
00c0: 73 6d 79 5c 73 64 75 61 6c 2d 65 76 65 6e 74 2d  smy\sdual-event-
00d0: 6c 6f 6f 70 5c 73 43 2d 70 6c 75 73 2d 74 63 6c  loop\sC-plus-tcl
00e0: 5c 72 5c 6e 63 6f 64 65 2c 5c 73 74 69 6e 79 2e  \r\ncode,\stiny.
00f0: 63 5c 73 28 31 33 30 5c 73 6c 69 6e 65 73 29 2e  c\s(130\slines).
0100: 5c 73 5c 73 49 74 5c 73 69 73 5c 73 64 65 73 69  \s\sIt\sis\sdesi
0110: 67 6e 65 64 5c 73 74 6f 5c 72 5c 6e 63 61 74 63  gned\sto\r\ncatc
0120: 68 5c 73 65 76 65 6e 74 73 5c 73 69 6e 5c 73 62  h\sevents\sin\sb
0130: 6f 74 68 5c 73 61 5c 73 74 6b 5c 73 69 6e 74 65  oth\sa\stk\sinte
0140: 72 66 61 63 65 5c 73 77 69 6e 64 6f 77 5c 73 61  rface\swindow\sa
0150: 6e 64 5c 72 5c 6e 61 5c 73 73 65 70 65 72 61 74  nd\r\na\sseperat
0160: 65 5c 73 47 4c 58 5c 73 4f 70 65 6e 47 4c 5c 73  e\sGLX\sOpenGL\s
0170: 77 69 6e 64 6f 77 5c 73 28 49 5c 73 6f 6d 69 74  window\s(I\somit
0180: 74 65 64 5c 73 74 68 65 5c 73 58 31 31 5c 72 5c  ted\sthe\sX11\r\
0190: 6e 65 76 65 6e 74 5c 73 63 6f 64 65 5c 73 62 75  nevent\scode\sbu
01a0: 74 5c 73 6c 65 66 74 5c 73 6d 79 5c 73 64 75 61  t\sleft\smy\sdua
01b0: 6c 5c 73 65 76 65 6e 74 5c 73 6c 6f 6f 70 29 2e  l\sevent\sloop).
01c0: 5c 72 5c 6e 5c 72 5c 6e 54 68 69 73 5c 73 64 65  \r\n\r\nThis\sde
01d0: 6d 6f 6e 73 74 72 61 74 65 73 5c 73 74 68 65 5c  monstrates\sthe\
01e0: 73 70 72 6f 62 6c 65 6d 5c 73 6f 66 5c 73 6e 6f  sproblem\sof\sno
01f0: 74 5c 73 62 65 69 6e 67 5c 73 61 62 6c 65 5c 72  t\sbeing\sable\r
0200: 5c 6e 74 6f 5c 73 74 79 70 65 5c 73 61 5c 73 62  \nto\stype\sa\sb
0210: 61 72 65 5c 73 27 2d 27 5c 73 69 6e 74 6f 5c 73  are\s'-'\sinto\s
0220: 61 6e 5c 73 65 6e 74 72 79 5c 73 6c 69 6e 6b 65  an\sentry\slinke
0230: 64 5c 73 74 6f 5c 73 61 5c 72 5c 6e 43 5c 73 76  d\sto\sa\r\nC\sv
0240: 61 72 69 61 62 6c 65 5c 73 75 73 69 6e 67 5c 73  ariable\susing\s
0250: 54 63 6c 4c 69 6e 6b 56 61 72 5c 73 28 69 6e 74  TclLinkVar\s(int
0260: 5c 73 61 6e 64 5c 73 64 6f 75 62 6c 65 5c 72 5c  \sand\sdouble\r\
0270: 6e 65 78 61 6d 70 6c 65 73 29 2e 5c 72 5c 6e 5c  nexamples).\r\n\
0280: 72 5c 6e 54 68 65 5c 73 74 69 6e 79 2e 74 63 6c  r\nThe\stiny.tcl
0290: 5c 73 74 6b 5c 73 69 6e 74 65 72 66 61 63 65 5c  \stk\sinterface\
02a0: 73 6d 61 6b 65 73 5c 73 6c 61 62 65 6c 65 64 5c  smakes\slabeled\
02b0: 73 65 6e 74 72 69 65 73 5c 72 5c 6e 75 73 69 6e  sentries\r\nusin
02c0: 67 5c 73 62 6f 74 68 5c 73 74 6b 3a 3a 65 6e 74  g\sboth\stk::ent
02d0: 72 79 5c 73 61 6e 64 5c 73 74 74 6b 3a 3a 65 6e  ry\sand\sttk::en
02e0: 74 72 79 2e 5c 72 5c 6e 5c 72 5c 6e 54 6f 5c 73  try.\r\n\r\nTo\s
02f0: 63 6f 6d 70 69 6c 65 5c 73 69 74 2c 5c 73 66 69  compile\sit,\sfi
0300: 72 73 74 5c 73 63 6f 70 79 5c 73 74 68 65 5c 73  rst\scopy\sthe\s
0310: 38 2e 35 2e 31 38 5c 73 74 6b 5c 73 61 6e 64 5c  8.5.18\stk\sand\
0320: 73 74 63 6c 5c 72 5c 6e 73 6f 75 72 63 65 5c 73  stcl\r\nsource\s
0330: 66 69 6c 65 73 5c 73 69 6e 74 6f 5c 73 74 68 65  files\sinto\sthe
0340: 5c 73 64 69 72 65 63 74 6f 72 79 5c 73 61 66 74  \sdirectory\saft
0350: 65 72 5c 73 75 6e 74 61 72 27 69 6e 67 5c 73 69  er\suntar'ing\si
0360: 74 2e 5c 72 5c 6e 28 49 5c 73 6f 72 69 67 69 6e  t.\r\n(I\sorigin
0370: 61 6c 6c 79 5c 73 69 6e 63 6c 75 64 65 64 5c 73  ally\sincluded\s
0380: 74 68 65 6d 5c 73 69 6e 5c 73 74 68 65 5c 73 74  them\sin\sthe\st
0390: 61 72 66 69 6c 65 5c 73 62 75 74 5c 72 5c 6e 74  arfile\sbut\r\nt
03a0: 68 65 79 5c 73 77 65 72 65 5c 73 74 6f 6f 5c 73  hey\swere\stoo\s
03b0: 62 69 67 5c 73 3a 2d 7d 5c 73 29 2e 5c 72 5c 6e  big\s:-}\s).\r\n
03c0: 5c 72 5c 6e 54 68 61 74 5c 73 77 61 79 2c 5c 73  \r\nThat\sway,\s
03d0: 79 6f 75 5c 73 63 61 6e 5c 73 64 6f 5c 73 61 5c  you\scan\sdo\sa\
03e0: 73 66 72 65 73 68 5c 73 63 6f 6d 70 69 6c 65 5c  sfresh\scompile\
03f0: 73 61 6e 64 5c 73 62 65 5c 72 5c 6e 73 75 72 65  sand\sbe\r\nsure
0400: 5c 73 74 68 61 74 5c 73 79 6f 75 5c 73 61 72 65  \sthat\syou\sare
0410: 5c 73 63 6f 6d 70 69 6c 69 6e 67 5c 73 6d 79 5c  \scompiling\smy\
0420: 73 74 69 6e 79 2e 63 5c 73 63 6f 64 65 5c 73 63  stiny.c\scode\sc
0430: 6f 64 65 5c 72 5c 6e 65 78 70 6c 69 63 69 74 6c  ode\r\nexplicitl
0440: 79 5c 73 61 67 61 69 6e 73 74 5c 73 74 68 65 6d  y\sagainst\sthem
0450: 2e 5c 73 5c 73 49 27 76 65 5c 73 61 70 70 65 6e  .\s\sI've\sappen
0460: 64 65 64 5c 73 74 68 65 5c 72 5c 6e 4e 4f 54 45  ded\sthe\r\nNOTE
0470: 53 2e 74 78 74 5c 73 69 6e 73 74 72 75 63 74 69  S.txt\sinstructi
0480: 6f 6e 73 5c 73 66 6f 72 5c 73 63 6f 6d 70 69 6c  ons\sfor\scompil
0490: 69 6e 67 2f 74 65 73 74 69 6e 67 5c 72 5c 6e 62  ing/testing\r\nb
04a0: 65 6c 6f 77 5c 73 28 61 6c 73 6f 5c 73 69 6e 73  elow\s(also\sins
04b0: 69 64 65 5c 73 74 61 72 66 69 6c 65 29 2e 5c 72  ide\starfile).\r
04c0: 5c 6e 5c 72 5c 6e 49 5c 73 74 65 73 74 65 64 5c  \n\r\nI\stested\
04d0: 73 74 68 69 73 5c 73 6f 6e 5c 73 4d 61 63 5c 73  sthis\son\sMac\s
04e0: 4f 53 5c 73 31 30 2e 36 2e 38 5c 73 61 6e 64 5c  OS\s10.6.8\sand\
04f0: 73 31 30 2e 31 32 2e 32 2c 5c 73 61 6e 64 5c 72  s10.12.2,\sand\r
0500: 5c 6e 43 65 6e 74 4f 53 5c 73 35 2e 39 2c 5c 73  \nCentOS\s5.9,\s
0510: 69 6e 5c 73 62 6f 74 68 5c 73 74 63 73 68 5c 73  in\sboth\stcsh\s
0520: 61 6e 64 5c 73 62 61 73 68 2e 5c 73 5c 73 49 74  and\sbash.\s\sIt
0530: 5c 73 62 65 68 61 76 65 73 5c 72 5c 6e 74 68 65  \sbehaves\r\nthe
0540: 5c 73 73 61 6d 65 5c 73 69 6e 5c 73 61 6c 6c 3a  \ssame\sin\sall:
0550: 5c 72 5c 6e 5c 72 5c 6e 5c 73 5c 73 74 6b 3a 3a  \r\n\r\n\s\stk::
0560: 5c 73 5c 73 5c 73 4f 4b 5c 72 5c 6e 5c 73 5c 73  \s\s\sOK\r\n\s\s
0570: 74 74 6b 3a 3a 5c 73 5c 73 61 70 70 5c 73 65 72  ttk::\s\sapp\ser
0580: 72 6f 72 0a 44 20 32 30 31 36 2d 31 32 2d 31 37  ror.D 2016-12-17
0590: 54 31 34 3a 31 37 3a 34 39 2e 33 38 33 0a 55 20  T14:17:49.383.U 
05a0: 66 76 6f 67 65 6c 0a 5a 20 34 30 39 39 66 39 36  fvogel.Z 4099f96
05b0: 37 36 32 36 32 66 36 66 31 66 34 63 32 34 62 62  76262f6f1f4c24bb
05c0: 34 61 35 66 31 35 33 36 31 0a                    4a5f15361.