Source code of Windows XP (NT5)
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.

45 lines
985 B

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. mapmsg.h
  5. Abstract:
  6. This module contains defines and function prototypes for the mapmsg utility
  7. Author:
  8. Dan Hinsley (danhi) 29-Jul-1991
  9. Revision History:
  10. --*/
  11. #define TRUE 1
  12. #define FALSE 0
  13. #define MAXMSGTEXTLEN 2048 // maximum message text length
  14. CHAR chBuff[MAXMSGTEXTLEN + 1]; // buffer storing msg text
  15. /* skip past white space */
  16. #define SKIPWHITE(s) s+=strspn(s, " \t");
  17. /* skip up to white space */
  18. #define SKIP_NOT_WHITE(s) s+=strcspn(s, " \t");
  19. /* skip past white space and parenthesis */
  20. #define SKIP_W_P(s) s+=strspn(s, " \t()");
  21. /* skip up to white space and parenthesis */
  22. #define SKIP_NOT_W_P(s) s+=strcspn(s, " \t()");
  23. /* internal function prototypes */
  24. int __cdecl main(int, PCHAR *);
  25. int GetBase(PCHAR, int *);
  26. VOID MapMessage(int, PCHAR);
  27. VOID ReportError(PCHAR, PCHAR);
  28. int GetNextLine(PCHAR, PCHAR, PCHAR, int *, PCHAR *, PCHAR);
  29. VOID TrimTrailingSpaces(PCHAR );