#else
extern URES res_all;
#endif
-extern int res_all_size;
+extern int32_t res_all_size;
/* We build the current new Include and Exclude items here */
static INCEXE res_incexe;
#endif
#include <sys/file.h>
+#if !defined(HAVE_WIN32) || defined(HAVE_MINGW)
#include <sys/param.h>
+#endif
#if HAVE_UTIME_H
#include <utime.h>
#else
/* Used to display specific job information after a fatal signal */
typedef void (dbg_jcr_hook_t)(JCR *jcr, FILE *fp);
-void dbg_jcr_add_hook(dbg_jcr_hook_t *fct);
+extern void dbg_jcr_add_hook(dbg_jcr_hook_t *fct);
#endif /* __JCR_H_ */
extern MainWin *mainWin;
extern QApplication *app;
-int bvsnprintf(char *str, int32_t size, const char *format, va_list ap);
bool isWin32Path(QString &fullPath);
#endif /* _BAT_H_ */
* then move it to allocated memory when the resource
* scan is complete.
*/
-#if defined(MSC_VER)
-extern "C" URES res_all; /* visual c mangles variable names */
-#else
-URES res_all;
+#if defined(_MSC_VER)
+extern "C" URES res_all; /* declare as C to avoid name mangling by visual c */
#endif
+URES res_all;
int32_t res_all_size = sizeof(res_all);
/* Definition of records permitted within each
/* A global function */
bool isWin32Path(QString &fullPath)
{
- char *buf = fullPath.left(2).toUtf8().data();
+ if (fullPath.size()<2) {
+ return false;
+ }
- //bool toret = B_ISALPHA(buf[1]);
- bool toret = buf[1] == ':' && B_ISALPHA(buf[0]);
+ bool toret = fullPath[1].toAscii() == ':' && fullPath[0].isLetter();
if (mainWin->m_miscDebug) {
if (toret)
Pmsg1(000, "returning from isWin32Path true %s\n", fullPath.toUtf8().data());
mixed priorities
General:
+12Nov08
+ebl Apply Riccardo's patch that fix some win32 compilation errors
+ and a bug with bat version browser.
11Nov08
ebl Add Plugin debug after a fatal signal.
ebl Add db and rwlock debug after a fatal signal.