Skip to content

Commit

Permalink
Move/share a struct definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Sep 25, 2011
1 parent efe3f82 commit c4c2e1d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/binder/bind.c
Expand Up @@ -13,20 +13,6 @@ Copyright (C) 2009-2011, The Perl Foundation.
#include "types.h"
#include "sixmodelobject.h"

/* Nabbed from Parrot, since it's not exposed and it's the only way
* (so far as I can tell) to get at the underlying primitive type
* being passed. */
typedef struct Pcc_cell
{
union u {
PMC *p;
STRING *s;
INTVAL i;
FLOATVAL n;
} u;
INTVAL type;
} Pcc_cell;

/* Cache of Parrot type IDs and some strings. */
static INTVAL smo_id = 0;
static INTVAL p6l_id = 0;
Expand Down
14 changes: 14 additions & 0 deletions src/binder/bind.h
Expand Up @@ -102,3 +102,17 @@ typedef struct {
} val;
char type;
} Rakudo_BindVal;

/* Nabbed from Parrot, since it's not exposed and it's the only way
* (so far as I can tell) to get at the underlying primitive type
* being passed. */
typedef struct Pcc_cell
{
union u {
PMC *p;
STRING *s;
INTVAL i;
FLOATVAL n;
} u;
INTVAL type;
} Pcc_cell;

0 comments on commit c4c2e1d

Please sign in to comment.