Sha256: 71225525fbbe50f82ef6eadc72197a3f36fdd51b6ba539ead20502549caf8783

Contents?: true

Size: 740 Bytes

Versions: 55

Compression:

Stored size: 740 Bytes

Contents

/*
 * Copyright (c) 2007 Wayne Meissner. All rights reserved.
 *
 * For licensing, see LICENSE.SPECS
 */

int test_untagged_enum(int val) {
    return val;
}

int test_untagged_typedef_enum(int val) {
    return val;
}

typedef enum {c1, c2, c3, c4} enum_type1;
enum_type1 test_tagged_typedef_enum1(enum_type1 val) {
    return val;
}

typedef enum {c5 = 42, c6, c7, c8} enum_type2;
enum_type2 test_tagged_typedef_enum2(enum_type2 val) {
    return val;
}

typedef enum {c9 = 42, c10, c11 = 4242, c12} enum_type3;
enum_type3 test_tagged_typedef_enum3(enum_type3 val) {
    return val;
}

typedef enum {c13 = 42, c14 = 4242, c15 = 424242, c16 = 42424242} enum_type4;
enum_type4 test_tagged_typedef_enum4(enum_type4 val) {
    return val;
}

Version data entries

55 entries across 46 versions & 8 rubygems

Version Path
ffi-1.9.6-x86-mingw32 spec/ffi/fixtures/EnumTest.c
ffi-1.9.6-x86-mingw32 libtest/EnumTest.c
ffi-1.9.6-x64-mingw32 libtest/EnumTest.c
ffi-1.9.6-x64-mingw32 spec/ffi/fixtures/EnumTest.c
ffi-1.9.6 libtest/EnumTest.c
ffi-1.9.6 spec/ffi/fixtures/EnumTest.c
ffi-1.9.5-x64-mingw32 libtest/EnumTest.c
ffi-1.9.5-x64-mingw32 spec/ffi/fixtures/EnumTest.c
ffi-1.9.5-x86-mingw32 spec/ffi/fixtures/EnumTest.c
ffi-1.9.5-x86-mingw32 libtest/EnumTest.c
ffi-1.9.5 libtest/EnumTest.c
ffi-1.9.5 spec/ffi/fixtures/EnumTest.c
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/gems/ffi-1.9.3/libtest/EnumTest.c
ffi-1.9.3-x64-mingw32 libtest/EnumTest.c
ffi-1.9.3-x86-mingw32 libtest/EnumTest.c
ffi-1.9.3 libtest/EnumTest.c
tnargav-1.3.3 vendor/bundle/ruby/1.9.1/gems/ffi-1.9.0/libtest/EnumTest.c
vagrant-shell-0.2.9 demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/libtest/EnumTest.c
tnargav-1.2.3 vendor/bundle/ruby/1.9.1/gems/ffi-1.9.0/libtest/EnumTest.c
vagrant-shell-0.2.8 demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/libtest/EnumTest.c