Skip to content

Commit

Permalink
6model: headerize, podify and CONST_STRING P6opaque
Browse files Browse the repository at this point in the history
  • Loading branch information
Reini Urban committed Mar 19, 2014
1 parent 51e081a commit 83620e9
Show file tree
Hide file tree
Showing 3 changed files with 551 additions and 145 deletions.
37 changes: 32 additions & 5 deletions include/parrot/6model/repr/P6opaque.h
@@ -1,5 +1,12 @@
#ifndef P6OPAQUE_H_GUARD
#define P6OPAQUE_H_GUARD
/* 6model/P6opaque.h
* Copyright (C) 2010-2011, The Perl Foundation.
* Copyright (C) 2014, Parrot Foundation.
*
* struct P6opaqueInstance:
*/

#ifndef PARROT_P6OPAQUE_H_GUARD
#define PARROT_P6OPAQUE_H_GUARD

/* This is how an instance with the P6opaque representation starts. However, what
* follows on from this depends on the declaration. For object attributes, it will
Expand Down Expand Up @@ -64,9 +71,29 @@ typedef struct {
INTVAL *gc_str_mark_offsets;
} P6opaqueREPRData;

/* Initializes the P6opaque REPR. */
/* HEADERIZER BEGIN: src/6model/reprs/P6opaque.c */
/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */

PMC * index_mapping_and_flat_list(PARROT_INTERP,
PMC *WHAT,
P6opaqueREPRData *repr_data)
__attribute__nonnull__(1);

PARROT_WARN_UNUSED_RESULT
PARROT_CANNOT_RETURN_NULL
REPROps * P6opaque_initialize(PARROT_INTERP);

PMC *index_mapping_and_flat_list(PARROT_INTERP, PMC *WHAT, P6opaqueREPRData *repr_data);
#define ASSERT_ARGS_index_mapping_and_flat_list __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp))
#define ASSERT_ARGS_P6opaque_initialize __attribute__unused__ int _ASSERT_ARGS_CHECK = (0)
/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */
/* HEADERIZER END: src/6model/reprs/P6opaque.c */

#endif /* PARROT_P6OPAQUE_H_GUARD */

#endif
/*
* Local variables:
* c-file-style: "parrot"
* End:
* vim: expandtab shiftwidth=4 cinoptions='\:2=2' :
*/
2 changes: 1 addition & 1 deletion src/6model/reprs/HashAttrStore.c
Expand Up @@ -12,7 +12,7 @@ This REPR stores named attributes in a hash. It doesn't key by the
class at all - it's just a completely flat view. It also doesn't know
about allowing index-optimized access (at least, not yet).
=head2 Internal Functions
=head2 Methods
=over 4
Expand Down

0 comments on commit 83620e9

Please sign in to comment.