Exemplo n.º 1
0
/*
 * If python is enabled (there is installed python on Windows system) return
 * TRUE, else FALSE.
 */
    int
python_enabled(int verbose)
{
    int ret = FAIL;
    int mustfree = FALSE;
    char *s = (char *)vim_getenv((char_u *)"PYTHON_DLL", &mustfree);
    if (s != NULL)
        ret = python_runtime_link_init(s, verbose);
    if (mustfree)
        vim_free(s);
    if (ret == FAIL)
        ret = python_runtime_link_init(DYNAMIC_PYTHON_DLL, verbose);
    return (ret == OK);
}
Exemplo n.º 2
0
/*
 * If python is enabled (there is installed python on Windows system) return
 * TRUE, else FALSE.
 */
    int
python_enabled(int verbose)
{
#ifdef WIN3264
    char *dll = DYNAMIC_PYTHON_DLL;
#else
    char *dll = *p_pydll ? (char *)p_pydll : DYNAMIC_PYTHON_DLL;
#endif
    return python_runtime_link_init(dll, verbose) == OK;
}
Exemplo n.º 3
0
Arquivo: if_python.c Projeto: aosm/vim
/*
 * If python is enabled (there is installed python on Windows system) return
 * TRUE, else FALSE.
 */
    int
python_enabled(int verbose)
{
    return python_runtime_link_init(DYNAMIC_PYTHON_DLL, verbose) == OK;
}
Exemplo n.º 4
0
/*
 * If python is enabled (there is installed python on Windows system) return
 * TRUE, else FALSE.
 */
    int
python_enabled(int verbose)
{
    return python_runtime_link_init((char *)p_pydll, verbose) == OK;
}