Lines Matching refs:hPython
307 static int compile_filelist(HINSTANCE hPython, BOOL optimize_flag) in compile_filelist() argument
309 DECLPROC(hPython, void, Py_Initialize, (void)); in compile_filelist()
310 DECLPROC(hPython, void, Py_SetProgramName, (char *)); in compile_filelist()
311 DECLPROC(hPython, void, Py_Finalize, (void)); in compile_filelist()
312 DECLPROC(hPython, int, PyRun_SimpleString, (char *)); in compile_filelist()
313 DECLPROC(hPython, PyObject *, PySys_GetObject, (char *)); in compile_filelist()
314 DECLVAR(hPython, int, Py_OptimizeFlag); in compile_filelist()
651 static int prepare_script_environment(HINSTANCE hPython) in prepare_script_environment() argument
654 DECLPROC(hPython, PyObject *, PyImport_ImportModule, (char *)); in prepare_script_environment()
655 DECLPROC(hPython, int, PyObject_SetAttrString, (PyObject *, char *, PyObject *)); in prepare_script_environment()
656 DECLPROC(hPython, PyObject *, PyObject_GetAttrString, (PyObject *, char *)); in prepare_script_environment()
657 DECLPROC(hPython, PyObject *, PyCFunction_New, (PyMethodDef *, PyObject *)); in prepare_script_environment()
658 DECLPROC(hPython, PyObject *, Py_BuildValue, (char *, ...)); in prepare_script_environment()
659 DECLPROC(hPython, int, PyArg_ParseTuple, (PyObject *, char *, ...)); in prepare_script_environment()
660 DECLPROC(hPython, PyObject *, PyErr_Format, (PyObject *, char *)); in prepare_script_environment()
661 DECLPROC(hPython, PyObject *, PyLong_FromVoidPtr, (void *)); in prepare_script_environment()
697 do_run_installscript(HINSTANCE hPython, char *pathname, int argc, char **argv) in do_run_installscript() argument
700 DECLPROC(hPython, void, Py_Initialize, (void)); in do_run_installscript()
701 DECLPROC(hPython, int, PySys_SetArgv, (int, char **)); in do_run_installscript()
702 DECLPROC(hPython, int, PyRun_SimpleString, (char *)); in do_run_installscript()
703 DECLPROC(hPython, void, Py_Finalize, (void)); in do_run_installscript()
704 DECLPROC(hPython, PyObject *, Py_BuildValue, (char *, ...)); in do_run_installscript()
705 DECLPROC(hPython, PyObject *, PyCFunction_New, in do_run_installscript()
707 DECLPROC(hPython, int, PyArg_ParseTuple, (PyObject *, char *, ...)); in do_run_installscript()
708 DECLPROC(hPython, PyObject *, PyErr_Format, (PyObject *, char *)); in do_run_installscript()
734 prepare_script_environment(hPython); in do_run_installscript()
758 HINSTANCE hPython; in run_installscript() local
784 hPython = LoadPythonDll(pythondll); in run_installscript()
785 if (hPython) { in run_installscript()
786 result = do_run_installscript(hPython, pathname, argc, argv); in run_installscript()
787 FreeLibrary(hPython); in run_installscript()
806 static int do_run_simple_script(HINSTANCE hPython, char *script) in do_run_simple_script() argument
809 DECLPROC(hPython, void, Py_Initialize, (void)); in do_run_simple_script()
810 DECLPROC(hPython, void, Py_SetProgramName, (char *)); in do_run_simple_script()
811 DECLPROC(hPython, void, Py_Finalize, (void)); in do_run_simple_script()
812 DECLPROC(hPython, int, PyRun_SimpleString, (char *)); in do_run_simple_script()
813 DECLPROC(hPython, void, PyErr_Print, (void)); in do_run_simple_script()
821 prepare_script_environment(hPython); in do_run_simple_script()
832 HINSTANCE hPython; in run_simple_script() local
848 hPython = LoadPythonDll(pythondll); in run_simple_script()
849 if (!hPython) { in run_simple_script()
855 rc = do_run_simple_script(hPython, script); in run_simple_script()
856 FreeLibrary(hPython); in run_simple_script()
1293 HINSTANCE hPython; in get_sys_prefix() local
1306 hPython = LoadLibrary(dll); in get_sys_prefix()
1307 if (!hPython) in get_sys_prefix()
1310 (hPython,"Py_Initialize"); in get_sys_prefix()
1313 (hPython,"PySys_SetArgv"); in get_sys_prefix()
1316 (hPython,"PyRun_SimpleString"); in get_sys_prefix()
1319 (hPython,"Py_SetProgramName"); in get_sys_prefix()
1322 (hPython,"PySys_GetObject"); in get_sys_prefix()
1325 (hPython,"Py_GetPrefix"); in get_sys_prefix()
1328 (hPython,"Py_GetPath"); in get_sys_prefix()
1330 Py_Finalize = (void (*)(void))GetProcAddress(hPython, in get_sys_prefix()
1340 FreeLibrary(hPython); in get_sys_prefix()
1947 HINSTANCE hPython; in InstallFilesDlgProc() local
1952 hPython = LoadPythonDll(pythondll); in InstallFilesDlgProc()
1953 if (hPython) { in InstallFilesDlgProc()
1954 errors = compile_filelist(hPython, FALSE); in InstallFilesDlgProc()
1955 FreeLibrary(hPython); in InstallFilesDlgProc()
1966 HINSTANCE hPython; in InstallFilesDlgProc() local
1971 hPython = LoadPythonDll(pythondll); in InstallFilesDlgProc()
1972 if (hPython) { in InstallFilesDlgProc()
1973 errors = compile_filelist(hPython, TRUE); in InstallFilesDlgProc()
1974 FreeLibrary(hPython); in InstallFilesDlgProc()