Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start to stub in the new binder a bit. We add a dynop and also a few …
…other little bits, plus a place for the binding logic, since we'll want to use it from the ops and dynpmcs.
- Loading branch information
Showing
7 changed files
with
102 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
41447 | ||
41772 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
$Id$ | ||
Copyright (C) 2009, The Perl Foundation. | ||
*/ | ||
|
||
#include "parrot/parrot.h" | ||
#include "sigguts.h" | ||
|
||
/* Takes a signature along with positional and named arguments and binds them | ||
* into the provided lexpad (actually, anything that has a Hash interface will | ||
* do). Returns 0 if binding fails, and non-zero otherwise. */ | ||
INTVAL | ||
Rakudo_binding_bind_signature(PARROT_INTERP, PMC *lexpad, PMC *signature, | ||
PMC *pos_args, PMC *named_args, | ||
INTVAL no_nom_type_check, STRING **error) { | ||
return 0; | ||
} | ||
|
||
|
||
/* Binds a single argument into the lexpad, after doing any checks that are | ||
* needed. Also handles any type captures. If there is a sub signature, then | ||
* re-enters the binder. Returns 0 if binding fails, and non-zero otherwise. */ | ||
INTVAL | ||
Rakudo_binding_bind_one_param(PARROT_INTERP, PMC *lexpad, llsig_element *sig_info, | ||
PMC *value, INTVAL no_nom_type_check, STRING **error) { | ||
return 0; | ||
} | ||
|
||
/* | ||
* Local variables: | ||
* c-file-style: "parrot" | ||
* End: | ||
* vim: expandtab shiftwidth=4: | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ from the outside. | |
|
||
*/ | ||
|
||
#include "sigguts.h" | ||
#include "../binder/sigguts.h" | ||
|
||
/* | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters