winetest.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. void fatal (const char* msg);
  27. void warning (const char* msg);
  28. void WINAPIV xprintf (const char *fmt, ...);
  29. char *vstrmake (size_t *lenp, va_list ap);
  30. char * WINAPIV strmake (size_t *lenp, ...);
  31. int goodtagchar (char c);
  32. const char *findbadtagchar (const char *tag);
  33. int send_file (const char *url, const char *name);
  34. extern HANDLE logfile;
  35. /* GUI definitions */
  36. #include <windows.h>
  37. #ifndef __WINE_ALLOC_SIZE
  38. #define __WINE_ALLOC_SIZE(x)
  39. #endif
  40. void *heap_alloc (size_t len) __WINE_ALLOC_SIZE(1);
  41. void *heap_realloc (void *op, size_t len) __WINE_ALLOC_SIZE(2);
  42. char *heap_strdup( const char *str );
  43. void heap_free (void *op);
  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 */