home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / OP2DEV.ZIP / OS2LED.H < prev    next >
C/C++ Source or Header  |  1991-03-04  |  1KB  |  35 lines

  1. //
  2. //   OP/2 BBS - Copyright (c) 1990 ExcelSoft Software. All rights reserved.
  3. //
  4. //   OS2LED.H
  5. //
  6. //   Header file for OP/2 Line Editor Functions
  7. //
  8. //    9oct89   cab   Initial Coding
  9. //    6mar90   cab   Updated for new format
  10. //    20sep90  cab   Added function to free txtbuff memory
  11. //
  12.  
  13. #ifndef _OS2LED_H
  14. #define _OS2LED_H
  15.  
  16. #define  MAXCOL         70
  17. #define  NO_COMMAND     0
  18.  
  19. // typedefs
  20. typedef struct lntype {
  21.    short  len;                    // length of line 
  22.    char   ltxt[MAXCOL+4];         // line text.. little extra padding 
  23.    struct lntype *nextl;          // pointer to next line             
  24. } LNTYPE;                         // line type
  25.  
  26. // entry point prototypes
  27. short APIENTRY _loadds FileToLntype(LNTYPE **, char *, int, int, int, int *, int *);
  28. short APIENTRY _loadds FreeLntype(LNTYPE *);
  29. short APIENTRY _loadds LineEdit(LNTYPE **, int, PORT_REC *);
  30. short APIENTRY _loadds LnEdit(LNTYPE **, LNTYPE *, int, int, int *, PORT_REC *);
  31. short APIENTRY _loadds LntypeToTxt(int *, int *, LNTYPE *, char **);
  32. short APIENTRY         FreeTxtBuff(char *);
  33.  
  34. #endif
  35.