home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / programming / asm / fdtools11.lha / fdparse.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-08  |  757 b   |  45 lines

  1. /* fdparse.h */
  2.  
  3. #ifndef FDPARSE_H
  4. #define FDPARSE_H
  5.  
  6. #define IDLEN 255
  7.  
  8. #include <proto/exec.h>
  9. #include <proto/dos.h>
  10. #include <string.h>
  11.  
  12. struct fd {
  13.   BPTR  fd_Input;
  14.   ULONG fd_State;
  15.   LONG  fd_Offset;
  16.   ULONG fd_NumParams;
  17.   BYTE  fd_Parameter[14];
  18.   UBYTE fd_BaseName[IDLEN+1];
  19.   UBYTE fd_Function[IDLEN+1];
  20.   BOOL  fd_IsTagFunc;
  21. };
  22.  
  23. #define FD_PARSING 0
  24. #define FD_READY   1
  25.  
  26. #define FD_PUBLIC  0
  27. #define FD_PRIVATE 2
  28.  
  29. #define FD_BIAS    4
  30.  
  31. #define REG_D(n) (n)
  32. #define REG_A(n) ((n)+8)
  33.  
  34. #define FD_ERROR    0
  35. #define FD_KEYWORD  1
  36. #define FD_FUNCTION 2
  37. #define FD_COMMENT  3
  38.  
  39. extern void InitFD(BPTR fdfile,struct fd *fd);
  40. extern int ParseFD(struct fd *fd);
  41. extern BOOL TagCallName(struct fd *fd);
  42. extern BOOL LibCallAlias(struct fd *fd);
  43.  
  44. #endif
  45.