File: notes1.txt

package info (click to toggle)
tk-html3 3.0~fossil20110109-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,644 kB
  • ctags: 5,882
  • sloc: ansic: 48,994; tcl: 26,030; sh: 1,190; yacc: 161; makefile: 24
file content (52 lines) | stat: -rw-r--r-- 1,527 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
The HTML widget uses lots of TCL callback routines.  But a TCL
callback can do nasty things.  For example, a TCL callback
could delete the HTML widget that invoked the callback.  Or
it could delete the TCL interpreter in which the HTML widget
is running.  So we have to call HtmlLock() before invoking
a TCL callback and check to make sure the widget was not
deleted before using any fields in the widget structure after
the callback runs.

The following routines can call TCL callbacks, either directly
or indirectly:

   HtmlTokenizerAppend()
     HtmlParseCmd()
       HtmlWidgetCommand()
   HtmlGetImage()
     HtmlAddStyle()
       HtmlParseCmd()...
     HtmlSizer()
       HtmlLayout()
         HtmlRedrawCallback()
   GetLinkColor()
     HtmlAddStyle()...
   HtmlCallResolver()
     HtmlGetImage()...
     HtmlResolveCmd()
       HtmlWidgetCommand()
   HtmlRedrawCallback()...
   HtmlGetFont()
     DrawSelectionBackground()
       HtmlBlockDraw()...
     HtmlBlockDraw()
       HtmlRedrawCallback()
     FindIndexInBlock()
       DecodeBaseIndex()
         HtmlGetIndex()
           HtmlIndexCmd()
             HtmlWidgetCommand()...
           HtmlSelectionSetCmd()
             HtmlWidgetCommand()...
           HtmlInsertCmd()
             HtmlWidgetCommand()...
     Paragraph()
       DoBreakMarkup()
         HtmlLayoutBlock()
           HtmlLayout()...
           HtmlTableLayout()
             DoBreakMarkup()...
   HtmlDeleteControls()
     HtmlClear()
       HtmlWidgetCommand()...
       HtmlDestroyWidget()