~ubuntu-branches/ubuntu/vivid/nqp/vivid-proposed

« back to all changes in this revision

Viewing changes to src/6model/reprs/CPointer.h

  • Committer: Package Import Robot
  • Author(s): Alessandro Ghedini
  • Date: 2013-11-01 12:09:18 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20131101120918-kx51sl0sxl3exsxi
Tags: 2013.10-1
* New upstream release
* Bump versioned (Build-)Depends on parrot
* Update patches
* Install new README.pod
* Fix vcs-field-not-canonical
* Do not install rubyish examples
* Do not Depends on parrot-devel anymore
* Add 07_disable-serialization-tests.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef CPOINTER_H_GUARD
2
 
#define CPOINTER_H_GUARD
3
 
 
4
 
/* Body of a CPointer. */
5
 
typedef struct {
6
 
    void *ptr;
7
 
} CPointerBody;
8
 
 
9
 
/* This is how an instance with the CPointer representation looks. */
10
 
typedef struct {
11
 
    SixModelObjectCommonalities common;
12
 
    CPointerBody body;
13
 
} CPointerInstance;
14
 
 
15
 
/* Initializes the CPointer REPR. */
16
 
REPROps * CPointer_initialize(PARROT_INTERP,
17
 
        PMC * (* wrap_object_func_ptr) (PARROT_INTERP, void *obj),
18
 
        PMC * (* create_stable_func_ptr) (PARROT_INTERP, REPROps *REPR, PMC *HOW));
19
 
 
20
 
#endif