home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / x / xvisrc.zoo / ptrfunc.h < prev    next >
Text File  |  1992-07-28  |  705b  |  27 lines

  1. /* Copyright (c) 1990,1991,1992 Chris and John Downey */
  2. /***
  3.  
  4. * @(#)ptrfunc.h    2.1 (Chris & John Downey) 7/29/92
  5.  
  6. * program name:
  7.     xvi
  8. * function:
  9.     PD version of UNIX "vi" editor, with extensions.
  10. * module name:
  11.     ptrfunc.h
  12. * module function:
  13.     Functions on Posn's - defined here for speed, since they
  14.     typically get called "on a per-character basis".
  15. * history:
  16.     STEVIE - ST Editor for VI Enthusiasts, Version 3.10
  17.     Originally by Tim Thompson (twitch!tjt)
  18.     Extensive modifications by Tony Andrews (onecom!wldrdg!tony)
  19.     Heavily modified by Chris & John Downey
  20.  
  21. ***/
  22.  
  23. /*
  24.  * gchar(lp) - get the character at position "lp"
  25.  */
  26. #define    gchar(lp)    ((lp)->p_line->l_text[(lp)->p_index])
  27.