diff options
author | Kevin Newton <kddnewton@gmail.com> | 2024-02-28 12:12:45 -0500 |
---|---|---|
committer | Kevin Newton <kddnewton@gmail.com> | 2024-02-28 12:42:57 -0500 |
commit | f8355e88d60a02c215551ddfc0952dc6beb3bdf9 (patch) | |
tree | e448954dcce82fa5e3490e97692bb82ecea15f8c /prism_compile.h | |
parent | dcc976add9cb92d0dae75f85428a7751e7b40bef (diff) |
[PRISM] Do not load -r until we check if main script can be read
Diffstat (limited to 'prism_compile.h')
-rw-r--r-- | prism_compile.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/prism_compile.h b/prism_compile.h index 2080db7739..67495e61b3 100644 --- a/prism_compile.h +++ b/prism_compile.h @@ -44,7 +44,9 @@ typedef struct { bool parsed; } pm_parse_result_t; +VALUE pm_load_file(pm_parse_result_t *result, VALUE filepath); VALUE pm_parse_file(pm_parse_result_t *result, VALUE filepath); +VALUE pm_load_parse_file(pm_parse_result_t *result, VALUE filepath); VALUE pm_parse_string(pm_parse_result_t *result, VALUE source, VALUE filepath); void pm_parse_result_free(pm_parse_result_t *result); |