win32-util.c File Reference
#include "syshead.h"
#include "buffer.h"
#include "win32-util.h"
Include dependency graph for win32-util.c:

Go to the source code of this file.


WCHAR * wide_string (const char *utf8, struct gc_arena *gc)
char * utf16to8 (const wchar_t *utf16, struct gc_arena *gc)
static bool cmp_prefix (const char *str, const bool n, const char *pre)
bool win_safe_filename (const char *fn)
const char * win_get_tempdir (void)

Function Documentation

◆ cmp_prefix()

static bool cmp_prefix ( const char *  str,
const bool  n,
const char *  pre 

Definition at line 77 of file win32-util.c.

Referenced by win_safe_filename().

◆ utf16to8()

char* utf16to8 ( const wchar_t *  utf16,
struct gc_arena gc 

Definition at line 50 of file win32-util.c.

References multi_instance::gc, and gc_malloc().

Referenced by strerror_win32().

◆ wide_string()

WCHAR* wide_string ( const char *  utf8,
struct gc_arena gc 

◆ win_get_tempdir()

const char* win_get_tempdir ( void  )

Definition at line 152 of file win32-util.c.

References M_WARN, and msg.

Referenced by get_tmp_dir(), and init_options().

◆ win_safe_filename()

bool win_safe_filename ( const char *  fn)

Definition at line 118 of file win32-util.c.

References cmp_prefix().

Referenced by platform_gen_path().