123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- /*
- * winetest definitions
- *
- * Copyright 2003 Dimitrie O. Paun
- * Copyright 2003 Ferenc Wagner
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
- */
- #ifndef __WINETESTS_H
- #define __WINETESTS_H
- #include <stdio.h>
- #include <stdlib.h>
- #include <stdarg.h>
- #include "wine/debug.h"
- #define xprintf( fmt, ... ) output( logfile, fmt, ## __VA_ARGS__ )
- extern void output( HANDLE file, const char *fmt, ... ) __WINE_PRINTF_ATTR(2,3);
- extern char *strmake( const char *fmt, ... ) __WINE_PRINTF_ATTR(1,2);
- void fatal (const char* msg);
- void warning (const char* msg);
- char *vstrmake (va_list ap);
- int goodtagchar (char c);
- const char *findbadtagchar (const char *tag);
- int send_file (const char *url, const char *name);
- /* GUI definitions */
- #include <windows.h>
- #ifndef __WINE_ALLOC_SIZE
- #define __WINE_ALLOC_SIZE(x)
- #endif
- void *xalloc (size_t len) __WINE_ALLOC_SIZE(1);
- void *xrealloc (void *op, size_t len) __WINE_ALLOC_SIZE(2);
- char *xstrdup( const char *str );
- enum report_type {
- R_STATUS = 0,
- R_PROGRESS,
- R_STEP,
- R_DELTA,
- R_TAG,
- R_DIR,
- R_OUT,
- R_WARNING,
- R_ERROR,
- R_FATAL,
- R_ASK,
- R_TEXTMODE,
- R_QUIET
- };
- #define MAXTAGLEN 30
- extern char *tag;
- extern char *email;
- extern BOOL aborting;
- int guiAskTag (void);
- int guiAskEmail (void);
- int WINAPIV report (enum report_type t, ...);
- #endif /* __WINETESTS_H */
|