winetest.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * winetest definitions
  3. *
  4. * Copyright 2003 Dimitrie O. Paun
  5. * Copyright 2003 Ferenc Wagner
  6. *
  7. * This library is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU Lesser General Public
  9. * License as published by the Free Software Foundation; either
  10. * version 2.1 of the License, or (at your option) any later version.
  11. *
  12. * This library is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * Lesser General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Lesser General Public
  18. * License along with this library; if not, write to the Free Software
  19. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  20. */
  21. #ifndef __WINETESTS_H
  22. #define __WINETESTS_H
  23. #include <stdio.h>
  24. #include <stdlib.h>
  25. #include <stdarg.h>
  26. #include "wine/debug.h"
  27. #define xprintf( fmt, ... ) output( logfile, fmt, ## __VA_ARGS__ )
  28. extern void output( HANDLE file, const char *fmt, ... ) __WINE_PRINTF_ATTR(2,3);
  29. extern char *strmake( const char *fmt, ... ) __WINE_PRINTF_ATTR(1,2);
  30. void fatal (const char* msg);
  31. void warning (const char* msg);
  32. char *vstrmake (va_list ap);
  33. int goodtagchar (char c);
  34. const char *findbadtagchar (const char *tag);
  35. int send_file (const char *url, const char *name);
  36. /* GUI definitions */
  37. #include <windows.h>
  38. #ifndef __WINE_ALLOC_SIZE
  39. #define __WINE_ALLOC_SIZE(x)
  40. #endif
  41. void *xalloc (size_t len) __WINE_ALLOC_SIZE(1);
  42. void *xrealloc (void *op, size_t len) __WINE_ALLOC_SIZE(2);
  43. char *xstrdup( const char *str );
  44. enum report_type {
  45. R_STATUS = 0,
  46. R_PROGRESS,
  47. R_STEP,
  48. R_DELTA,
  49. R_TAG,
  50. R_DIR,
  51. R_OUT,
  52. R_WARNING,
  53. R_ERROR,
  54. R_FATAL,
  55. R_ASK,
  56. R_TEXTMODE,
  57. R_QUIET
  58. };
  59. #define MAXTAGLEN 30
  60. extern char *tag;
  61. extern char *email;
  62. extern BOOL aborting;
  63. int guiAskTag (void);
  64. int guiAskEmail (void);
  65. int WINAPIV report (enum report_type t, ...);
  66. #endif /* __WINETESTS_H */