home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-02-01 | 47.0 KB | 1,067 lines |
- # ppres data_file
-
- # This file contains a presentation prepared by
- # Perspecta Presents 1.09
-
- dictdefine itemlook Drawing -fg Black -lp Solid -bg White -fp Solid -width 1.00 -dash solid -arrow none -feather White -dir 0
- dictdefine itemlook Arrows -fg Black -lp Solid -bg White -fp Solid -width 1.00 -dash solid -arrow head -feather White -dir 0
- dictdefine itemlook TextBox -fg None -lp Solid -bg None -fp Solid -width 1.00 -dash solid -arrow none -feather Black -dir 0
- dictdefine paralook Title -family Times -color Blue -pointsize 36 -bold 1 -italic 0 -underline 0 -left 0.00 -indent 0.00 -right 0.00 -top 0.00 -bottom 0.00 -linespace 1.20 -linespacetype 1 -paraspace 1.20 -paraspacetype 1 -justify left -tabs {} -powertext None
- dictdefine paralook Text -family Times -color Black -pointsize 24 -bold 0 -italic 0 -underline 0 -left 0.00 -indent 0.00 -right 0.00 -top 0.00 -bottom 0.00 -linespace 1.00 -linespacetype 1 -paraspace 1.00 -paraspacetype 1 -justify left -tabs { 36 72 108 144 180 216 252 288 324 360 396} -powertext None
- dictdefine paralook Heading -family Times -color Black -pointsize 24 -bold 1 -italic 0 -underline 0 -left 0.00 -indent 0.00 -right 0.00 -top 0.00 -bottom 0.00 -linespace 1.20 -linespacetype 1 -paraspace 1.50 -paraspacetype 1 -justify left -tabs { 36 72 108 144 180 216 252 288 324 360 396} -powertext None
- dictdefine paralook Subheading -family Times -color Black -pointsize 24 -bold 0 -italic 0 -underline 0 -left 36.00 -indent 0.00 -right 0.00 -top 0.00 -bottom 0.00 -linespace 1.20 -linespacetype 1 -paraspace 1.50 -paraspacetype 1 -justify left -tabs { 36 72 108 144 180 216 252 288 324 360 396} -powertext None
- dictdefine paralook BHeading -family Times -color Black -pointsize 24 -bold 0 -italic 0 -underline 0 -left 18.00 -indent -18.00 -right 0.00 -top 0.00 -bottom 0.00 -linespace 1.20 -linespacetype 1 -paraspace 1.50 -paraspacetype 1 -justify left -tabs { 54 90 126 162 198 234 270 306 342 378 414} -powertext Bullets
- dictdefine paralook BSubheading -family Times -color Black -pointsize 24 -bold 0 -italic 0 -underline 0 -left 54.00 -indent -18.00 -right 0.00 -top 0.00 -bottom 0.00 -linespace 1.20 -linespacetype 1 -paraspace 1.50 -paraspacetype 1 -justify left -tabs { 54 90 126 162 198 234 270 306 342 378 414} -powertext Bullets
- dictdefine paralook I.Heading -family Times -color Black -pointsize 24 -bold 1 -italic 0 -underline 0 -left 36.00 -indent -36.00 -right 0.00 -top 0.00 -bottom 0.00 -linespace 1.20 -linespacetype 1 -paraspace 1.50 -paraspacetype 1 -justify left -tabs { 36 72 108 144 180 216 252 288 324 360 396} -powertext Roman
- dictdefine paralook 1.Heading -family Times -color Black -pointsize 24 -bold 0 -italic 0 -underline 0 -left 36.00 -indent -36.00 -right 0.00 -top 0.00 -bottom 0.00 -linespace 1.20 -linespacetype 1 -paraspace 1.50 -paraspacetype 1 -justify left -tabs { 36 72 108 144 180 216 252 288 324 360 396} -powertext Numbers
- dictdefine paralook A.Subheading -family Times -color Black -pointsize 24 -bold 0 -italic 0 -underline 0 -left 72.00 -indent -36.00 -right 0.00 -top 0.00 -bottom 0.00 -linespace 1.20 -linespacetype 1 -paraspace 1.50 -paraspacetype 1 -justify left -tabs { 72 108 144 180 216 252 288 324 360 396} -powertext Letters
- dictdefine paralook 1.Subheading -family Times -color Black -pointsize 24 -bold 0 -italic 0 -underline 0 -left 72.00 -indent -36.00 -right 0.00 -top 0.00 -bottom 0.00 -linespace 1.20 -linespacetype 1 -paraspace 1.50 -paraspacetype 1 -justify left -tabs { 108 144 180 216 252 288 324 360 396} -powertext Numbers
- dictdefine paralook (a)Subheading -family Times -color Black -pointsize 24 -bold 0 -italic 0 -underline 0 -left 72.00 -indent -36.00 -right 0.00 -top 0.00 -bottom 0.00 -linespace 1.20 -linespacetype 1 -paraspace 1.50 -paraspacetype 1 -justify left -tabs { 144 180 216 252 288 324 360 396} -powertext Letters(lc)
- dictdefine paralook i.Subheading -family Times -color Black -pointsize 24 -bold 0 -italic 0 -underline 0 -left 72.00 -indent -36.00 -right 0.00 -top 0.00 -bottom 0.00 -linespace 1.20 -linespacetype 1 -paraspace 1.50 -paraspacetype 1 -justify left -tabs { 180 216 252 288 324 360 396} -powertext Roman(lc)
- dictdefine paralook Code -family Courier -color Green -pointsize 24 -bold 1 -italic 0 -underline 0 -left 36.00 -indent 0.00 -right 0.00 -top 0.00 -bottom 0.00 -linespace 1.00 -linespacetype 1 -paraspace 1.00 -paraspacetype 1 -justify left -tabs { 36 72 108 144 180 216 252 288 324 360 396} -powertext None
- dictdefine color Black #000000
- dictdefine color White #ffffff
- dictdefine color Red #ff0000
- dictdefine color Orange #ffa500
- dictdefine color Yellow #ffff00
- dictdefine color Green #00ff00
- dictdefine color Blue #00beff
- dictdefine color Purple #ca00e1
- dictdefine color Grey #c0c0c0
- talk itemconfig -look Drawing -fg Blue -bg Red -fp Solid -width 1.00 -arrow head -feather White -dir 90
- talk textconfig -look TextBox
- talk paraconfig -look BHeading
- set talk(textUnits) i
- set talk(featherSwatches) 16
- set talk(noteOrientation) v
- set talk(backgOrientation) v
- set talk(featherPrint) 1
- set talk(gridGridi) 8
- set talk(windowZoom) 1
- set talk(pointsize) {8 10 12 14 18 20 22 24 36}
- set talk(grid) 9
- set talk(textGridc) 5
- set talk(pagesize) {612 792}
- set talk(gridUnits) i
- set talk(textGridi) 8
- set talk(featherBlend) color
- set talk(spacing) {0.00 0.50 1.00 1.2 1.50 1.75 2.00 2.5 3.00 4.0}
- set talk(featherDisplay) 1
- set talk(printLevel) 2
- set talk(customUnits) i
- set talk(gridGridc) 5
- view active 1backg
- orientation - v
- set ti [new - title "54 95 558 140.956" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title -justify center;
- insert $ti shift -revert 1;
- insert $ti shift -color Blue;
- insert $ti shift -string "Title" -color Blue;
- tiformat $ti 0 5 0 6 -color Blue;
- set ti;
-
- view active 2backg
- orientation - v
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Title" ;
- set ti;
- new - rectangle "27 108 585 114.75" -look Drawing -fg None -bg Blue -fp Blend -width 0.50 -feather White -dir 90
- set ti [new - textitem "387 702 585 718.004" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text -justify right;
- insert $ti shift -revert 1;
- insert $ti shift -family Helvetica -pointsize 12;
- insert $ti shift -string "Tcl C Interfaces, slide " -family Helvetica -pointsize 12;
- set id [PowerCreate 1 $ti cursor {Page Number} Numbers { -family Helvetica -pointsize 12} -1 { 13 }];
- insert $ti shift -string "." -family Helvetica -pointsize 12;
- tiformat $ti 0 29 0 30 -pointsize 12;
- set ti;
-
- view active 1slide
- backg - 1
- set ti [new - title "27 140 585 241.0288" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title -justify center;
- insert $ti shift -revert 1;
- insert $ti shift -string "Writing Tcl-Based Applications" ;
- insertPara $ti shift ;
- insert $ti shift -string "In C" ;
- set ti;
- set ti [new - textitem "27 423 585 636.824" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Heading -paraspace 1.00 -justify center;
- insert $ti shift -revert 1;
- insert $ti shift -color Red -bold 0 -italic 0 -underline 0;
- insert $ti shift -string "John Ousterhout" -color Red -bold 0 -italic 0 -underline 0;
- insertPara $ti shift ;
- insertPara $ti shift -color -1;
- insertPara $ti shift ;
- insert $ti shift -string "Computer Science Division" -bold 0 -italic 0 -underline 0;
- insertPara $ti shift ;
- insert $ti shift -string "Department of EECS" -bold 0 -italic 0 -underline 0;
- insertPara $ti shift ;
- insertPara $ti shift ;
- insert $ti shift -string "University of California at Berkeley" -bold 0 -italic 0 -underline 0;
- tiformat $ti 6 36 6 37 -bold 0 -italic 0 -underline 0;
- set ti;
- set ti [new - textitem "81 270 126 301.304" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Heading;
- insert $ti shift -revert 1;
- set ti;
-
- view active 1note
- orientation - v
- icon - 100.45455 40 0.67171717
-
- view active 2slide
- backg - 2
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Outline" ;
- set ti;
- set ti [new - textitem "36 180 594 637.11968" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -plook { -color Red} -look 1.Heading -paraspace 4.00;
- insert $ti shift -revert 1;
- insert $ti shift -string "Philosophy: focus on " ;
- insert $ti shift -color Red;
- insert $ti shift -string "primitives" -color Red;
- insert $ti shift -color -1;
- insert $ti shift -string "." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red};
- insert $ti shift -string "Basics: interpreters, executing scripts." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red};
- insert $ti shift -string "Implementing new commands." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red};
- insert $ti shift -string "Managing the result string." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red};
- insert $ti shift -string "Useful library procedures: parsing, variables, list manipulation, hash tables." ;
- set ti;
-
- view active 3slide
- backg - 2
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Philosophy" ;
- set ti;
- set ti [new - textitem "36 171 594 617.52896" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -plook { -color Red} -look BHeading;
- insert $ti shift -revert 1;
- insert $ti shift -string "Take advantage of Tcl as scripting language." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red} -paraspace 2.50;
- insert $ti shift -string "Application should:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red} -look (a)Subheading -paraspace 2.00;
- insert $ti shift -string "Implement new kinds of objects in C." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red};
- insert $ti shift -string "Define textual names for objects (to use in Tcl commands)." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red};
- insert $ti shift -string "Implement primitive operations on objects as Tcl commands." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red} -look BHeading -paraspace 2.50;
- insert $ti shift -string "Build complex features as Tcl scripts." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red};
- insert $ti shift -string "For C code, focus on clean, orthogonal " ;
- insert $ti shift -color Red;
- insert $ti shift -string "primitives" -color Red;
- insert $ti shift -color -1;
- insert $ti shift -string "." ;
- set ti;
-
- view active 4slide
- backg - 2
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Interpreters" ;
- set ti;
- set ti [new - textitem "36 153 594 624.13568" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -plook { -color Red} -look BHeading;
- insert $ti shift -revert 1;
- insert $ti shift -string "Tcl_Interp data structure encapsulates execution state:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Subheading;
- insert $ti shift -string "- Variables." ;
- insertPara $ti shift ;
- insert $ti shift -string "- Commands implemented in C." ;
- insertPara $ti shift ;
- insert $ti shift -string "- Tcl procedures." ;
- insertPara $ti shift ;
- insert $ti shift -string "- Execution stack." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red} -look BHeading -paraspace 2.50;
- insert $ti shift -string "Can have many interpreters in a single application (but usually just one)." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red};
- insert $ti shift -string "Creating and deleting interpreters:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code -paraspace 1.50;
- insert $ti shift -string "Tcl_Interp *interp\;" ;
- insertPara $ti shift ;
- insert $ti shift -string "interp = Tcl_CreateInterp()\;" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace -1;
- insert $ti shift -string "Tcl_DeleteInterp(interp)\;" ;
- set ti;
-
- view active 4note
- orientation - v
- icon - 100.45455 40 0.67171717
-
- view active 5slide
- backg - 2
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Executing Tcl Scripts" ;
- set ti;
- set ti [new - textitem "9 153 594 302.598" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Code;
- insert $ti shift -revert 1;
- insert $ti shift -pointsize 22;
- insert $ti shift -string "int code\;" -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string "code = Tcl_Eval(interp, \"set a 1\", ...)\;" -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string "code = Tcl_VarEval(interp, \"set a\"," -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string " \" 1\", (char *) NULL)\;" -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string "code = Tcl_EvalFile(interp, \"init.tcl\")\;" -pointsize 22;
- tiformat $ti 4 40 4 41 -pointsize 22;
- set ti;
- set ti [new - textitem "45 333 594 607.34816" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look BHeading;
- insert $ti shift -revert 1;
- insert $ti shift -string "code" -family Courier -bold 1;
- insert $ti shift -family -1 -bold -1;
- insert $ti shift -string " indicates success or failure:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Subheading -left 36.00 -indent 0.00 -tabs { 198 252 288 324 360 396};
- insert $ti shift -family Courier -color Green -bold 1;
- insert $ti shift -string "TCL_OK" -family Courier -color Green -bold 1;
- insert $ti shift -family -1;
- insert $ti shift -string ":" -color Green -bold 1;
- insert $ti shift -color -1 -bold -1;
- insert $ti shift -string " normal completion." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace 1.20;
- insert $ti shift -family Courier -color Green -bold 1;
- insert $ti shift -string "TCL_ERROR" -family Courier -color Green -bold 1;
- insert $ti shift -family -1;
- insert $ti shift -string ":" -color Green -bold 1;
- insert $ti shift -color -1 -bold -1;
- insert $ti shift -string " error occurred." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look BHeading -paraspace 2.50;
- insert $ti shift -string "interp->result" -family Courier -color Green -bold 1;
- insert $ti shift -family -1 -color -1 -bold -1;
- insert $ti shift -string " points to string: result or error message." ;
- insertPara $ti shift ;
- insert $ti shift -string "Application should display result or message for user." ;
- set ti;
-
- view active 6slide
- backg - 2
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Where Do Scripts Come From?" ;
- set ti;
- set ti [new - textitem "36 198 585 467.06048" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -plook { -color Red} -look BHeading -paraspace 4.00;
- insert $ti shift -revert 1;
- insert $ti shift -string "Read from standard input (see " ;
- insert $ti shift -family Courier -bold 1;
- insert $ti shift -string "tclTest.c" -family Courier -bold 1;
- insert $ti shift -family -1 -bold -1;
- insert $ti shift -string ")." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red};
- insert $ti shift -string "Read from script file (see " ;
- insert $ti shift -family Courier -bold 1;
- insert $ti shift -string "tclTest.c" -family Courier -bold 1;
- insert $ti shift -family -1 -bold -1;
- insert $ti shift -string ")." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red};
- insert $ti shift -string "Associate with X events, wait for events, invoke associated scripts (see " ;
- insert $ti shift -family Courier -bold 1;
- insert $ti shift -string "main.c" -family Courier -bold 1;
- insert $ti shift -family -1 -bold -1;
- insert $ti shift -string " for " ;
- insert $ti shift -family Courier -bold 1;
- insert $ti shift -string "wish" -family Courier -bold 1;
- insert $ti shift -family -1 -bold -1;
- insert $ti shift -string ")." ;
- set ti;
-
- view active 7slide
- backg - 2
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Creating New Tcl Commands" ;
- set ti;
- set ti [new - textitem "45 153 603 709.5516" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -plook { -color Red} -look BHeading;
- insert $ti shift -revert 1;
- insert $ti shift -string "Write command procedure in C:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code -paraspace 1.50;
- insert $ti shift -pointsize 22;
- insert $ti shift -string "int cmdProc(ClientData clientData," -pointsize 22;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace 0.00;
- insert $ti shift -string " Tcl_Interp *interp, int argc," -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string " char **argv) \{" -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string " if (argc != 3) \{" -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string " interp->result = \"wrong # args\"\;" -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string " return TCL_ERROR\;" -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string " \}" -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string " if (strcmp(argv\[1\], argv\[2\]) == 0) \{" -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string " interp->result = \"1\"\;" -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string " \} else \{" -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string " interp->result = \"0\"\;" -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string " \}" -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string " return TCL_OK\;" -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string "\}" -pointsize 22;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red} -look BHeading;
- insert $ti shift -string "Register with interpreter:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code -paraspace 1.50;
- insert $ti shift -pointsize 22;
- insert $ti shift -string "Tcl_CreateCommand(interp, \"eq\"," -pointsize 22;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace 0.00;
- insert $ti shift -string " cmdProc, (ClientData) NULL, ...)\;" -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string "Tcl_DeleteCommand(interp, \"eq\")\;" -pointsize 22;
- tiformat $ti 18 32 18 33 -pointsize 22;
- set ti;
-
- view active 8slide
- backg - 2
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "ClientData" ;
- set ti;
- set ti [new - textitem "9 153 594 287.55" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Code;
- insert $ti shift -revert 1;
- insert $ti shift -pointsize 22;
- insert $ti shift -string "Tcl_CreateCommand(interp, \"eq\", cmdProc," -pointsize 22;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace 0.00;
- insert $ti shift -string " " -pointsize 22;
- insert $ti shift -color Red;
- insert $ti shift -string "clientData" -color Red -pointsize 22;
- insert $ti shift -color -1;
- insert $ti shift -string ", ...)\;" -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string "int cmdProc(" -pointsize 22;
- insert $ti shift -color Red;
- insert $ti shift -string "ClientData clientData" -color Red -pointsize 22;
- insert $ti shift -color -1;
- insert $ti shift -string ", ...) \{" -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string " ..." -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string "\}" -pointsize 22;
- tiformat $ti 4 1 4 2 -pointsize 22;
- set ti;
- set ti [new - textitem "36 315 576 628.25984" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -plook { -color Red} -look BHeading -paraspace 2.50;
- insert $ti shift -revert 1;
- insert $ti shift -string "Used to pass any one-word value to command procedures and other callbacks." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red};
- insert $ti shift -string "clientData" -family Courier -bold 1;
- insert $ti shift -family -1 -bold -1;
- insert $ti shift -string " is usually a pointer to data structure needed by procedure." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red};
- insert $ti shift -string "Widget commands: " ;
- insert $ti shift -family Courier -bold 1;
- insert $ti shift -string "clientData" -family Courier -bold 1;
- insert $ti shift -family -1 -bold -1;
- insert $ti shift -string " points to widget record." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red};
- insert $ti shift -string "Similar in use to " ;
- insert $ti shift -family Courier -bold 1;
- insert $ti shift -string "client_data" -family Courier -bold 1;
- insert $ti shift -family -1 -bold -1;
- insert $ti shift -string " in Xt." ;
- set ti;
-
- view active 9slide
- backg - 2
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Managing The Result String" ;
- set ti;
- set ti [new - textitem "45 135 603 400.5104" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -plook { -color Red} -look BHeading;
- insert $ti shift -revert 1;
- insert $ti shift -string "Need conventions for " ;
- insert $ti shift -family Courier -bold 1;
- insert $ti shift -string "interp->result" -family Courier -bold 1;
- insert $ti shift -family -1 -bold -1;
- insert $ti shift -string ":" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Subheading -paraspace 1.20;
- insert $ti shift -string "- Permit results of any length." ;
- insertPara $ti shift ;
- insert $ti shift -string "- Avoid " ;
- insert $ti shift -family Courier -bold 1;
- insert $ti shift -string "malloc" -family Courier -bold 1;
- insert $ti shift -family -1 -bold -1;
- insert $ti shift -string " overheads if possible." ;
- insertPara $ti shift ;
- insert $ti shift -string "- Avoid storage reclamation problems." ;
- insertPara $ti shift ;
- insert $ti shift -string "- Simplify command procedures." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red} -look BHeading -paraspace 2.50;
- insert $ti shift -string "Normal state of interpreter (e.g. whenever command procedure is invoked):" ;
- set ti;
- set ti [new - textitem "45 621 585 654.272" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -plook { -color Red} -look BHeading;
- insert $ti shift -revert 1;
- insert $ti shift -string "Default: command returns empty string." ;
- set ti;
- new - rectangle "234 423 468 567" -look Drawing -fg Black -bg Yellow -fp Solid -width 1.00 -feather White -dir 90
- new - rectangle "369 432 441 459" -look Drawing -fg Black -bg White -fp Solid -width 1.00 -feather White -dir 90
- set ti [new - textitem "252 434.768 342 461.688" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text;
- insert $ti shift -revert 1;
- insert $ti shift -family Courier -pointsize 20 -bold 1;
- insert $ti shift -string "result" -family Courier -pointsize 20 -bold 1;
- tiformat $ti 0 6 0 7 -pointsize 20;
- set ti;
- set ti [new - textitem "252 470.768 369 497.688" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text;
- insert $ti shift -revert 1;
- insert $ti shift -family Courier -pointsize 20 -bold 1;
- insert $ti shift -string "freeProc" -family Courier -pointsize 20 -bold 1;
- tiformat $ti 0 8 0 9 -pointsize 20;
- set ti;
- set ti [new - textitem "108 419.14 189 446.06" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text -justify left;
- insert $ti shift -revert 1;
- insert $ti shift -family Courier -pointsize 20 -bold 1;
- insert $ti shift -string "interp" -family Courier -pointsize 20 -bold 1;
- tiformat $ti 0 6 0 7 -pointsize 20;
- set ti;
- new - rectangle "369 468 441 495" -look Drawing -fg Black -bg White -fp Solid -width 1.00 -feather White -dir 90
- new - rectangle "252 531 441 558" -look Drawing -fg Black -bg White -fp Solid -width 1.00 -feather White -dir 90
- new - line "445.5 445.5 405 445.5" -look Drawing -fg Black -width 1.00 -arrow none
- new - arc "400.5 441 409.5 450 0 23040" -look Drawing -fg Black -bg Black -fp Solid -width 1.00
- new - line "270 513 270 531" -look Drawing -fg Black -width 1.00 -arrow head
- set ti [new - textitem "373.5 468.64 436.5 495.56" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text -justify center;
- insert $ti shift -revert 1;
- insert $ti shift -family Courier -pointsize 20 -bold 1;
- insert $ti shift -string "NULL" -family Courier -pointsize 20 -bold 1;
- tiformat $ti 0 4 0 5 -pointsize 20;
- set ti;
- set ti [new - textitem "265.5 531.64 328.5 558.56" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text -justify left;
- insert $ti shift -revert 1;
- insert $ti shift -family Courier -pointsize 20 -bold 1;
- insert $ti shift -string "\"\"" -family Courier -pointsize 20 -bold 1;
- tiformat $ti 0 2 0 3 -pointsize 20;
- set ti;
- new - line "189 432 225 432" -look Drawing -fg Black -width 1.00 -arrow head
- new - arc "436.5 486 454.5 504 17280 5760" -look Drawing -fg Black -bg None -fp Solid -width 1.00
- new - arc "270 504 288 522 5760 5760" -look Drawing -fg Black -bg None -fp Solid -width 1.00
- new - line "279 504 445.5 504" -look Drawing -fg Black -width 1.00 -arrow none
- new - arc "436.5 445.5 454.5 463.5 0 5760" -look Drawing -fg Black -bg None -fp Solid -width 1.00
- new - line "454.5 454.5 454.5 495" -look Drawing -fg Black -width 1.00 -arrow none
-
- view active 10slide
- backg - 2
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Result String, cont'd" ;
- set ti;
- set ti [new - textitem "36 135 576 202.3584" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -plook { -color Red} -look BHeading;
- insert $ti shift -revert 1;
- insert $ti shift -string "Option 1: (semi-) static result." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code -paraspace 1.20;
- insert $ti shift -pointsize 20;
- insert $ti shift -string "interp->result = \"0\"\;" -pointsize 20;
- tiformat $ti 1 21 1 22 -pointsize 20;
- set ti;
- new - rectangle "216 216 450 360" -look Drawing -fg Black -bg Yellow -fp Solid -width 1.00 -feather White -dir 90
- new - rectangle "351 225 423 252" -look Drawing -fg Black -bg White -fp Solid -width 1.00 -feather White -dir 90
- set ti [new - textitem "234 227.768 324 254.688" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text;
- insert $ti shift -revert 1;
- insert $ti shift -family Courier -pointsize 20 -bold 1;
- insert $ti shift -string "result" -family Courier -pointsize 20 -bold 1;
- tiformat $ti 0 6 0 7 -pointsize 20;
- set ti;
- set ti [new - textitem "234 263.768 351 290.688" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text;
- insert $ti shift -revert 1;
- insert $ti shift -family Courier -pointsize 20 -bold 1;
- insert $ti shift -string "freeProc" -family Courier -pointsize 20 -bold 1;
- tiformat $ti 0 8 0 9 -pointsize 20;
- set ti;
- set ti [new - textitem "90 212.14 171 239.06" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text -justify left;
- insert $ti shift -revert 1;
- insert $ti shift -family Courier -pointsize 20 -bold 1;
- insert $ti shift -string "interp" -family Courier -pointsize 20 -bold 1;
- tiformat $ti 0 6 0 7 -pointsize 20;
- set ti;
- new - rectangle "351 261 423 288" -look Drawing -fg Black -bg White -fp Solid -width 1.00 -feather White -dir 90
- new - rectangle "234 324 423 351" -look Drawing -fg Black -bg White -fp Solid -width 1.00 -feather White -dir 90
- new - arc "382.5 234 391.5 243 0 23040" -look Drawing -fg Black -bg Black -fp Solid -width 1.00
- set ti [new - textitem "355.5 261.64 418.5 288.56" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text -justify center;
- insert $ti shift -revert 1;
- insert $ti shift -family Courier -pointsize 20 -bold 1;
- insert $ti shift -string "NULL" -family Courier -pointsize 20 -bold 1;
- tiformat $ti 0 4 0 5 -pointsize 20;
- set ti;
- set ti [new - textitem "247.5 324.64 310.5 351.56" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text -justify left;
- insert $ti shift -revert 1;
- insert $ti shift -family Courier -pointsize 20 -bold 1;
- insert $ti shift -string "\"\"" -family Courier -pointsize 20 -bold 1;
- tiformat $ti 0 2 0 3 -pointsize 20;
- set ti;
- set ti [new - textitem "36 414 585 481.3584" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -plook { -color Red} -look BHeading;
- insert $ti shift -revert 1;
- insert $ti shift -string "Option 2: use pre-allocated space in interp." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code -paraspace 1.20;
- insert $ti shift -pointsize 20;
- insert $ti shift -string "sprintf(interp->result, \"Value is %d\", i)\;" -pointsize 20;
- tiformat $ti 1 42 1 43 -pointsize 20;
- set ti;
- new - line "171 225 207 225" -look Drawing -fg Black -width 1.00 -arrow head
- new - rectangle "216 495 450 639" -look Drawing -fg Black -bg Yellow -fp Solid -width 1.00 -feather White -dir 90
- new - rectangle "351 504 423 531" -look Drawing -fg Black -bg White -fp Solid -width 1.00 -feather White -dir 90
- set ti [new - textitem "234 506.768 324 533.688" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text;
- insert $ti shift -revert 1;
- insert $ti shift -family Courier -pointsize 20 -bold 1;
- insert $ti shift -string "result" -family Courier -pointsize 20 -bold 1;
- tiformat $ti 0 6 0 7 -pointsize 20;
- set ti;
- set ti [new - textitem "234 542.768 351 569.688" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text;
- insert $ti shift -revert 1;
- insert $ti shift -family Courier -pointsize 20 -bold 1;
- insert $ti shift -string "freeProc" -family Courier -pointsize 20 -bold 1;
- tiformat $ti 0 8 0 9 -pointsize 20;
- set ti;
- set ti [new - textitem "90 491.14 171 518.06" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text -justify left;
- insert $ti shift -revert 1;
- insert $ti shift -family Courier -pointsize 20 -bold 1;
- insert $ti shift -string "interp" -family Courier -pointsize 20 -bold 1;
- tiformat $ti 0 6 0 7 -pointsize 20;
- set ti;
- new - rectangle "351 540 423 567" -look Drawing -fg Black -bg White -fp Solid -width 1.00 -feather White -dir 90
- new - rectangle "234 603 423 630" -look Drawing -fg Black -bg White -fp Solid -width 1.00 -feather White -dir 90
- new - line "427.5 517.5 387 517.5" -look Drawing -fg Black -width 1.00 -arrow none
- new - arc "382.5 513 391.5 522 0 23040" -look Drawing -fg Black -bg Black -fp Solid -width 1.00
- new - line "252 585 252 603" -look Drawing -fg Black -width 1.00 -arrow head
- set ti [new - textitem "355.5 540.64 418.5 567.56" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text -justify center;
- insert $ti shift -revert 1;
- insert $ti shift -family Courier -pointsize 20 -bold 1;
- insert $ti shift -string "NULL" -family Courier -pointsize 20 -bold 1;
- tiformat $ti 0 4 0 5 -pointsize 20;
- set ti;
- set ti [new - textitem "247.5 603.64 414 630.56" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text -justify left;
- insert $ti shift -revert 1;
- insert $ti shift -family Courier -pointsize 20 -bold 1;
- insert $ti shift -string "\"Value is 2\"" -family Courier -pointsize 20 -bold 1;
- tiformat $ti 0 12 0 13 -pointsize 20;
- set ti;
- new - line "171 504 207 504" -look Drawing -fg Black -width 1.00 -arrow head
- new - arc "418.5 558 436.5 576 17280 5760" -look Drawing -fg Black -bg None -fp Solid -width 1.00
- new - arc "252 576 270 594 5760 5760" -look Drawing -fg Black -bg None -fp Solid -width 1.00
- new - line "261 576 427.5 576" -look Drawing -fg Black -width 1.00 -arrow none
- new - arc "418.5 517.5 436.5 535.5 0 5760" -look Drawing -fg Black -bg None -fp Solid -width 1.00
- new - line "436.5 526.5 436.5 567" -look Drawing -fg Black -width 1.00 -arrow none
- set ti [new - textitem "117 660.572 243 689.428" -look TextBox -fg None];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text -justify right;
- insert $ti shift -revert 1;
- insert $ti shift -color Red;
- insert $ti shift -string "~ 200 bytes" -color Red;
- tiformat $ti 0 11 0 12 -color Red;
- set ti;
- new - arc "315 657 333 675 17280 5760" -look Drawing -fg Red -bg None -fp Solid -width 1.00
- new - line "333 666 333 630" -look Drawing -fg Red -width 1.00 -arrow head
- new - line "324 675 252 675" -look Drawing -fg Red -width 1.00 -arrow none
- new - line "387 238.5 477 238.5" -look Drawing -fg Black -width 1.00 -arrow head
- set ti [new - textitem "486 224.48 558 255.4" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text;
- insert $ti shift -revert 1;
- insert $ti shift -family Courier -bold 1;
- insert $ti shift -string "\"0\"" -family Courier -bold 1;
- tiformat $ti 0 3 0 4 -family Courier;
- set ti;
-
- view active 11slide
- backg - 2
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Result String, cont'd" ;
- set ti;
- set ti [new - textitem "45 135 585 272.474" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -plook { -color Red} -look BHeading;
- insert $ti shift -revert 1;
- insert $ti shift -string "Option 3: allocate new space for result." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code -paraspace 1.50;
- insert $ti shift -string "interp->result = malloc(2000)\;" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace -1;
- insert $ti shift -string "..." ;
- insertPara $ti shift ;
- insert $ti shift -string "interp->freeProc = free\;" ;
- set ti;
- new - rectangle "225 288 459 432" -look Drawing -fg Black -bg Yellow -fp Solid -width 1.00 -feather White -dir 90
- new - rectangle "360 297 432 324" -look Drawing -fg Black -bg White -fp Solid -width 1.00 -feather White -dir 90
- set ti [new - textitem "243 299.768 333 326.688" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text;
- insert $ti shift -revert 1;
- insert $ti shift -family Courier -pointsize 20 -bold 1;
- insert $ti shift -string "result" -family Courier -pointsize 20 -bold 1;
- tiformat $ti 0 6 0 7 -pointsize 20;
- set ti;
- set ti [new - textitem "243 335.768 360 362.688" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text;
- insert $ti shift -revert 1;
- insert $ti shift -family Courier -pointsize 20 -bold 1;
- insert $ti shift -string "freeProc" -family Courier -pointsize 20 -bold 1;
- tiformat $ti 0 8 0 9 -pointsize 20;
- set ti;
- set ti [new - textitem "99 284.14 180 311.06" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text -justify left;
- insert $ti shift -revert 1;
- insert $ti shift -family Courier -pointsize 20 -bold 1;
- insert $ti shift -string "interp" -family Courier -pointsize 20 -bold 1;
- tiformat $ti 0 6 0 7 -pointsize 20;
- set ti;
- new - rectangle "360 333 432 360" -look Drawing -fg Black -bg White -fp Solid -width 1.00 -feather White -dir 90
- new - rectangle "243 396 432 423" -look Drawing -fg Black -bg White -fp Solid -width 1.00 -feather White -dir 90
- new - arc "391.5 306 400.5 315 0 23040" -look Drawing -fg Black -bg Black -fp Solid -width 1.00
- set ti [new - textitem "364.5 333.64 427.5 360.56" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text -justify center;
- insert $ti shift -revert 1;
- insert $ti shift -family Courier -pointsize 20 -bold 1;
- insert $ti shift -string "free" -family Courier -pointsize 20 -bold 1;
- tiformat $ti 0 4 0 5 -pointsize 20;
- set ti;
- set ti [new - textitem "256.5 396.64 319.5 423.56" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Text -justify left;
- insert $ti shift -revert 1;
- insert $ti shift -family Courier -pointsize 20 -bold 1;
- insert $ti shift -string "\"\"" -family Courier -pointsize 20 -bold 1;
- tiformat $ti 0 2 0 3 -pointsize 20;
- set ti;
- new - line "180 297 216 297" -look Drawing -fg Black -width 1.00 -arrow head
- new - line "396 310.5 486 310.5" -look Drawing -fg Black -width 1.00 -arrow head
- new - rectangle "486 288 558 477" -look Drawing -fg Black -bg Yellow -fp Solid -width 1.00 -feather White -dir 90
- set ti [new - textitem "45 513 585 668.89856" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -plook { -color Red} -look BHeading;
- insert $ti shift -revert 1;
- insert $ti shift -string "Tcl will call " ;
- insert $ti shift -family Courier -bold 1;
- insert $ti shift -string "freeProc" -family Courier -bold 1;
- insert $ti shift -family -1 -bold -1;
- insert $ti shift -string " (if non-" ;
- insert $ti shift -family Courier -bold 1;
- insert $ti shift -string "NULL" -family Courier -bold 1;
- insert $ti shift -family -1 -bold -1;
- insert $ti shift -string ") to dispose of result." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red} -paraspace 2.50;
- insert $ti shift -string "Mechanism supports storage allocators other than " ;
- insert $ti shift -family Courier -bold 1;
- insert $ti shift -string "malloc" -family Courier -bold 1;
- insert $ti shift -bold -1;
- insert $ti shift -string "/" -family Courier;
- insert $ti shift -bold 1;
- insert $ti shift -string "free" -family Courier -bold 1;
- insert $ti shift -family -1 -bold -1;
- insert $ti shift -string "." ;
- set ti;
-
- view active 12slide
- backg - 2
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Procedures For Managing Result" ;
- set ti;
- set ti [new - textitem "45 171 594 232.8752" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Heading;
- insert $ti shift -revert 1;
- insert $ti shift -string "When in doubt, use library procedures: sometimes slower, always safe." ;
- tiformat $ti 0 70 0 71 -pointsize 22;
- set ti;
- set ti [new - textitem "9 306 585 587.268" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Code;
- insert $ti shift -revert 1;
- insert $ti shift -pointsize 22;
- insert $ti shift -string "Tcl_SetResult(interp, string, ...)\;" -pointsize 22;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace 3.00;
- insert $ti shift -string "Tcl_AppendResult(interp, string," -pointsize 22;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace 0.00;
- insert $ti shift -string " string, ..., string, (char *) NULL)\;" -pointsize 22;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace 3.00;
- insert $ti shift -string "Tcl_AppendElement(interp, string, ...)\;" -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string "Tcl_ResetResult(interp)\;" -pointsize 22;
- tiformat $ti 4 24 4 25 -pointsize 22;
- set ti;
-
- view active 13slide
- backg - 2
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Utility Procedures: Parsing" ;
- set ti;
- set ti [new - textitem "45 135 594 680.81408" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -plook { -color Red} -look BHeading;
- insert $ti shift -revert 1;
- insert $ti shift -string "Used by command procedures to parse arguments:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code -paraspace 1.50;
- insert $ti shift -string "int value, code\;" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace -1;
- insert $ti shift -string "code = Tcl_GetInt(interp, argv\[1\]," ;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace 0.00;
- insert $ti shift -string " &value)\;" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red} -look BHeading -paraspace 2.50;
- insert $ti shift -string "Stores integer value in " ;
- insert $ti shift -family Courier -bold 1;
- insert $ti shift -string "value" -family Courier -bold 1;
- insert $ti shift -family -1 -bold -1;
- insert $ti shift -string "." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red};
- insert $ti shift -string "Returns " ;
- insert $ti shift -family Courier -bold 1;
- insert $ti shift -string "TCL_OK" -family Courier -bold 1;
- insert $ti shift -family -1 -bold -1;
- insert $ti shift -string " or " ;
- insert $ti shift -family Courier -bold 1;
- insert $ti shift -string "TCL_ERROR" -family Courier -bold 1;
- insert $ti shift -family -1 -bold -1;
- insert $ti shift -string "." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red};
- insert $ti shift -string "If parse error, returns " ;
- insert $ti shift -family Courier -bold 1;
- insert $ti shift -string "TCL_ERROR" -family Courier -bold 1;
- insert $ti shift -family -1 -bold -1;
- insert $ti shift -string " and leaves message in " ;
- insert $ti shift -family Courier -bold 1;
- insert $ti shift -string "interp->result" -family Courier -bold 1;
- insert $ti shift -family -1 -bold -1;
- insert $ti shift -string "." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red};
- insert $ti shift -string "Other procedures:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code -left 36.00 -indent 0.00 -paraspace 1.50 -tabs { 288 324 360 396};
- insert $ti shift -string "Tcl_GetDouble Tcl_ExprDouble" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace 1.20;
- insert $ti shift -string "Tcl_GetBoolean Tcl_ExprBoolean" ;
- insertPara $ti shift ;
- tlconfig $ti cursor ;
- insert $ti shift -string "Tcl_ExprLong Tcl_ExprString" ;
- set ti;
-
- view active 14slide
- backg - 2
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Utility Procedures: Variables" ;
- set ti;
- set ti [new - textitem "45 153 594 649.88416" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -plook { -color Red} -look BHeading;
- insert $ti shift -revert 1;
- insert $ti shift -string "Read, write and unset:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code -paraspace 1.50;
- insert $ti shift -pointsize 22;
- insert $ti shift -string "char *value\;" -pointsize 22;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace -1;
- insert $ti shift -string "value = Tcl_GetVar(interp, \"a\", ...)\;" -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string "Tcl_SetVar(interp, \"a\", \"new\", ...)\;" -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string "Tcl_UnsetVar(interp, \"a\", ...)\;" -pointsize 22;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red} -look BHeading -paraspace 2.50;
- insert $ti shift -string "Set traces:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code -paraspace 1.50;
- insert $ti shift -pointsize 22;
- insert $ti shift -string "Tcl_TraceVar(interp, \"a\"," -pointsize 22;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace 0.00;
- insert $ti shift -string " TCL_TRACE_READS|TCL_TRACE_WRITES," -pointsize 22;
- insertPara $ti shift ;
- insert $ti shift -string " traceProc, clientData)\;" -pointsize 22;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red} -look BHeading -paraspace 2.50;
- insert $ti shift -string "traceProc" -family Courier -bold 1;
- insert $ti shift -family -1 -bold -1;
- insert $ti shift -string " will be called during each read or write of " ;
- insert $ti shift -family Courier -bold 1;
- insert $ti shift -string "a" -family Courier -bold 1;
- insert $ti shift -family -1 -bold -1;
- insert $ti shift -string ":" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Subheading;
- insert $ti shift -string "- Can monitor accesses." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace 1.20;
- insert $ti shift -string "- Can override value read or written." ;
- set ti;
-
- view active 15slide
- backg - 2
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Other Utility Procedures" ;
- set ti;
- set ti [new - textitem "45 162 585 694.8404" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -plook { -color Red} -look BHeading;
- insert $ti shift -revert 1;
- insert $ti shift -string "Parsing, assembling proper lists:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code -paraspace 1.50;
- insert $ti shift -string "Tcl_SplitList(...)" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace -1;
- insert $ti shift -string "Tcl_Merge(...)" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red} -look BHeading -paraspace 3.00;
- insert $ti shift -string "Flexible hash tables:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code -paraspace 1.50;
- insert $ti shift -string "Tcl_CreateHashTable(...)" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace -1;
- insert $ti shift -string "Tcl_CreateHashEntry(...)" ;
- insertPara $ti shift ;
- insert $ti shift -string "Tcl_FindHashEntry(...)" ;
- insertPara $ti shift ;
- insert $ti shift -string "Tcl_DeleteHashEntry(...)" ;
- insertPara $ti shift ;
- insert $ti shift -string "Tcl_DeleteHashTable(...)" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red} -look BHeading -paraspace 3.00;
- insert $ti shift -string "Assembling multi-line commands from input:" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -look Code -paraspace 1.50;
- insert $ti shift -string "Tcl_CreateCmdBuf(...)" ;
- insertPara $ti shift ;
- tlconfig $ti cursor -paraspace 1.00;
- insert $ti shift -string "Tcl_AssembleCmd(...)" ;
- insertPara $ti shift ;
- insert $ti shift -string "Tcl_CommandComplete(...)" ;
- set ti;
-
- view active 16slide
- backg - 2
- set ti [new - title "45 63.5 567 109.456" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -look Title;
- insert $ti shift -revert 1;
- insert $ti shift -string "Summary" ;
- set ti;
- set ti [new - textitem "45 207 585 395.33216" -look TextBox];
- tiformat $ti 0 0 0 1 -revert 1;
- insert $ti shift -revert 1;
- tlconfig $ti cursor -plook { -color Red} -look BHeading;
- insert $ti shift -revert 1;
- insert $ti shift -string "Interfaces to C are simple: Tcl was designed to make this possible." ;
- insertPara $ti shift ;
- tlconfig $ti cursor -plook { -color Red} -paraspace 4.00;
- insert $ti shift -string "Focus on primitives, use Tcl scripts to compose fancy features." ;
- set ti;
-
- MakeWindow slide 13 0 .views.1 683x835+0+4
- SpotConfig .views.1 0 3 1 on
- UpdateTitles; set generateName 2
-