#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());
_ZN9dbid_listC2Ev\r
_ZN9dbid_listD1Ev\r
_ZN9dbid_listD2Ev\r
+_Z13_dbg_print_dbP3JCRP6_iobuf\r
\r
; sql_create.o\r
_Z20db_create_job_recordP3JCRP4B_DBP7JOB_DBR\r
#include "bacula.h"
#include "compat.h"
#include "jcr.h"
+#include "findlib/find.h"
#define b_errno_win32 (1<<29)
return result;
}
-#include "findlib/find.h"
-
int
utime(const char *fname, struct utimbuf *times)
{
#define HAVE_STDLIB_H 1
/* Define to 1 if you have the `strcasecmp' function. */
-#define HAVE_STRCASECMP 1
+/*#define HAVE_STRCASECMP 1*/
/* Define to 1 if you have the `strerror' function. */
#define HAVE_STRERROR 1
_Z10new_pluginv
_Z12load_pluginsPvS_PKcS1_
_Z14unload_pluginsv
+_Z19dbg_plugin_add_hookPFvP6PluginP6_iobufE
; print.o
_Z10__snprintfPcjPKcz
_ZN3JCR14get_ActionNameEb
_ZN3JCR17get_OperationNameEv
_ZN3JCR8JobReadsEv
+_Z16dbg_jcr_add_hookPFvP3JCRP6_iobufE
timeout_handler
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.