int mmap_size=file->size;
#endif
#ifdef HAVE_API_WIN32_BASE
- file->begin = (char*)mmap_readonly_win32( file->name, &file->map_handle, &file->map_file );
+ file->begin = (unsigned char*)mmap_readonly_win32( file->name, &file->map_handle, &file->map_file );
#else
file->begin=mmap(NULL, mmap_size, PROT_READ|PROT_WRITE, MAP_PRIVATE, file->fd, 0);
dbg_assert(file->begin != NULL);
static struct callback_list* callbacks;
-static int dummy;
static struct graphics_priv {
int dummy;
} graphics_priv;
}
-
-static void * get_data(struct graphics_priv *this_, char *type)
+static void * get_data(struct graphics_priv *this_, const char *type)
{
if ( strcmp( "wnd_parent_handle_ptr", type ) == 0 )
{
return this_;
}
-
static void set_alphablend(struct graphics_priv* gra_priv)
{
#if HAVE_API_WIN32_CE
unsigned char i, row;
char line[ 1024 ];
int nbytes ;
- int padding, rowsize;
+ int padding, rowsize = 0;
FILE* file_xpm = fopen( filename, "r" );
int phase = 0;
static struct map_priv *
-map_filter_new(struct map_methods *meth, struct attr **attrs)
+map_filter_new(struct map_methods *meth, struct attr **attrs, struct callback_list *cbl)
{
struct map_priv *m=NULL;
struct attr **parent_attrs,type,*subtype=attr_search(attrs, NULL, attr_subtype),*filter=attr_search(attrs, NULL, attr_filter);
*p_n += count;
return TRUE;
+#if IS_LITTLE_ENDIAN
no_unpacking_needed:
memcpy (array, at, count * siz);
*p_n += count;
return TRUE;
+#endif
}
static protobuf_c_boolean
unsigned char salt[8], key[34], verify[2], mac[10];
#endif
char filename[filelen+1];
- int error,crc=0,len,comp_size=data_size;
+ int crc=0,len,comp_size=data_size;
uLongf destlen=data_size+data_size/500+12;
char *compbuffer;
lfh.zipmthd=zip_info->compression_level ? 8:0;
#ifdef HAVE_ZLIB
if (zip_info->compression_level) {
- error=compress2_int((Byte *)compbuffer, &destlen, (Bytef *)data, data_size, zip_info->compression_level);
+ int error=compress2_int((Byte *)compbuffer, &destlen, (Bytef *)data, data_size, zip_info->compression_level);
if (error == Z_OK) {
if (destlen < data_size) {
data=compbuffer;
if (!connect) {
ret=g_strdup_printf(_("You have reached your destination %s"), d);
} else {
- ret=g_strdup_printf(_("then you have reached your destination."));
+ ret=g_strdup(_("then you have reached your destination."));
}
}
g_free(d);
tr->langopts.stress_flags = 0x0024; // don't use secondary stress
tr->langopts.param[LOPT_IT_LENGTHEN] = 1; // remove lengthen indicator from unstressed syllables
- tr->langopts.numbers = 0x1509 + 0x8000 + NUM_NOPAUSE | NUM_ROMAN | NUM_VIGESIMAL;
+ tr->langopts.numbers = 0x1509 + 0x8000 + (NUM_NOPAUSE | NUM_ROMAN | NUM_VIGESIMAL);
SetLetterVowel(tr,'y');
}
break;
gchar*
g_get_prgname (void)
{
- gchar* retval;
+ gchar* retval =NULL;
-return 0;
// G_LOCK (g_prgname);
//#ifdef G_OS_WIN32
// if (g_prgname == NULL)
// retval = g_prgname;
// G_UNLOCK (g_prgname);
//
-// return retval;
+ return retval;
}
/**
#ifndef _LOCALE_H
#define _LOCALE_H 1
+
+#ifndef SUBLANG_BENGALI_BANGLADESH
#define SUBLANG_BENGALI_BANGLADESH 0x02
+#endif
+#ifndef SUBLANG_PUNJABI_PAKISTAN
#define SUBLANG_PUNJABI_PAKISTAN 0x02
+#endif
+#ifndef SUBLANG_ROMANIAN_MOLDOVA
#define SUBLANG_ROMANIAN_MOLDOVA 0x02
+#endif
struct lconv {
char *decimal_point;
};
#endif /* _MSC_VER */
#include "wordexp.h"
#include "glob.h"
+#include <glib.h>
static int
#ifdef HAVE_API_WIN32_BASE
{
char *cmdline;
- LPCWSTR cmd,args;
DWORD dwRet;
// For [desktop] Windows it's adviceable not to use
// no WinCE program has support for quoted strings in arguments.
// So...
#ifdef HAVE_API_WIN32_CE
+ LPWSTR cmd,args;
cmdline=g_strjoinv(" ",argv+1);
args=newSysString(cmdline);
cmd = newSysString(argv[0]);
dbg(0, "CreateProcess(%s,%s), PID=%i\n",argv[0],cmdline,r->pr.dwProcessId);
g_free(cmd);
#else
+ TCHAR* args;
STARTUPINFO startupInfo;
memset(&startupInfo, 0, sizeof(startupInfo));
startupInfo.cb = sizeof(startupInfo);