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.

40 lines
967 B

  1. // Copyright (c) 1998-1999 Microsoft Corporation
  2. /*****************************************************************************
  3. *
  4. * EXPAND.H
  5. *
  6. *
  7. ****************************************************************************/
  8. /*
  9. * Argument structure
  10. * Used by expand_path routine to build argument list.
  11. * Caller should initialize using args_init(). Use args_reset() to
  12. * reset values, args_free() to free memory allocated by args_init().
  13. */
  14. struct arg_data {
  15. int argc;
  16. WCHAR **argv;
  17. WCHAR **argvp;
  18. int maxargc;
  19. int maxargs;
  20. WCHAR *buf;
  21. WCHAR *bufptr;
  22. WCHAR *bufend;
  23. };
  24. typedef struct arg_data ARGS;
  25. /*
  26. * max size of segment to allocate for pathname storage
  27. */
  28. #define MAX_ARG_ALLOC 10*1024-20
  29. extern void args_init(ARGS *, int);
  30. extern void args_trunc(ARGS *);
  31. extern void args_reset(ARGS *);
  32. extern void args_free(ARGS *);
  33. extern int expand_path(WCHAR *, unsigned short, ARGS *);
  34. extern int unix_match(WCHAR *, WCHAR *);