Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a way to store Nil in preperation for handling it in more cases.
  • Loading branch information
jnthn committed Aug 3, 2011
1 parent 967ab7a commit 21977e8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/binder/types.c
Expand Up @@ -16,6 +16,7 @@ static PMC * Str = NULL;
static PMC * Parcel = NULL;
static PMC * List = NULL;
static PMC * ListIter = NULL;
static PMC * Nil = NULL;
static PMC * Array = NULL;
static PMC * LoL = NULL;
static PMC * EnumMap = NULL;
Expand Down Expand Up @@ -50,6 +51,9 @@ PMC * Rakudo_types_list_get(void) { return List; }
void Rakudo_types_listiter_set(PMC * type) { ListIter = type; }
PMC * Rakudo_types_listiter_get(void) { return ListIter; }

void Rakudo_types_nil_set(PMC * type) { Nil = type; }
PMC * Rakudo_types_nil_get(void) { return Nil; }

void Rakudo_types_array_set(PMC * type) { Array = type; }
PMC * Rakudo_types_array_get(void) { return Array; }

Expand Down
3 changes: 3 additions & 0 deletions src/binder/types.h
Expand Up @@ -25,6 +25,9 @@ PMC * Rakudo_types_list_get(void);
void Rakudo_types_listiter_set(PMC * type);
PMC * Rakudo_types_listiter_get(void);

void Rakudo_types_nil_set(PMC * type);
PMC * Rakudo_types_nil_get(void);

void Rakudo_types_array_set(PMC * type);
PMC * Rakudo_types_array_get(void);

Expand Down

0 comments on commit 21977e8

Please sign in to comment.