Sha256: d7908f85439536527c3410409f3889a9c64d8365ddf251c28fd765ad450f5ec0

Contents?: true

Size: 1.01 KB

Versions: 179

Compression:

Stored size: 1.01 KB

Contents

/*
 * Copyright (c) 2007 Wayne Meissner. All rights reserved.
 *
 * For licensing, see LICENSE.SPECS
 */
#include <stdint.h>

int test_untagged_enum(int val) {
    return val;
}

int test_untagged_typedef_enum(int val) {
    return val;
}

uint8_t test_untagged_nonint_enum(uint8_t val) {
    return val;
}

uint16_t test_tagged_nonint_enum1(uint16_t val) {
    return val;
}

uint32_t test_tagged_nonint_enum2(uint32_t val) {
    return val;
}

uint64_t test_tagged_nonint_enum3(uint64_t 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

179 entries across 83 versions & 15 rubygems

Version Path
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/spec/ffi/fixtures/EnumTest.c
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/libtest/EnumTest.c
tdiary-5.0.8 vendor/bundle/gems/tdiary-5.0.7/vendor/bundle/gems/ffi-1.9.18/libtest/EnumTest.c
tdiary-5.0.8 vendor/bundle/gems/tdiary-5.0.7/vendor/bundle/gems/ffi-1.9.18/spec/ffi/fixtures/EnumTest.c
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/libtest/EnumTest.c
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.5.0/gems/ffi-1.9.18/libtest/EnumTest.c
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.5.0/gems/ffi-1.9.18/spec/ffi/fixtures/EnumTest.c
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/spec/ffi/fixtures/EnumTest.c
ffi-1.9.21-x86-mingw32 libtest/EnumTest.c
ffi-1.9.21-x86-mingw32 spec/ffi/fixtures/EnumTest.c
ffi-1.9.21-x64-mingw32 spec/ffi/fixtures/EnumTest.c
ffi-1.9.21-x64-mingw32 libtest/EnumTest.c
ffi-1.9.21 spec/ffi/fixtures/EnumTest.c
ffi-1.9.21 libtest/EnumTest.c
tdiary-5.0.7 vendor/bundle/gems/ffi-1.9.18/spec/ffi/fixtures/EnumTest.c
tdiary-5.0.7 vendor/bundle/gems/ffi-1.9.18/libtest/EnumTest.c
comiditaULL-0.1.1 vendor/bundle/ruby/2.3.0/gems/ffi-1.9.18/libtest/EnumTest.c
comiditaULL-0.1.1 vendor/bundle/ruby/2.3.0/gems/ffi-1.9.18/spec/ffi/fixtures/EnumTest.c
comidita_ull-0.1.1 vendor/bundle/ruby/2.3.0/gems/ffi-1.9.18/libtest/EnumTest.c
comidita_ull-0.1.1 vendor/bundle/ruby/2.3.0/gems/ffi-1.9.18/spec/ffi/fixtures/EnumTest.c