[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-readline] readline crashes when used from msvc

From: ohndfsbkjb
Subject: Re: [Bug-readline] readline crashes when used from msvc
Date: Fri, 15 Apr 2016 18:33:36 +0200

> You can still use it.
Ok this is the code that seems to work for readline5 too on most compilers (in case other people have this problem too):
//rl_free  compability for readline5.
#ifdef _WIN32
#include <windows.h>
typedef void(*t_free)(void*);
t_free get_rl_free()
    HINSTANCE hDLL = LoadLibraryW(L"readline5");
    return (t_free)GetProcAddress((HMODULE)hDLL, "xfree");
void rl_free(void *p)
#ifdef _WIN32
    static t_free free = get_rl_free();
Any thought about the other issue about non-asci characters in filenames on windows? Or should i file a seperate bugreport?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]