Permalink
Browse files

rerun make headerizer

  • Loading branch information...
1 parent 709eae7 commit 71d8c29583bf8d36c287ba7198827f1fffa7b9b1 @Whiteknight Whiteknight committed Dec 5, 2010
Showing with 25 additions and 15 deletions.
  1. +25 −15 include/parrot/api.h
View
@@ -62,6 +62,21 @@ typedef struct _Parrot_Init_Args {
/* HEADERIZER BEGIN: src/embed/api.c */
/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */
+// TODO: This only works with the inital bytecode. After this we should use // Parrot_append_bytecode or something similar PARROT_API Parrot_Int Parrot_api_load_bytecode_file(
+ Parrot_PMC interp_pmc,
+ ARGIN(const char *filename),
+ ARGOUT(Parrot_PMC * pbc))
+ __attribute__nonnull__(2)
+ __attribute__nonnull__(3)
+ FUNC_MODIFIES(* pbc);
+
+// Load the bytecode into the interpreter, but don't execute it // TODO: This only works with the inital bytecode. After this we should use // Parrot_append_bytecode or something similar PARROT_API Parrot_Int Parrot_api_ready_bytecode(
+ Parrot_PMC interp_pmc,
+ Parrot_PMC pbc,
+ ARGOUT(Parrot_PMC *main_sub))
+ __attribute__nonnull__(3)
+ FUNC_MODIFIES(*main_sub);
+
PARROT_API
Parrot_Int Parrot_api_add_dynext_search_path(
Parrot_PMC interp_pmc,
@@ -155,17 +170,8 @@ Parrot_Int Parrot_api_load_bytecode_bytes(
FUNC_MODIFIES(* pbcpmc);
PARROT_API
-Parrot_Int Parrot_api_load_bytecode_file(
- Parrot_PMC interp_pmc,
- ARGIN(const char *filename),
- ARGOUT(Parrot_PMC * pbc))
- __attribute__nonnull__(2)
- __attribute__nonnull__(3)
- FUNC_MODIFIES(* pbc);
-
-PARROT_API
Parrot_Int Parrot_api_make_interpreter(
- Parrot_PMC interp_pmc,
+ Parrot_PMC parent,
Parrot_Int flags,
ARGIN_NULLOK(Parrot_Init_Args *args),
ARGOUT(Parrot_PMC *interp))
@@ -221,6 +227,13 @@ Parrot_Int Parrot_api_wrap_imcc_hack(
int *result,
imcc_hack_func_t func);
+#define ASSERT_ARGS_// Parrot_append_bytecode or something similar PARROT_API Parrot_Int Parrot_api_load_bytecode_file \
+ __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
+ PARROT_ASSERT_ARG(filename) \
+ , PARROT_ASSERT_ARG(pbc))
+#define ASSERT_ARGS_// TODO: This only works with the inital bytecode. After this we should use // Parrot_append_bytecode or something similar PARROT_API Parrot_Int Parrot_api_ready_bytecode \
+ __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
+ PARROT_ASSERT_ARG(main_sub))
#define ASSERT_ARGS_Parrot_api_add_dynext_search_path \
__attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(path))
@@ -254,9 +267,6 @@ Parrot_Int Parrot_api_wrap_imcc_hack(
__attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(pbc) \
, PARROT_ASSERT_ARG(pbcpmc))
-#define ASSERT_ARGS_Parrot_api_load_bytecode_file __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
- PARROT_ASSERT_ARG(filename) \
- , PARROT_ASSERT_ARG(pbc))
#define ASSERT_ARGS_Parrot_api_make_interpreter __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp))
#define ASSERT_ARGS_Parrot_api_run_bytecode __attribute__unused__ int _ASSERT_ARGS_CHECK = (0)
@@ -335,12 +345,12 @@ Parrot_Int Parrot_api_string_import_binary(
PARROT_API
Parrot_Int Parrot_api_add_exception_handler(
Parrot_PMC interp_pmc,
- Parrot_PMC hander);
+ Parrot_PMC handler);
PARROT_API
Parrot_Int Parrot_api_call_sub(
Parrot_PMC interp_pmc,
- Parrot_PMC sub,
+ Parrot_PMC sub_pmc,
ARGIN(const char * signature),
...)
__attribute__nonnull__(3);

0 comments on commit 71d8c29

Please sign in to comment.