home *** CD-ROM | disk | FTP | other *** search
- /*
-
- example script for ee
- load an autodoc according to the word under the cursor from a filelist which
- looks like this:
-
- funcname autodocfile [linenumber]
-
- OpenWindow autodocs:intuition/intuition.h 42
-
- idea and first draft by Gregor Goldbach
-
- */
-
- address 'EE.0'
- options results
-
- arg datname
-
- if datname="" then datname="EE:rexx/autodoc/autodoclist.ee"
-
- if open(autodoclist, datname, 'R') then
- do
- 'lockwindow'
- 'getword'
- funcname=result
- posi=index(funcname, '(')
- if posi>0 then funcname=left(the_word, posi-1)
- do until (word(the_line,1)=funcname)=1 | eof(autodoclist)
- the_line=readln(autodoclist)
- say the_line
- end
- the_file=word(the_line,2)
- 'opennew' the_file
- 'gotoline' word(the_line, 3)
- 'unlockwindow'
- end
- else
- say 'Could not open file.'
-