Projects

Downloads

Resume

Photos

Pictures

Illustrations

3D

Videos
GLUE User's Guide and Reference

Table of Contents

Introduction: Why GLUE?
GLUE features
What is GLUE good for?
Installing GLUE
Getting started: Some simple examples
The power of GLUE: A more advanced example
The GLUE language
   Comments
   Symbols
   Constants
       String constants
       Numeric constants
       Nil constant
   define statement
   Variables
   Expressions
   Operators
       Unary Operators
       Binary Operators
       Ternary Operators
       Operator precedence
   Function calls
   Method calls
   Statements
       Simple statement
       If statement
       Switch statement
       Select statement
       For statement
       While statement
       Do statement
       Break statement
       Continue statement
       Return statement
       Raise statement
       On statement
       Resume statement
       Null statement
       Compound statement
   Programming model
   Function definition
   Class definition
   Method definition
       Finalize method
   Attribute definition
Modules, libraries and dictionaries
GLUEPATH
Module initialization
Global constants
Usage errors
Multiple threads of execution
A complete example: Multi-threaded file scanner
Post mortem debugger (PMD)
Debugging GLUE programs
   Using the GLUE debugger
       Manipulating debugger lists
       Source view
       Command view
       Call stack view
       Modules view
       Functions view
       Methods view
       Global variables view
       Local variables view
       Inspector windows
GLUE tools
   Glue
   Glued
   Classify
       ClassInfo class
   Unglued
   Elmer
   Elsie
   Glucose
   DrGlue
       Sample DrGlue documentation
         FileChgExt
         LastPos
         Point
   DocView
   The GE editor
       Starting GE
       Editing basics
       Files
       Views
       Marks
       Bookmarks
       Bounce bar menus
       Prompts
       The command shell
       File lists
       Scan lists
       Editing functions
       Editing GLUE source files
       Modifying the editor
Predefined GLUE functions
   GLUE built-in functions
       AddrOf
       GluePath
       Module
       OnEnv
       OnError
       Resource
       Tracing
       Use
       UseRexx
       Variable
       XCall
   GLUELIB functions
       Abort
       Call
       CallStack
       ClassOf
       CmdLine
       CmdName
       Compile
       Concat
       Defined
       Elapsed
       Error
       Exec
       ExtLibPath
       FileClose
       FileDate
       FileDel
       FileDrive
       FileEA
       FileExt
       FileFind
       FileFlush
       FileIni
       FileLen
       FileName
       FileOpen
       FilePath
       FileRead
       FileRoot
       FileType
       FileWrite
       Input
       InstanceOf
       Interpret
       Lock
       MethodOf
       ObjectOf
       OS2Info
       Pointer
       Post
       Replace
       Result
       Rotate
       Say
       Send
       Sleep
       Start
       Stop
       Struct
       SuperOf
       SysEnv
       SysKillPID
       SysOS
       SysPID
       TagOf
       Thread
       UnLock
       VideoMode
       Wait
   GLUEREXX functions
       Abs
       Beep
       C2D
       C2X
       Center
       Copies
       D2C
       D2X
       Date
       DelStr
       DelWord
       Directory
       Insert
       Left
       Length
       Max
       Min
       Overlay
       Pos
       Random
       Reverse
       Right
       Sign
       Space
       Storage
       Strip
       Substr
       SubWord
       Time
       Translate
       Verify
       Word
       WordIndex
       WordLength
       Words
       XRange
   GLUEVIO functions
       VioCol
       VioCols
       VioCursor
       VioEvent
       VioGet
       VioPut
       VioRow
       VioRows
       VioScroll
   GLUESOCK functions
       SocketAccept
       SocketBind
       SocketBlock
       SocketClose
       SocketConnect
       SocketError
       SocketHostName
       SocketListen
       SocketLocalId
       SocketOpen
       SocketReceive
       SocketSend
       SocketServer
User supplied GLUE functions
   GlueAbort
   Utility functions and classes written in GLUE
       ArrayCopy
       ArrayDelete
       ArrayInsert
       FileChgExt
       ForEachCommandOption
       ForEachCommandWord
       ForEachDir
       ForEachElement
       ForEachFile
       ForEachWord
       LastPos
       LoadUserSettings
       LowerCase
       Percentage
       QuotedString
       Repeat
       RestoreValueOf
       SaveUserSettings
       SaveValueOf
       ShowGlueHelpTopic
       Substitute
       Array
       Bag
       BeepQueue
       Dictionary
       Named
       NamedValue
       Profiler
       Queue
       SaveRestoreValueOf
       ServerQueue
       SharedArray
       SharedScalar
       Stack
       Tally
       TextFile
   Text window prompt function
       Pull
   Sorting routines written in GLUE
       QSort
       QSortAsc
       QSortB
       QSortDesc
       QSortF
       RSort
   TCP/IP socket class
       Socket
   Execution tracing
       Trace
       TraceOff
       TraceOn
       Tracer
Writing GLUE functions in C
   GLUE calling conventions
   GLUE helper functions
       ggnum - Get numeric value of a scalar
       ggnumi - Get numeric value of an array
       gcnum - Convert numeric value of a scalar
       gcnumi - Convert numeric value of an array
       gsnum - Set numeric value of a scalar
       gsnumi - Set numeric value of an array
       ggstr - Get string value of a scalar
       ggstri - Get string value of an array
       gcstr - Convert string value of a scalar
       gcstri - Get string value of an array
       gsstr - Set string value of a scalar
       gsstri - Set string value of an array
       gslen - Set a string's length
       ggobji - Get value of an array
       gtstr - Allocate a temporary string
       grvoid - Return a void result
       grchar - Return a char result
       grnum - Return an int result
       grstr - Return an ASCIIZ char * result
       grstrn - Return a char * result of known length
       grgstr - Return a GLUE string result
       grglue - Return a GLUEDATA result
       grraise - Return an on condition result
       grusage - Return a usage error result
       gisdef - Test for a defined value
       gisobj - Test for a GLUE object
       gisvar - Test for a GLUE variable
   The GLUEAPI function
   The CAPI function
   Example of GLUE functions written in C
GLUE as an application scripting language
   gpinit - Initialize a GLUE parameter list
   gpexit - Release storage used by a GLUE parameter list
   gpfree - Free storage used by a GLUE function or method call result
   gpnum - Add an integer to a GLUE parameter list
   gpstr - Add a null terminated string to a GLUE parameter list
   gpstrn - Add a string of known length to a GLUE parameter list
   gpglue - Add a GLUE value to a GLUE parameter list
   gpcall - Call a GLUE function
   gpeval - Evaluate a compiled GLUE expression
   gpsend - Apply a method to a GLUE object
   gpmethod - Get the ID of a specified method
   gpadd - Add a GLUE function to the environment
   Application scripting function examples
Calling non-GLUE functions directly
   The CBreeze compiler
   Using the OS/2 API from GLUE
       Example: Changing a thread's execution priority
       Example: Performing interprocess communication using queues
   Using the WIN32 API from GLUE
Sample GLUE programs
OS/2 specific features
   Using REXX libraries from GLUE
   Writing Presentation Manager applications
   GLUEPM functions
       BMPClose
       BMPDX
       BMPDY
       BMPOpen
       Draw
       DrawAngle
       DrawArc
       DrawArea
       DrawAt
       DrawAtX
       DrawAtY
       DrawBackColor
       DrawBackMix
       DrawBMP
       DrawBottom
       DrawBox
       DrawCapture
       DrawClip
       DrawClose
       DrawColor
       DrawCos
       DrawCursor
       DrawDX
       DrawDY
       DrawErase
       DrawFillet
       DrawFocus
       DrawFont
       DrawForeMix
       DrawHint
       DrawIn
       DrawLine
       DrawMarker
       DrawMode
       DrawOpen
       DrawPartialArc
       DrawPath
       DrawPatternOrg
       DrawPointArc
       DrawPointer
       DrawPos
       DrawPost
       DrawScroll
       DrawSetArc
       DrawShear
       DrawSin
       DrawSpline
       DrawText
       DrawTextDX
       DrawTextDY
       DrawTimer
       DrawTop
       DrawTrack
       DrawVisible
       DrawX
       DrawY
       DrawZap
       MenuCheck
       MenuDelete
       MenuEnable
       MenuInsert
       MenuPopUp
       MenuText
       MMDo
       ScreenDX
       ScreenDY
       WindowBottom
       WindowClientDX
       WindowClientDY
       WindowClientX
       WindowClientY
       WindowClose
       WindowDX
       WindowDY
       WindowExit
       WindowFrame
       WindowOpen
       WindowOwner
       WindowPos
       WindowRun
       WindowScroll
       WindowTitle
       WindowTop
       WindowVisible
       WindowX
       WindowY
   OS/2 system information function and classes
       OS2AvailableMemory
       OS2BootDrive
       OS2DynamicPriority
       OS2ForegroundPID
       OS2FullScreenSID
       OS2HighTime
       OS2LibPath
       OS2LowTime
       OS2MajorVersion
       OS2MaxComponentLength
       OS2MaxDOSSessions
       OS2MaxPMSessions
       OS2MaxPathLength
       OS2MaxSlice
       OS2MaxTextSessions
       OS2MaxWait
       OS2Milliseconds
       OS2MinSlice
       OS2MinorVersion
       OS2NumProcessors
       OS2PageSize
       OS2PhysicalMemory
       OS2ProcessMemory
       OS2ResidentMemory
       OS2RevisionVersion
       OS2SharedMemory
       OS2TimerInterval
       ConfigSys
   Log window function and classes
       GError
       GSay
       Log
       LogWindow
   DrDialog run-time interface
       DrDialogWindow
   Presentation Manager controls
       BagButtonControl
       BillboardControl
       CanvasControl
       CheckBoxControl
       ComboBoxControl
       ContainerControl
       EntryFieldControl
       FrameControl
       GroupBoxControl
       HorzScrollBarControl
       IconButtonControl
       ListBoxControl
       MLEControl
       MarqueeControl
       MenuItem
       NotebookControl
       PMControl
       PaintControl
       PushButtonControl
       RadioButtonControl
       RectangleControl
       SliderControl
       SpinButtonControl
       TextControl
       TurtleControl
       ValueSetControl
       VertScrollBarControl
   Presentation Manager user input prompt
       Prompter
GLUE language quick reference
GLUE tools quick reference
GLUE functions quick reference
Appendices
   Format of a .DCM file
   Format of a GLUE.DIC file
   Format of a GLUE module
   G-Code instructions
   GLUE performance benchmarks

© Copyright 2001-2008 by David C. Morrill. All rights reserved.