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

« back to all changes in this revision

Viewing changes to src/vm/jvm/runtime/org/perl6/nqp/sixmodel/reprs/NativeCallBody.java

  • 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
package org.perl6.nqp.sixmodel.reprs;
 
2
 
 
3
import com.sun.jna.Function;
 
4
 
 
5
/* Holds a description of a native call site. */
 
6
public class NativeCallBody {
 
7
    /* Flag for whether we should free a string after passing it or not. These
 
8
     * are going away once the array handling is refactored.*/
 
9
    public static final byte ARG_NO_FREE_STR   = 0;
 
10
    public static final byte ARG_FREE_STR      = 1;
 
11
    public static final byte ARG_FREE_STR_MASK = 1;
 
12
    
 
13
    /* The available native call argument types. */
 
14
    public enum ArgType {
 
15
        VOID,
 
16
        CHAR,
 
17
        SHORT,
 
18
        INT,
 
19
        LONG,
 
20
        LONGLONG,
 
21
        FLOAT,
 
22
        DOUBLE,
 
23
        ASCIISTR,
 
24
        UTF8STR,
 
25
        UTF16STR,
 
26
        CSTRUCT,
 
27
        CARRAY,
 
28
        CALLBACK,
 
29
        CPOINTER;
 
30
    }
 
31
 
 
32
    public Function  entry_point;
 
33
    public ArgType[] arg_types;
 
34
    public ArgType   ret_type;
 
35
}