Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1023 B

  1. /*** line.h - Line stream definitions
  2. *
  3. * Copyright (c) 1996,1997 Microsoft Corporation
  4. * Author: Michael Tsang (MikeTs)
  5. * Created 09/04/96
  6. *
  7. * This file contains the implementation constants,
  8. * imported/exported data types, exported function
  9. * prototypes of the line.c module.
  10. *
  11. * MODIFICATION HISTORY
  12. */
  13. #ifndef _LINE_H
  14. #define _LINE_H
  15. /*** Constants
  16. */
  17. #define MAX_LINE_LEN 255
  18. #define LINEF_LONGLINE 0x0001
  19. /*** Imported data types
  20. */
  21. /*** Exported data types
  22. */
  23. typedef struct line_s
  24. {
  25. FILE *pfileSrc;
  26. WORD wfLine;
  27. WORD wLineNum;
  28. WORD wLinePos;
  29. WORD wLineLen;
  30. char szLineBuff[MAX_LINE_LEN + 1];
  31. } LINE;
  32. typedef LINE *PLINE;
  33. /*** Exported function prototypes
  34. */
  35. PLINE EXPORT OpenLine(FILE *pfileSrc);
  36. VOID EXPORT CloseLine(PLINE pline);
  37. int EXPORT LineGetC(PLINE pline);
  38. int EXPORT LineUnGetC(int ch, PLINE pline);
  39. VOID EXPORT LineFlush(PLINE pline);
  40. #endif //ifndef _LINE_H