Cleanup: move public doc-strings into headers for 'python/intern'

Ref T92709
This commit is contained in:
2021-12-10 21:40:53 +11:00
parent 3060217d39
commit 63f8d18c0f
6 changed files with 38 additions and 27 deletions

View File

@@ -212,7 +212,6 @@ static bool python_script_exec(
/** \name Run Text / Filename / String
* \{ */
/* Can run a file or text block */
bool BPY_run_filepath(bContext *C, const char *filepath, struct ReportList *reports)
{
return python_script_exec(C, filepath, NULL, reports, false);
@@ -271,17 +270,11 @@ static bool bpy_run_string_impl(bContext *C,
return ok;
}
/**
* Run an expression, matches: `exec(compile(..., "eval"))`
*/
bool BPY_run_string_eval(bContext *C, const char *imports[], const char *expr)
{
return bpy_run_string_impl(C, imports, expr, Py_eval_input);
}
/**
* Run an entire script, matches: `exec(compile(..., "exec"))`
*/
bool BPY_run_string_exec(bContext *C, const char *imports[], const char *expr)
{
return bpy_run_string_impl(C, imports, expr, Py_file_input);
@@ -330,9 +323,6 @@ static void run_string_handle_error(struct BPy_RunErrInfo *err_info)
Py_XDECREF(py_err_str);
}
/**
* \return success
*/
bool BPY_run_string_as_number(bContext *C,
const char *imports[],
const char *expr,
@@ -364,9 +354,6 @@ bool BPY_run_string_as_number(bContext *C,
return ok;
}
/**
* \return success
*/
bool BPY_run_string_as_string_and_size(bContext *C,
const char *imports[],
const char *expr,
@@ -406,11 +393,6 @@ bool BPY_run_string_as_string(bContext *C,
return BPY_run_string_as_string_and_size(C, imports, expr, err_info, r_value, &value_dummy_size);
}
/**
* Support both int and pointers.
*
* \return success
*/
bool BPY_run_string_as_intptr(bContext *C,
const char *imports[],
const char *expr,