Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
| #include <stdarg.h> | ||
| #include <stdbool.h> | ||
| #include <stdint.h> | ||
| #include <stdlib.h> | ||
| void foo(void); | ||
| void bar(void); |
| #include <stdarg.h> | ||
| #include <stdbool.h> | ||
| #include <stdint.h> | ||
| #include <stdlib.h> | ||
| #ifdef __cplusplus | ||
| extern "C" { | ||
| #endif // __cplusplus | ||
| void foo(void); | ||
| void bar(void); | ||
| #ifdef __cplusplus | ||
| } // extern "C" | ||
| #endif // __cplusplus |
| #include <cstdarg> | ||
| #include <cstdint> | ||
| #include <cstdlib> | ||
| #include <ostream> | ||
| #include <new> | ||
| extern "C" { | ||
| void foo(); | ||
| void bar(); | ||
| } // extern "C" |
| from libc.stdint cimport int8_t, int16_t, int32_t, int64_t, intptr_t | ||
| from libc.stdint cimport uint8_t, uint16_t, uint32_t, uint64_t, uintptr_t | ||
| cdef extern from *: | ||
| ctypedef bint bool | ||
| ctypedef struct va_list | ||
| cdef extern from *: | ||
| void foo(); | ||
| void bar(); |
| #include <stdarg.h> | ||
| #include <stdbool.h> | ||
| #include <stdint.h> | ||
| #include <stdlib.h> | ||
| /** | ||
| * Some docs. | ||
| */ | ||
| extern const uint32_t FOO; | ||
| /** | ||
| * The root of all evil. | ||
| * | ||
| * But at least it contains some more documentation as someone would expect | ||
| * from a simple test case like this. | ||
| * | ||
| * # Hint | ||
| * Always ensure that everything is properly documented, even if you feel lazy. | ||
| * **Sometimes** it is also helpful to include some markdown formatting. | ||
| * | ||
| * //////////////////////////////////////////////////////////////////////////// | ||
| * | ||
| * Attention: | ||
| * | ||
| * This is an indentation test. | ||
| * The indentation should be preserved in the generated documentation. | ||
| * | ||
| * ...and here is my shopping list to check that we do not mess with line breaks and indentation: | ||
| * - Bread | ||
| * - Brown | ||
| * - White | ||
| * - Milk | ||
| * - Eggs | ||
| */ | ||
| void root(void); | ||
| /** | ||
| * In this block, we're testing indentation handling. | ||
| * Since all of these lines are equally indented, we want to discard the common leading whitespace, | ||
| * but preserve the relative indentation and line breaks. | ||
| * | ||
| * Including between paragraphs, | ||
| * | ||
| * - And | ||
| * - within | ||
| * - Lists | ||
| */ | ||
| void block_function(void); |
| #include <stdarg.h> | ||
| #include <stdbool.h> | ||
| #include <stdint.h> | ||
| #include <stdlib.h> | ||
| #ifdef __cplusplus | ||
| extern "C" { | ||
| #endif // __cplusplus | ||
| /** | ||
| * Some docs. | ||
| */ | ||
| extern const uint32_t FOO; | ||
| /** | ||
| * The root of all evil. | ||
| * | ||
| * But at least it contains some more documentation as someone would expect | ||
| * from a simple test case like this. | ||
| * | ||
| * # Hint | ||
| * Always ensure that everything is properly documented, even if you feel lazy. | ||
| * **Sometimes** it is also helpful to include some markdown formatting. | ||
| * | ||
| * //////////////////////////////////////////////////////////////////////////// | ||
| * | ||
| * Attention: | ||
| * | ||
| * This is an indentation test. | ||
| * The indentation should be preserved in the generated documentation. | ||
| * | ||
| * ...and here is my shopping list to check that we do not mess with line breaks and indentation: | ||
| * - Bread | ||
| * - Brown | ||
| * - White | ||
| * - Milk | ||
| * - Eggs | ||
| */ | ||
| void root(void); | ||
| /** | ||
| * In this block, we're testing indentation handling. | ||
| * Since all of these lines are equally indented, we want to discard the common leading whitespace, | ||
| * but preserve the relative indentation and line breaks. | ||
| * | ||
| * Including between paragraphs, | ||
| * | ||
| * - And | ||
| * - within | ||
| * - Lists | ||
| */ | ||
| void block_function(void); | ||
| #ifdef __cplusplus | ||
| } // extern "C" | ||
| #endif // __cplusplus |
| #include <cstdarg> | ||
| #include <cstdint> | ||
| #include <cstdlib> | ||
| #include <ostream> | ||
| #include <new> | ||
| extern "C" { | ||
| /// Some docs. | ||
| extern const uint32_t FOO; | ||
| /// The root of all evil. | ||
| /// | ||
| /// But at least it contains some more documentation as someone would expect | ||
| /// from a simple test case like this. | ||
| /// | ||
| /// # Hint | ||
| /// Always ensure that everything is properly documented, even if you feel lazy. | ||
| /// **Sometimes** it is also helpful to include some markdown formatting. | ||
| /// | ||
| /// //////////////////////////////////////////////////////////////////////////// | ||
| /// | ||
| /// Attention: | ||
| /// | ||
| /// This is an indentation test. | ||
| /// The indentation should be preserved in the generated documentation. | ||
| /// | ||
| /// ...and here is my shopping list to check that we do not mess with line breaks and indentation: | ||
| /// - Bread | ||
| /// - Brown | ||
| /// - White | ||
| /// - Milk | ||
| /// - Eggs | ||
| void root(); | ||
| /// In this block, we're testing indentation handling. | ||
| /// Since all of these lines are equally indented, we want to discard the common leading whitespace, | ||
| /// but preserve the relative indentation and line breaks. | ||
| /// | ||
| /// Including between paragraphs, | ||
| /// | ||
| /// - And | ||
| /// - within | ||
| /// - Lists | ||
| void block_function(); | ||
| } // extern "C" |
| from libc.stdint cimport int8_t, int16_t, int32_t, int64_t, intptr_t | ||
| from libc.stdint cimport uint8_t, uint16_t, uint32_t, uint64_t, uintptr_t | ||
| cdef extern from *: | ||
| ctypedef bint bool | ||
| ctypedef struct va_list | ||
| cdef extern from *: | ||
| # Some docs. | ||
| extern const uint32_t FOO; | ||
| # The root of all evil. | ||
| # | ||
| # But at least it contains some more documentation as someone would expect | ||
| # from a simple test case like this. | ||
| # | ||
| # # Hint | ||
| # Always ensure that everything is properly documented, even if you feel lazy. | ||
| # **Sometimes** it is also helpful to include some markdown formatting. | ||
| # | ||
| # //////////////////////////////////////////////////////////////////////////// | ||
| # | ||
| # Attention: | ||
| # | ||
| # This is an indentation test. | ||
| # The indentation should be preserved in the generated documentation. | ||
| # | ||
| # ...and here is my shopping list to check that we do not mess with line breaks and indentation: | ||
| # - Bread | ||
| # - Brown | ||
| # - White | ||
| # - Milk | ||
| # - Eggs | ||
| void root(); | ||
| # In this block, we're testing indentation handling. | ||
| # Since all of these lines are equally indented, we want to discard the common leading whitespace, | ||
| # but preserve the relative indentation and line breaks. | ||
| # | ||
| # Including between paragraphs, | ||
| # | ||
| # - And | ||
| # - within | ||
| # - Lists | ||
| void block_function(); |
| #[no_mangle] | ||
| pub extern "cmse-nonsecure-entry" fn foo() {} | ||
| #[no_mangle] | ||
| pub extern "cmse-nonsecure-call" fn bar() {} |
| /** | ||
| The root of all evil. | ||
| But at least it contains some more documentation as someone would expect | ||
| from a simple test case like this. | ||
| # Hint | ||
| Always ensure that everything is properly documented, even if you feel lazy. | ||
| **Sometimes** it is also helpful to include some markdown formatting. | ||
| //////////////////////////////////////////////////////////////////////////// | ||
| Attention: | ||
| This is an indentation test. | ||
| The indentation should be preserved in the generated documentation. | ||
| ...and here is my shopping list to check that we do not mess with line breaks and indentation: | ||
| - Bread | ||
| - Brown | ||
| - White | ||
| - Milk | ||
| - Eggs | ||
| */ | ||
| #[no_mangle] | ||
| pub extern "C" fn root() {} | ||
| /** | ||
| Some docs. | ||
| */ | ||
| #[no_mangle] | ||
| pub static FOO: u32 = 4; | ||
| mod abc { | ||
| /** | ||
| In this block, we're testing indentation handling. | ||
| Since all of these lines are equally indented, we want to discard the common leading whitespace, | ||
| but preserve the relative indentation and line breaks. | ||
| Including between paragraphs, | ||
| - And | ||
| - within | ||
| - Lists | ||
| */ | ||
| #[no_mangle] | ||
| pub extern "C" fn block_function() {} | ||
| } |
| { | ||
| "git": { | ||
| "sha1": "76f41c090c0587d940a0ef81a41c8b995f074926" | ||
| "sha1": "b5f2a978302e86fa06659a945a26c1b8b9aa9b8d" | ||
| }, | ||
| "path_in_vcs": "" | ||
| } |
@@ -11,8 +11,7 @@ name: cbindgen | ||
| merge_group: | ||
| types: | ||
| - checks_requested | ||
| branches: | ||
| - main | ||
| jobs: | ||
| rustfmt-clippy: | ||
| runs-on: ubuntu-24.04 | ||
@@ -41,4 +40,6 @@ | ||
| - name: Build with minimum supported Rust version | ||
| env: | ||
| NAME: ${{steps.msrv.outputs.name}} | ||
| run: | | ||
| cargo +${{steps.msrv.outputs.name}} test nonexistent-test --verbose | ||
| cargo +$NAME test nonexistent-test --verbose | ||
@@ -124,2 +125,16 @@ build: | ||
| cargo +nightly update -Zminimal-versions | ||
| cargo +nightly test | ||
| # One job that "summarizes" the success state of this pipeline. This can then | ||
| # be added to branch protection, rather than having to add each job | ||
| # separately. | ||
| success: | ||
| runs-on: ubuntu-24.04 | ||
| needs: [rustfmt-clippy, build] | ||
| # GitHub branch protection is exceedingly silly and treats "jobs skipped | ||
| # because a dependency failed" as success. So we have to do some | ||
| # contortions to ensure the job fails if any of its dependencies fails. | ||
| if: always() # make sure this is never "skipped" | ||
| steps: | ||
| # Manually check the status of all dependencies. `if: failure()` does not work. | ||
| - name: check if any dependency failed | ||
| run: jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}' |
@@ -62,3 +62,2 @@ name: deploy | ||
| run: | | ||
| TAG=${{ steps.tagName.outputs.version }} | ||
| cp target/release/cbindgen cbindgen-ubuntu22.04 | ||
@@ -69,1 +68,2 @@ cp target/aarch64-unknown-linux-gnu/release/cbindgen cbindgen-ubuntu22.04-aarch64 | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| TAG: ${{ steps.tagName.outputs.version }} |
+1
-1
@@ -69,3 +69,3 @@ # This file is automatically @generated by Cargo. | ||
| name = "cbindgen" | ||
| version = "0.29.2" | ||
| version = "0.29.3" | ||
| dependencies = [ | ||
@@ -72,0 +72,0 @@ "clap", |
+1
-1
@@ -16,3 +16,3 @@ # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO | ||
| name = "cbindgen" | ||
| version = "0.29.2" | ||
| version = "0.29.3" | ||
| authors = [ | ||
@@ -19,0 +19,0 @@ "Emilio Cobos Álvarez <emilio@crisal.io>", |
+9
-0
| # unreleased | ||
| # 0.29.3 | ||
| * Expose the line_endings config option to use with the builder | ||
| * Fix doc attribute parsing to properly handle block comments | ||
| * Check for CMSE ABI's as well | ||
| * ci: Add a meta job to block the merge queue on it. | ||
| * Allow `pub` access to `ReprType` fields | ||
| * In C23 mode, define sized enums as enums rather than typedefs. | ||
| # 0.29.2 | ||
@@ -4,0 +13,0 @@ |
@@ -9,3 +9,3 @@ /* This Source Code Form is subject to the terms of the Mozilla Public | ||
| use crate::bindgen::cargo::Cargo; | ||
| use crate::bindgen::config::{Braces, Config, Language, Profile, Style}; | ||
| use crate::bindgen::config::{Braces, Config, Language, LineEndingStyle, Profile, Style}; | ||
| use crate::bindgen::error::Error; | ||
@@ -347,2 +347,8 @@ use crate::bindgen::library::Library; | ||
| #[allow(unused)] | ||
| pub fn with_line_endings(mut self, line_ending_style: LineEndingStyle) -> Builder { | ||
| self.config.line_endings = line_ending_style; | ||
| self | ||
| } | ||
| pub fn generate(self) -> Result<Bindings, Error> { | ||
@@ -349,0 +355,0 @@ // If macro expansion is enabled, then cbindgen will attempt to build the crate |
@@ -683,11 +683,16 @@ /* This Source Code Form is subject to the terms of the Mozilla Public | ||
| if config.cpp_compatible_c() { | ||
| out.new_line(); | ||
| out.write("#ifdef __cplusplus"); | ||
| out.new_line(); | ||
| write!(out, " : {prim}"); | ||
| out.new_line(); | ||
| out.write("#endif // __cplusplus"); | ||
| out.new_line(); | ||
| } | ||
| // Emit typed enum syntax (valid in C23 or later or C++) | ||
| let cond = if config.cpp_compatible_c() { | ||
| "defined(__cplusplus) || __STDC_VERSION__ >= 202311L" | ||
| } else { | ||
| "__STDC_VERSION__ >= 202311L" | ||
| }; | ||
| out.new_line(); | ||
| write!(out, "#if {cond}"); | ||
| out.new_line(); | ||
| write!(out, " : {prim}"); | ||
| out.new_line(); | ||
| write!(out, "#endif // {cond}"); | ||
| out.new_line(); | ||
| } else { | ||
@@ -763,4 +768,4 @@ if config.style.generate_typedef() { | ||
| // Emit typedef specifying the tag enum's size if necessary. | ||
| // In C++ enums can "inherit" from numeric types (`enum E: uint8_t { ... }`), | ||
| // but in C `typedef uint8_t E` is the only way to give a fixed size to `E`. | ||
| // In C++ or C23 enums can "inherit" from numeric types (`enum E: uint8_t { ... }`), | ||
| // but in older versions of C `typedef uint8_t E` is the only way to give a fixed size to `E`. | ||
| if let Some(prim) = size { | ||
@@ -773,4 +778,26 @@ if config.cpp_compatible_c() { | ||
| if config.language != Language::Cxx { | ||
| if config.language == Language::C { | ||
| out.new_line(); | ||
| out.write("#if __STDC_VERSION__ >= 202311L"); | ||
| out.new_line(); | ||
| write!( | ||
| out, | ||
| "{} enum {} {};", | ||
| config.language.typedef(), | ||
| tag_name, | ||
| tag_name | ||
| ); | ||
| out.new_line(); | ||
| out.write("#else"); | ||
| } | ||
| out.new_line(); | ||
| write!(out, "{} {} {};", config.language.typedef(), prim, tag_name); | ||
| if config.language == Language::C { | ||
| out.new_line(); | ||
| out.write("#endif // __STDC_VERSION__ >= 202311L"); | ||
| } | ||
| } | ||
@@ -777,0 +804,0 @@ |
@@ -17,4 +17,4 @@ /* This Source Code Form is subject to the terms of the Mozilla Public | ||
| pub struct ReprType { | ||
| kind: IntKind, | ||
| signed: bool, | ||
| pub kind: IntKind, | ||
| pub signed: bool, | ||
| } | ||
@@ -21,0 +21,0 @@ |
@@ -731,3 +731,3 @@ /* This Source Code Form is subject to the terms of the Mozilla Public | ||
| let is_extern_c = sig.abi.is_omitted() || sig.abi.is_c(); | ||
| let is_extern_c = sig.abi.is_omitted() || sig.abi.is_c() || sig.abi.is_cmse(); | ||
| let exported_name = named_symbol.exported_name(); | ||
@@ -734,0 +734,0 @@ |
+55
-20
@@ -387,2 +387,3 @@ /* This Source Code Form is subject to the terms of the Mozilla Public | ||
| fn is_c(&self) -> bool; | ||
| fn is_cmse(&self) -> bool; | ||
| fn is_omitted(&self) -> bool; | ||
@@ -393,15 +394,9 @@ } | ||
| fn is_c(&self) -> bool { | ||
| if let Some(ref abi) = *self { | ||
| if let Some(ref lit_string) = abi.name { | ||
| return matches!(lit_string.value().as_str(), "C" | "C-unwind"); | ||
| } | ||
| } | ||
| false | ||
| self.as_ref().is_some_and(|abi| abi.is_c()) | ||
| } | ||
| fn is_cmse(&self) -> bool { | ||
| self.as_ref().is_some_and(|abi| abi.is_cmse()) | ||
| } | ||
| fn is_omitted(&self) -> bool { | ||
| if let Some(ref abi) = *self { | ||
| abi.name.is_none() | ||
| } else { | ||
| false | ||
| } | ||
| self.as_ref().is_some_and(|abi| abi.is_omitted()) | ||
| } | ||
@@ -418,2 +413,12 @@ } | ||
| } | ||
| fn is_cmse(&self) -> bool { | ||
| if let Some(ref lit_string) = self.name { | ||
| matches!( | ||
| lit_string.value().as_str(), | ||
| "cmse-nonsecure-entry" | "cmse-nonsecure-call" | ||
| ) | ||
| } else { | ||
| false | ||
| } | ||
| } | ||
| fn is_omitted(&self) -> bool { | ||
@@ -431,11 +436,41 @@ self.name.is_none() | ||
| fn split_doc_attr(input: &str) -> Vec<String> { | ||
| input | ||
| // Convert two newline (indicate "new paragraph") into two line break. | ||
| .replace("\n\n", " \n \n") | ||
| // Convert newline after two spaces (indicate "line break") into line break. | ||
| .split(" \n") | ||
| // Convert single newline (indicate hard-wrapped) into space. | ||
| .map(|s| s.replace('\n', " ")) | ||
| .map(|s| s.trim_end().to_string()) | ||
| .collect() | ||
| if !input.contains('\n') { | ||
| // This is a special case for single-line doc comments, which normally already contain a leading space | ||
| // if it is desired. | ||
| return vec![input.to_owned()]; | ||
| } | ||
| // Calculate the common leading whitespace across all non-empty lines, so we can trim it from all lines while | ||
| // preserving relative indentation. This is important for items nested (esp. in modules) where the doc comment | ||
| // is usually indented to the same level as the item, leaving whitespace at the beginning of each line. | ||
| // We want to trim that, but preserve relative indentation. | ||
| // Note: we assume you aren't using mixed tabs and spaces, but that is probably safe to assume for rust code | ||
| // which is usually indented with spaces. | ||
| let common_indent = input | ||
| .lines() | ||
| .filter(|line| !line.trim().is_empty()) | ||
| .map(|line| line.chars().take_while(|c| c.is_whitespace()).count()) | ||
| .min() | ||
| .unwrap_or(0); | ||
| let mut lines: Vec<String> = input | ||
| .lines() | ||
| // Trim leading empty/whitespace lines | ||
| .skip_while(|line| line.trim().is_empty()) | ||
| // Add a leading space to non-empty lines to prevent misinterpreting leading symbols and | ||
| // mirror the behaviour of single-line doc comments, which already have a leading space. | ||
| .map(|s| { | ||
| if s.trim().is_empty() { | ||
| String::new() | ||
| } else { | ||
| format!(" {}", s.chars().skip(common_indent).collect::<String>()) | ||
| } | ||
| }) | ||
| .collect(); | ||
| // Remove trailing empty/whitespace lines | ||
| while lines.last().is_some_and(|line| line.trim().is_empty()) { | ||
| lines.pop(); | ||
| } | ||
| lines | ||
| } |
@@ -6,7 +6,15 @@ #include <stdarg.h> | ||
| enum Status { | ||
| enum Status | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Ok, | ||
| Err, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Status Status; | ||
| #else | ||
| typedef uint32_t Status; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -13,0 +21,0 @@ typedef struct Dep { |
@@ -7,5 +7,5 @@ #include <stdarg.h> | ||
| enum Status | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -16,3 +16,7 @@ Ok, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Status Status; | ||
| #else | ||
| typedef uint32_t Status; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -19,0 +23,0 @@ |
@@ -6,7 +6,15 @@ #include <stdarg.h> | ||
| enum Status { | ||
| enum Status | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Ok, | ||
| Err, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Status Status; | ||
| #else | ||
| typedef uint32_t Status; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -13,0 +21,0 @@ struct Dep { |
@@ -7,5 +7,5 @@ #include <stdarg.h> | ||
| enum Status | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -16,3 +16,7 @@ Ok, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Status Status; | ||
| #else | ||
| typedef uint32_t Status; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -19,0 +23,0 @@ |
@@ -6,7 +6,15 @@ #include <stdarg.h> | ||
| enum Status { | ||
| enum Status | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Ok, | ||
| Err, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Status Status; | ||
| #else | ||
| typedef uint32_t Status; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -13,0 +21,0 @@ typedef struct { |
@@ -7,5 +7,5 @@ #include <stdarg.h> | ||
| enum Status | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -16,3 +16,7 @@ Ok, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Status Status; | ||
| #else | ||
| typedef uint32_t Status; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -19,0 +23,0 @@ |
@@ -6,7 +6,15 @@ #include <stdarg.h> | ||
| enum C { | ||
| enum C | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| X = 2, | ||
| Y, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C C; | ||
| #else | ||
| typedef uint32_t C; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -22,3 +30,7 @@ typedef struct A { | ||
| enum F_Tag { | ||
| enum F_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Foo, | ||
@@ -28,3 +40,7 @@ Bar, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum F_Tag F_Tag; | ||
| #else | ||
| typedef uint8_t F_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -46,3 +62,7 @@ typedef struct Bar_Body { | ||
| enum H_Tag { | ||
| enum H_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Hello, | ||
@@ -52,3 +72,7 @@ There, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum H_Tag H_Tag; | ||
| #else | ||
| typedef uint8_t H_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -55,0 +79,0 @@ typedef struct There_Body { |
@@ -7,5 +7,5 @@ #include <stdarg.h> | ||
| enum C | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -16,3 +16,7 @@ X = 2, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C C; | ||
| #else | ||
| typedef uint32_t C; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -30,5 +34,5 @@ | ||
| enum F_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -40,3 +44,7 @@ Foo, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum F_Tag F_Tag; | ||
| #else | ||
| typedef uint8_t F_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -60,5 +68,5 @@ | ||
| enum H_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -70,3 +78,7 @@ Hello, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum H_Tag H_Tag; | ||
| #else | ||
| typedef uint8_t H_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -73,0 +85,0 @@ |
@@ -6,7 +6,15 @@ #include <stdarg.h> | ||
| enum C { | ||
| enum C | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| X = 2, | ||
| Y, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C C; | ||
| #else | ||
| typedef uint32_t C; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -22,3 +30,7 @@ struct A { | ||
| enum F_Tag { | ||
| enum F_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Foo, | ||
@@ -28,3 +40,7 @@ Bar, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum F_Tag F_Tag; | ||
| #else | ||
| typedef uint8_t F_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -46,3 +62,7 @@ struct Bar_Body { | ||
| enum H_Tag { | ||
| enum H_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Hello, | ||
@@ -52,3 +72,7 @@ There, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum H_Tag H_Tag; | ||
| #else | ||
| typedef uint8_t H_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -55,0 +79,0 @@ struct There_Body { |
@@ -7,5 +7,5 @@ #include <stdarg.h> | ||
| enum C | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -16,3 +16,7 @@ X = 2, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C C; | ||
| #else | ||
| typedef uint32_t C; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -30,5 +34,5 @@ | ||
| enum F_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -40,3 +44,7 @@ Foo, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum F_Tag F_Tag; | ||
| #else | ||
| typedef uint8_t F_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -60,5 +68,5 @@ | ||
| enum H_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -70,3 +78,7 @@ Hello, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum H_Tag H_Tag; | ||
| #else | ||
| typedef uint8_t H_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -73,0 +85,0 @@ |
@@ -6,7 +6,15 @@ #include <stdarg.h> | ||
| enum C { | ||
| enum C | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| X = 2, | ||
| Y, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C C; | ||
| #else | ||
| typedef uint32_t C; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -22,3 +30,7 @@ typedef struct { | ||
| enum F_Tag { | ||
| enum F_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Foo, | ||
@@ -28,3 +40,7 @@ Bar, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum F_Tag F_Tag; | ||
| #else | ||
| typedef uint8_t F_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -46,3 +62,7 @@ typedef struct { | ||
| enum H_Tag { | ||
| enum H_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Hello, | ||
@@ -52,3 +72,7 @@ There, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum H_Tag H_Tag; | ||
| #else | ||
| typedef uint8_t H_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -55,0 +79,0 @@ typedef struct { |
@@ -7,5 +7,5 @@ #include <stdarg.h> | ||
| enum C | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -16,3 +16,7 @@ X = 2, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C C; | ||
| #else | ||
| typedef uint32_t C; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -30,5 +34,5 @@ | ||
| enum F_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -40,3 +44,7 @@ Foo, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum F_Tag F_Tag; | ||
| #else | ||
| typedef uint8_t F_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -60,5 +68,5 @@ | ||
| enum H_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -70,3 +78,7 @@ Hello, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum H_Tag H_Tag; | ||
| #else | ||
| typedef uint8_t H_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -73,0 +85,0 @@ |
@@ -12,3 +12,7 @@ #define MY_ASSERT(...) do { } while (0) | ||
| enum H_Tag { | ||
| enum H_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| H_Foo, | ||
@@ -18,3 +22,7 @@ H_Bar, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum H_Tag H_Tag; | ||
| #else | ||
| typedef uint8_t H_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -36,3 +44,7 @@ typedef struct H_Bar_Body { | ||
| enum J_Tag { | ||
| enum J_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| J_Foo, | ||
@@ -42,3 +54,7 @@ J_Bar, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum J_Tag J_Tag; | ||
| #else | ||
| typedef uint8_t J_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -60,3 +76,7 @@ typedef struct J_Bar_Body { | ||
| enum K_Tag { | ||
| enum K_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| K_Foo, | ||
@@ -66,3 +86,7 @@ K_Bar, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum K_Tag K_Tag; | ||
| #else | ||
| typedef uint8_t K_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -69,0 +93,0 @@ typedef struct K_Bar_Body { |
@@ -13,5 +13,5 @@ #define MY_ASSERT(...) do { } while (0) | ||
| enum H_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -23,3 +23,7 @@ H_Foo, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum H_Tag H_Tag; | ||
| #else | ||
| typedef uint8_t H_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -43,5 +47,5 @@ | ||
| enum J_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -53,3 +57,7 @@ J_Foo, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum J_Tag J_Tag; | ||
| #else | ||
| typedef uint8_t J_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -73,5 +81,5 @@ | ||
| enum K_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -83,3 +91,7 @@ K_Foo, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum K_Tag K_Tag; | ||
| #else | ||
| typedef uint8_t K_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -86,0 +98,0 @@ |
@@ -12,3 +12,7 @@ #define MY_ASSERT(...) do { } while (0) | ||
| enum H_Tag { | ||
| enum H_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| H_Foo, | ||
@@ -18,3 +22,7 @@ H_Bar, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum H_Tag H_Tag; | ||
| #else | ||
| typedef uint8_t H_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -36,3 +44,7 @@ struct H_Bar_Body { | ||
| enum J_Tag { | ||
| enum J_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| J_Foo, | ||
@@ -42,3 +54,7 @@ J_Bar, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum J_Tag J_Tag; | ||
| #else | ||
| typedef uint8_t J_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -60,3 +76,7 @@ struct J_Bar_Body { | ||
| enum K_Tag { | ||
| enum K_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| K_Foo, | ||
@@ -66,3 +86,7 @@ K_Bar, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum K_Tag K_Tag; | ||
| #else | ||
| typedef uint8_t K_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -69,0 +93,0 @@ struct K_Bar_Body { |
@@ -13,5 +13,5 @@ #define MY_ASSERT(...) do { } while (0) | ||
| enum H_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -23,3 +23,7 @@ H_Foo, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum H_Tag H_Tag; | ||
| #else | ||
| typedef uint8_t H_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -43,5 +47,5 @@ | ||
| enum J_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -53,3 +57,7 @@ J_Foo, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum J_Tag J_Tag; | ||
| #else | ||
| typedef uint8_t J_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -73,5 +81,5 @@ | ||
| enum K_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -83,3 +91,7 @@ K_Foo, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum K_Tag K_Tag; | ||
| #else | ||
| typedef uint8_t K_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -86,0 +98,0 @@ |
@@ -12,3 +12,7 @@ #define MY_ASSERT(...) do { } while (0) | ||
| enum H_Tag { | ||
| enum H_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| H_Foo, | ||
@@ -18,3 +22,7 @@ H_Bar, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum H_Tag H_Tag; | ||
| #else | ||
| typedef uint8_t H_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -36,3 +44,7 @@ typedef struct { | ||
| enum J_Tag { | ||
| enum J_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| J_Foo, | ||
@@ -42,3 +54,7 @@ J_Bar, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum J_Tag J_Tag; | ||
| #else | ||
| typedef uint8_t J_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -60,3 +76,7 @@ typedef struct { | ||
| enum K_Tag { | ||
| enum K_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| K_Foo, | ||
@@ -66,3 +86,7 @@ K_Bar, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum K_Tag K_Tag; | ||
| #else | ||
| typedef uint8_t K_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -69,0 +93,0 @@ typedef struct { |
@@ -13,5 +13,5 @@ #define MY_ASSERT(...) do { } while (0) | ||
| enum H_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -23,3 +23,7 @@ H_Foo, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum H_Tag H_Tag; | ||
| #else | ||
| typedef uint8_t H_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -43,5 +47,5 @@ | ||
| enum J_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -53,3 +57,7 @@ J_Foo, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum J_Tag J_Tag; | ||
| #else | ||
| typedef uint8_t J_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -73,5 +81,5 @@ | ||
| enum K_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -83,3 +91,7 @@ K_Foo, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum K_Tag K_Tag; | ||
| #else | ||
| typedef uint8_t K_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -86,0 +98,0 @@ |
@@ -16,3 +16,7 @@ #if 0 | ||
| #if (defined(PLATFORM_UNIX) && defined(X11)) | ||
| enum FooType { | ||
| enum FooType | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| A, | ||
@@ -22,7 +26,15 @@ B, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum FooType FooType; | ||
| #else | ||
| typedef uint32_t FooType; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif | ||
| #if (defined(PLATFORM_WIN) || defined(M_32)) | ||
| enum BarType { | ||
| enum BarType | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| A, | ||
@@ -32,3 +44,7 @@ B, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum BarType BarType; | ||
| #else | ||
| typedef uint32_t BarType; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif | ||
@@ -65,3 +81,7 @@ | ||
| enum C_Tag { | ||
| enum C_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| C1, | ||
@@ -76,3 +96,7 @@ C2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C_Tag C_Tag; | ||
| #else | ||
| typedef uint8_t C_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -79,0 +103,0 @@ #if defined(PLATFORM_UNIX) |
@@ -17,5 +17,5 @@ #if 0 | ||
| enum FooType | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -27,3 +27,7 @@ A, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum FooType FooType; | ||
| #else | ||
| typedef uint32_t FooType; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -34,5 +38,5 @@ #endif | ||
| enum BarType | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -44,3 +48,7 @@ A, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum BarType BarType; | ||
| #else | ||
| typedef uint32_t BarType; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -79,5 +87,5 @@ #endif | ||
| enum C_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -94,3 +102,7 @@ C1, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C_Tag C_Tag; | ||
| #else | ||
| typedef uint8_t C_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -97,0 +109,0 @@ |
@@ -16,3 +16,7 @@ #if 0 | ||
| #if (defined(PLATFORM_UNIX) && defined(X11)) | ||
| enum FooType { | ||
| enum FooType | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| A, | ||
@@ -22,7 +26,15 @@ B, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum FooType FooType; | ||
| #else | ||
| typedef uint32_t FooType; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif | ||
| #if (defined(PLATFORM_WIN) || defined(M_32)) | ||
| enum BarType { | ||
| enum BarType | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| A, | ||
@@ -32,3 +44,7 @@ B, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum BarType BarType; | ||
| #else | ||
| typedef uint32_t BarType; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif | ||
@@ -65,3 +81,7 @@ | ||
| enum C_Tag { | ||
| enum C_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| C1, | ||
@@ -76,3 +96,7 @@ C2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C_Tag C_Tag; | ||
| #else | ||
| typedef uint8_t C_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -79,0 +103,0 @@ #if defined(PLATFORM_UNIX) |
@@ -17,5 +17,5 @@ #if 0 | ||
| enum FooType | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -27,3 +27,7 @@ A, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum FooType FooType; | ||
| #else | ||
| typedef uint32_t FooType; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -34,5 +38,5 @@ #endif | ||
| enum BarType | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -44,3 +48,7 @@ A, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum BarType BarType; | ||
| #else | ||
| typedef uint32_t BarType; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -79,5 +87,5 @@ #endif | ||
| enum C_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -94,3 +102,7 @@ C1, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C_Tag C_Tag; | ||
| #else | ||
| typedef uint8_t C_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -97,0 +109,0 @@ |
@@ -16,3 +16,7 @@ #if 0 | ||
| #if (defined(PLATFORM_UNIX) && defined(X11)) | ||
| enum FooType { | ||
| enum FooType | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| A, | ||
@@ -22,7 +26,15 @@ B, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum FooType FooType; | ||
| #else | ||
| typedef uint32_t FooType; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif | ||
| #if (defined(PLATFORM_WIN) || defined(M_32)) | ||
| enum BarType { | ||
| enum BarType | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| A, | ||
@@ -32,3 +44,7 @@ B, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum BarType BarType; | ||
| #else | ||
| typedef uint32_t BarType; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif | ||
@@ -65,3 +81,7 @@ | ||
| enum C_Tag { | ||
| enum C_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| C1, | ||
@@ -76,3 +96,7 @@ C2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C_Tag C_Tag; | ||
| #else | ||
| typedef uint8_t C_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -79,0 +103,0 @@ #if defined(PLATFORM_UNIX) |
@@ -17,5 +17,5 @@ #if 0 | ||
| enum FooType | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -27,3 +27,7 @@ A, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum FooType FooType; | ||
| #else | ||
| typedef uint32_t FooType; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -34,5 +38,5 @@ #endif | ||
| enum BarType | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -44,3 +48,7 @@ A, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum BarType BarType; | ||
| #else | ||
| typedef uint32_t BarType; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -79,5 +87,5 @@ #endif | ||
| enum C_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -94,3 +102,7 @@ C1, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C_Tag C_Tag; | ||
| #else | ||
| typedef uint8_t C_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -97,0 +109,0 @@ |
@@ -6,7 +6,15 @@ #include <stdarg.h> | ||
| enum BindingType { | ||
| enum BindingType | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Buffer = 0, | ||
| NotBuffer = 1, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum BindingType BindingType; | ||
| #else | ||
| typedef uint32_t BindingType; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -13,0 +21,0 @@ typedef struct BindGroupLayoutEntry { |
@@ -7,5 +7,5 @@ #include <stdarg.h> | ||
| enum BindingType | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -16,3 +16,7 @@ Buffer = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum BindingType BindingType; | ||
| #else | ||
| typedef uint32_t BindingType; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -19,0 +23,0 @@ |
@@ -6,7 +6,15 @@ #include <stdarg.h> | ||
| enum BindingType { | ||
| enum BindingType | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Buffer = 0, | ||
| NotBuffer = 1, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum BindingType BindingType; | ||
| #else | ||
| typedef uint32_t BindingType; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -13,0 +21,0 @@ struct BindGroupLayoutEntry { |
@@ -7,5 +7,5 @@ #include <stdarg.h> | ||
| enum BindingType | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -16,3 +16,7 @@ Buffer = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum BindingType BindingType; | ||
| #else | ||
| typedef uint32_t BindingType; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -19,0 +23,0 @@ |
@@ -6,7 +6,15 @@ #include <stdarg.h> | ||
| enum BindingType { | ||
| enum BindingType | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Buffer = 0, | ||
| NotBuffer = 1, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum BindingType BindingType; | ||
| #else | ||
| typedef uint32_t BindingType; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -13,0 +21,0 @@ typedef struct { |
@@ -7,5 +7,5 @@ #include <stdarg.h> | ||
| enum BindingType | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -16,3 +16,7 @@ Buffer = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum BindingType BindingType; | ||
| #else | ||
| typedef uint32_t BindingType; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -19,0 +23,0 @@ |
@@ -16,13 +16,33 @@ #define DEPRECATED_FUNC __attribute__((deprecated)) | ||
| enum DEPRECATED_ENUM DeprecatedEnum { | ||
| enum DEPRECATED_ENUM DeprecatedEnum | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : int32_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| A = 0, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum DeprecatedEnum DeprecatedEnum; | ||
| #else | ||
| typedef int32_t DeprecatedEnum; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| enum DEPRECATED_ENUM_WITH_NOTE("This is a note") DeprecatedEnumWithNote { | ||
| enum DEPRECATED_ENUM_WITH_NOTE("This is a note") DeprecatedEnumWithNote | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : int32_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| B = 0, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum DeprecatedEnumWithNote DeprecatedEnumWithNote; | ||
| #else | ||
| typedef int32_t DeprecatedEnumWithNote; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| enum EnumWithDeprecatedVariants { | ||
| enum EnumWithDeprecatedVariants | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : int32_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| C = 0, | ||
@@ -33,3 +53,7 @@ D DEPRECATED_ENUM_VARIANT = 1, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum EnumWithDeprecatedVariants EnumWithDeprecatedVariants; | ||
| #else | ||
| typedef int32_t EnumWithDeprecatedVariants; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -44,3 +68,7 @@ typedef struct DEPRECATED_STRUCT DeprecatedStruct { | ||
| enum EnumWithDeprecatedStructVariants_Tag { | ||
| enum EnumWithDeprecatedStructVariants_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Foo, | ||
@@ -50,3 +78,7 @@ Bar DEPRECATED_ENUM_VARIANT, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum EnumWithDeprecatedStructVariants_Tag EnumWithDeprecatedStructVariants_Tag; | ||
| #else | ||
| typedef uint8_t EnumWithDeprecatedStructVariants_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -53,0 +85,0 @@ typedef struct DEPRECATED_STRUCT Bar_Body { |
@@ -17,5 +17,5 @@ #define DEPRECATED_FUNC __attribute__((deprecated)) | ||
| enum DEPRECATED_ENUM DeprecatedEnum | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : int32_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -25,9 +25,13 @@ A = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum DeprecatedEnum DeprecatedEnum; | ||
| #else | ||
| typedef int32_t DeprecatedEnum; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
| enum DEPRECATED_ENUM_WITH_NOTE("This is a note") DeprecatedEnumWithNote | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : int32_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -37,9 +41,13 @@ B = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum DeprecatedEnumWithNote DeprecatedEnumWithNote; | ||
| #else | ||
| typedef int32_t DeprecatedEnumWithNote; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
| enum EnumWithDeprecatedVariants | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : int32_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -52,3 +60,7 @@ C = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum EnumWithDeprecatedVariants EnumWithDeprecatedVariants; | ||
| #else | ||
| typedef int32_t EnumWithDeprecatedVariants; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -65,5 +77,5 @@ | ||
| enum EnumWithDeprecatedStructVariants_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -75,3 +87,7 @@ Foo, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum EnumWithDeprecatedStructVariants_Tag EnumWithDeprecatedStructVariants_Tag; | ||
| #else | ||
| typedef uint8_t EnumWithDeprecatedStructVariants_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -78,0 +94,0 @@ |
@@ -16,13 +16,33 @@ #define DEPRECATED_FUNC __attribute__((deprecated)) | ||
| enum DEPRECATED_ENUM DeprecatedEnum { | ||
| enum DEPRECATED_ENUM DeprecatedEnum | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : int32_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| A = 0, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum DeprecatedEnum DeprecatedEnum; | ||
| #else | ||
| typedef int32_t DeprecatedEnum; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| enum DEPRECATED_ENUM_WITH_NOTE("This is a note") DeprecatedEnumWithNote { | ||
| enum DEPRECATED_ENUM_WITH_NOTE("This is a note") DeprecatedEnumWithNote | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : int32_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| B = 0, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum DeprecatedEnumWithNote DeprecatedEnumWithNote; | ||
| #else | ||
| typedef int32_t DeprecatedEnumWithNote; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| enum EnumWithDeprecatedVariants { | ||
| enum EnumWithDeprecatedVariants | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : int32_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| C = 0, | ||
@@ -33,3 +53,7 @@ D DEPRECATED_ENUM_VARIANT = 1, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum EnumWithDeprecatedVariants EnumWithDeprecatedVariants; | ||
| #else | ||
| typedef int32_t EnumWithDeprecatedVariants; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -44,3 +68,7 @@ struct DEPRECATED_STRUCT DeprecatedStruct { | ||
| enum EnumWithDeprecatedStructVariants_Tag { | ||
| enum EnumWithDeprecatedStructVariants_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Foo, | ||
@@ -50,3 +78,7 @@ Bar DEPRECATED_ENUM_VARIANT, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum EnumWithDeprecatedStructVariants_Tag EnumWithDeprecatedStructVariants_Tag; | ||
| #else | ||
| typedef uint8_t EnumWithDeprecatedStructVariants_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -53,0 +85,0 @@ struct DEPRECATED_STRUCT Bar_Body { |
@@ -17,5 +17,5 @@ #define DEPRECATED_FUNC __attribute__((deprecated)) | ||
| enum DEPRECATED_ENUM DeprecatedEnum | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : int32_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -25,9 +25,13 @@ A = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum DeprecatedEnum DeprecatedEnum; | ||
| #else | ||
| typedef int32_t DeprecatedEnum; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
| enum DEPRECATED_ENUM_WITH_NOTE("This is a note") DeprecatedEnumWithNote | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : int32_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -37,9 +41,13 @@ B = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum DeprecatedEnumWithNote DeprecatedEnumWithNote; | ||
| #else | ||
| typedef int32_t DeprecatedEnumWithNote; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
| enum EnumWithDeprecatedVariants | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : int32_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -52,3 +60,7 @@ C = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum EnumWithDeprecatedVariants EnumWithDeprecatedVariants; | ||
| #else | ||
| typedef int32_t EnumWithDeprecatedVariants; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -65,5 +77,5 @@ | ||
| enum EnumWithDeprecatedStructVariants_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -75,3 +87,7 @@ Foo, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum EnumWithDeprecatedStructVariants_Tag EnumWithDeprecatedStructVariants_Tag; | ||
| #else | ||
| typedef uint8_t EnumWithDeprecatedStructVariants_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -78,0 +94,0 @@ |
@@ -16,13 +16,33 @@ #define DEPRECATED_FUNC __attribute__((deprecated)) | ||
| enum DEPRECATED_ENUM DeprecatedEnum { | ||
| enum DEPRECATED_ENUM DeprecatedEnum | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : int32_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| A = 0, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum DeprecatedEnum DeprecatedEnum; | ||
| #else | ||
| typedef int32_t DeprecatedEnum; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| enum DEPRECATED_ENUM_WITH_NOTE("This is a note") DeprecatedEnumWithNote { | ||
| enum DEPRECATED_ENUM_WITH_NOTE("This is a note") DeprecatedEnumWithNote | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : int32_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| B = 0, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum DeprecatedEnumWithNote DeprecatedEnumWithNote; | ||
| #else | ||
| typedef int32_t DeprecatedEnumWithNote; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| enum EnumWithDeprecatedVariants { | ||
| enum EnumWithDeprecatedVariants | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : int32_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| C = 0, | ||
@@ -33,3 +53,7 @@ D DEPRECATED_ENUM_VARIANT = 1, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum EnumWithDeprecatedVariants EnumWithDeprecatedVariants; | ||
| #else | ||
| typedef int32_t EnumWithDeprecatedVariants; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -44,3 +68,7 @@ typedef struct DEPRECATED_STRUCT { | ||
| enum EnumWithDeprecatedStructVariants_Tag { | ||
| enum EnumWithDeprecatedStructVariants_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Foo, | ||
@@ -50,3 +78,7 @@ Bar DEPRECATED_ENUM_VARIANT, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum EnumWithDeprecatedStructVariants_Tag EnumWithDeprecatedStructVariants_Tag; | ||
| #else | ||
| typedef uint8_t EnumWithDeprecatedStructVariants_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -53,0 +85,0 @@ typedef struct DEPRECATED_STRUCT { |
@@ -17,5 +17,5 @@ #define DEPRECATED_FUNC __attribute__((deprecated)) | ||
| enum DEPRECATED_ENUM DeprecatedEnum | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : int32_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -25,9 +25,13 @@ A = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum DeprecatedEnum DeprecatedEnum; | ||
| #else | ||
| typedef int32_t DeprecatedEnum; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
| enum DEPRECATED_ENUM_WITH_NOTE("This is a note") DeprecatedEnumWithNote | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : int32_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -37,9 +41,13 @@ B = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum DeprecatedEnumWithNote DeprecatedEnumWithNote; | ||
| #else | ||
| typedef int32_t DeprecatedEnumWithNote; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
| enum EnumWithDeprecatedVariants | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : int32_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -52,3 +60,7 @@ C = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum EnumWithDeprecatedVariants EnumWithDeprecatedVariants; | ||
| #else | ||
| typedef int32_t EnumWithDeprecatedVariants; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -65,5 +77,5 @@ | ||
| enum EnumWithDeprecatedStructVariants_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -75,3 +87,7 @@ Foo, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum EnumWithDeprecatedStructVariants_Tag EnumWithDeprecatedStructVariants_Tag; | ||
| #else | ||
| typedef uint8_t EnumWithDeprecatedStructVariants_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -78,0 +94,0 @@ |
@@ -11,3 +11,7 @@ #include <stdarg.h> | ||
| enum Bar_Tag { | ||
| enum Bar_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Baz, | ||
@@ -18,3 +22,7 @@ Bazz, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Bar_Tag Bar_Tag; | ||
| #else | ||
| typedef uint8_t Bar_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -21,0 +29,0 @@ typedef struct Bazz_Body { |
@@ -12,5 +12,5 @@ #include <stdarg.h> | ||
| enum Bar_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -23,3 +23,7 @@ Baz, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Bar_Tag Bar_Tag; | ||
| #else | ||
| typedef uint8_t Bar_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -26,0 +30,0 @@ |
@@ -11,3 +11,7 @@ #include <stdarg.h> | ||
| enum Bar_Tag { | ||
| enum Bar_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Baz, | ||
@@ -18,3 +22,7 @@ Bazz, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Bar_Tag Bar_Tag; | ||
| #else | ||
| typedef uint8_t Bar_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -21,0 +29,0 @@ struct Bazz_Body { |
@@ -12,5 +12,5 @@ #include <stdarg.h> | ||
| enum Bar_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -23,3 +23,7 @@ Baz, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Bar_Tag Bar_Tag; | ||
| #else | ||
| typedef uint8_t Bar_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -26,0 +30,0 @@ |
@@ -11,3 +11,7 @@ #include <stdarg.h> | ||
| enum Bar_Tag { | ||
| enum Bar_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Baz, | ||
@@ -18,3 +22,7 @@ Bazz, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Bar_Tag Bar_Tag; | ||
| #else | ||
| typedef uint8_t Bar_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -21,0 +29,0 @@ typedef struct { |
@@ -12,5 +12,5 @@ #include <stdarg.h> | ||
| enum Bar_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -23,3 +23,7 @@ Baz, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Bar_Tag Bar_Tag; | ||
| #else | ||
| typedef uint8_t Bar_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -26,0 +30,0 @@ |
@@ -6,7 +6,15 @@ #include <stdarg.h> | ||
| enum C { | ||
| enum C | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| X = 2, | ||
| Y, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C C; | ||
| #else | ||
| typedef uint32_t C; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -28,3 +36,7 @@ typedef struct A { | ||
| enum F_Tag { | ||
| enum F_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Foo, | ||
@@ -34,3 +46,7 @@ Bar, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum F_Tag F_Tag; | ||
| #else | ||
| typedef uint8_t F_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -52,3 +68,7 @@ typedef struct Bar_Body { | ||
| enum H_Tag { | ||
| enum H_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Hello, | ||
@@ -58,3 +78,7 @@ There, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum H_Tag H_Tag; | ||
| #else | ||
| typedef uint8_t H_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -76,7 +100,15 @@ typedef struct There_Body { | ||
| enum I_Tag { | ||
| enum I_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| ThereAgain, | ||
| SomethingElse, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum I_Tag I_Tag; | ||
| #else | ||
| typedef uint8_t I_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -83,0 +115,0 @@ typedef struct ThereAgain_Body { |
@@ -7,5 +7,5 @@ #include <stdarg.h> | ||
| enum C | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -16,3 +16,7 @@ X = 2, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C C; | ||
| #else | ||
| typedef uint32_t C; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -36,5 +40,5 @@ | ||
| enum F_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -46,3 +50,7 @@ Foo, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum F_Tag F_Tag; | ||
| #else | ||
| typedef uint8_t F_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -66,5 +74,5 @@ | ||
| enum H_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -76,3 +84,7 @@ Hello, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum H_Tag H_Tag; | ||
| #else | ||
| typedef uint8_t H_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -96,5 +108,5 @@ | ||
| enum I_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -105,3 +117,7 @@ ThereAgain, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum I_Tag I_Tag; | ||
| #else | ||
| typedef uint8_t I_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -108,0 +124,0 @@ |
@@ -6,7 +6,15 @@ #include <stdarg.h> | ||
| enum C { | ||
| enum C | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| X = 2, | ||
| Y, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C C; | ||
| #else | ||
| typedef uint32_t C; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -28,3 +36,7 @@ struct A { | ||
| enum F_Tag { | ||
| enum F_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Foo, | ||
@@ -34,3 +46,7 @@ Bar, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum F_Tag F_Tag; | ||
| #else | ||
| typedef uint8_t F_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -52,3 +68,7 @@ struct Bar_Body { | ||
| enum H_Tag { | ||
| enum H_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Hello, | ||
@@ -58,3 +78,7 @@ There, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum H_Tag H_Tag; | ||
| #else | ||
| typedef uint8_t H_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -76,7 +100,15 @@ struct There_Body { | ||
| enum I_Tag { | ||
| enum I_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| ThereAgain, | ||
| SomethingElse, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum I_Tag I_Tag; | ||
| #else | ||
| typedef uint8_t I_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -83,0 +115,0 @@ struct ThereAgain_Body { |
@@ -7,5 +7,5 @@ #include <stdarg.h> | ||
| enum C | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -16,3 +16,7 @@ X = 2, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C C; | ||
| #else | ||
| typedef uint32_t C; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -36,5 +40,5 @@ | ||
| enum F_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -46,3 +50,7 @@ Foo, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum F_Tag F_Tag; | ||
| #else | ||
| typedef uint8_t F_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -66,5 +74,5 @@ | ||
| enum H_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -76,3 +84,7 @@ Hello, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum H_Tag H_Tag; | ||
| #else | ||
| typedef uint8_t H_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -96,5 +108,5 @@ | ||
| enum I_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -105,3 +117,7 @@ ThereAgain, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum I_Tag I_Tag; | ||
| #else | ||
| typedef uint8_t I_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -108,0 +124,0 @@ |
@@ -6,7 +6,15 @@ #include <stdarg.h> | ||
| enum C { | ||
| enum C | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| X = 2, | ||
| Y, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C C; | ||
| #else | ||
| typedef uint32_t C; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -28,3 +36,7 @@ typedef struct { | ||
| enum F_Tag { | ||
| enum F_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Foo, | ||
@@ -34,3 +46,7 @@ Bar, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum F_Tag F_Tag; | ||
| #else | ||
| typedef uint8_t F_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -52,3 +68,7 @@ typedef struct { | ||
| enum H_Tag { | ||
| enum H_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Hello, | ||
@@ -58,3 +78,7 @@ There, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum H_Tag H_Tag; | ||
| #else | ||
| typedef uint8_t H_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -76,7 +100,15 @@ typedef struct { | ||
| enum I_Tag { | ||
| enum I_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| ThereAgain, | ||
| SomethingElse, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum I_Tag I_Tag; | ||
| #else | ||
| typedef uint8_t I_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -83,0 +115,0 @@ typedef struct { |
@@ -7,5 +7,5 @@ #include <stdarg.h> | ||
| enum C | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -16,3 +16,7 @@ X = 2, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C C; | ||
| #else | ||
| typedef uint32_t C; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -36,5 +40,5 @@ | ||
| enum F_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -46,3 +50,7 @@ Foo, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum F_Tag F_Tag; | ||
| #else | ||
| typedef uint8_t F_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -66,5 +74,5 @@ | ||
| enum H_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -76,3 +84,7 @@ Hello, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum H_Tag H_Tag; | ||
| #else | ||
| typedef uint8_t H_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -96,5 +108,5 @@ | ||
| enum I_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -105,3 +117,7 @@ ThereAgain, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum I_Tag I_Tag; | ||
| #else | ||
| typedef uint8_t I_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -108,0 +124,0 @@ |
@@ -10,7 +10,15 @@ #define NOINLINE __attribute__((noinline)) | ||
| enum FillRule { | ||
| enum FillRule | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| A, | ||
| B, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum FillRule FillRule; | ||
| #else | ||
| typedef uint8_t FillRule; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -40,3 +48,7 @@ /** | ||
| enum Foo_u32_Tag { | ||
| enum Foo_u32_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Bar_u32, | ||
@@ -49,3 +61,7 @@ Polygon1_u32, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Foo_u32_Tag Foo_u32_Tag; | ||
| #else | ||
| typedef uint8_t Foo_u32_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -84,3 +100,7 @@ typedef struct Slice3_Body_u32 { | ||
| enum Baz_i32_Tag { | ||
| enum Baz_i32_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Bar2_i32, | ||
@@ -93,3 +113,7 @@ Polygon21_i32, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Baz_i32_Tag Baz_i32_Tag; | ||
| #else | ||
| typedef uint8_t Baz_i32_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -126,3 +150,7 @@ typedef struct Slice23_Body_i32 { | ||
| enum Taz_Tag { | ||
| enum Taz_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Bar3, | ||
@@ -132,3 +160,7 @@ Taz1, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Taz_Tag Taz_Tag; | ||
| #else | ||
| typedef uint8_t Taz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -147,7 +179,15 @@ typedef union Taz { | ||
| enum Tazz_Tag { | ||
| enum Tazz_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Bar4, | ||
| Taz2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Tazz_Tag Tazz_Tag; | ||
| #else | ||
| typedef uint8_t Tazz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -162,7 +202,15 @@ typedef union Tazz { | ||
| enum Tazzz_Tag { | ||
| enum Tazzz_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Bar5, | ||
| Taz5, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Tazzz_Tag Tazzz_Tag; | ||
| #else | ||
| typedef uint8_t Tazzz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -177,7 +225,15 @@ typedef union Tazzz { | ||
| enum Tazzzz_Tag { | ||
| enum Tazzzz_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Taz6, | ||
| Taz7, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Tazzzz_Tag Tazzzz_Tag; | ||
| #else | ||
| typedef uint8_t Tazzzz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -196,7 +252,15 @@ typedef union Tazzzz { | ||
| enum Qux_Tag { | ||
| enum Qux_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Qux1, | ||
| Qux2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Qux_Tag Qux_Tag; | ||
| #else | ||
| typedef uint8_t Qux_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -203,0 +267,0 @@ typedef union Qux { |
@@ -11,5 +11,5 @@ #define NOINLINE __attribute__((noinline)) | ||
| enum FillRule | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -20,3 +20,7 @@ A, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum FillRule FillRule; | ||
| #else | ||
| typedef uint8_t FillRule; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -48,5 +52,5 @@ | ||
| enum Foo_u32_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -61,3 +65,7 @@ Bar_u32, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Foo_u32_Tag Foo_u32_Tag; | ||
| #else | ||
| typedef uint8_t Foo_u32_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -98,5 +106,5 @@ | ||
| enum Baz_i32_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -111,3 +119,7 @@ Bar2_i32, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Baz_i32_Tag Baz_i32_Tag; | ||
| #else | ||
| typedef uint8_t Baz_i32_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -146,5 +158,5 @@ | ||
| enum Taz_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -156,3 +168,7 @@ Bar3, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Taz_Tag Taz_Tag; | ||
| #else | ||
| typedef uint8_t Taz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -173,5 +189,5 @@ | ||
| enum Tazz_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -182,3 +198,7 @@ Bar4, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Tazz_Tag Tazz_Tag; | ||
| #else | ||
| typedef uint8_t Tazz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -195,5 +215,5 @@ | ||
| enum Tazzz_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -204,3 +224,7 @@ Bar5, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Tazzz_Tag Tazzz_Tag; | ||
| #else | ||
| typedef uint8_t Tazzz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -217,5 +241,5 @@ | ||
| enum Tazzzz_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -226,3 +250,7 @@ Taz6, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Tazzzz_Tag Tazzzz_Tag; | ||
| #else | ||
| typedef uint8_t Tazzzz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -243,5 +271,5 @@ | ||
| enum Qux_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -252,3 +280,7 @@ Qux1, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Qux_Tag Qux_Tag; | ||
| #else | ||
| typedef uint8_t Qux_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -255,0 +287,0 @@ |
@@ -10,7 +10,15 @@ #define NOINLINE __attribute__((noinline)) | ||
| enum FillRule { | ||
| enum FillRule | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| A, | ||
| B, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum FillRule FillRule; | ||
| #else | ||
| typedef uint8_t FillRule; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -40,3 +48,7 @@ /** | ||
| enum Foo_u32_Tag { | ||
| enum Foo_u32_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Bar_u32, | ||
@@ -49,3 +61,7 @@ Polygon1_u32, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Foo_u32_Tag Foo_u32_Tag; | ||
| #else | ||
| typedef uint8_t Foo_u32_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -84,3 +100,7 @@ struct Slice3_Body_u32 { | ||
| enum Baz_i32_Tag { | ||
| enum Baz_i32_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Bar2_i32, | ||
@@ -93,3 +113,7 @@ Polygon21_i32, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Baz_i32_Tag Baz_i32_Tag; | ||
| #else | ||
| typedef uint8_t Baz_i32_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -126,3 +150,7 @@ struct Slice23_Body_i32 { | ||
| enum Taz_Tag { | ||
| enum Taz_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Bar3, | ||
@@ -132,3 +160,7 @@ Taz1, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Taz_Tag Taz_Tag; | ||
| #else | ||
| typedef uint8_t Taz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -147,7 +179,15 @@ union Taz { | ||
| enum Tazz_Tag { | ||
| enum Tazz_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Bar4, | ||
| Taz2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Tazz_Tag Tazz_Tag; | ||
| #else | ||
| typedef uint8_t Tazz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -162,7 +202,15 @@ union Tazz { | ||
| enum Tazzz_Tag { | ||
| enum Tazzz_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Bar5, | ||
| Taz5, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Tazzz_Tag Tazzz_Tag; | ||
| #else | ||
| typedef uint8_t Tazzz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -177,7 +225,15 @@ union Tazzz { | ||
| enum Tazzzz_Tag { | ||
| enum Tazzzz_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Taz6, | ||
| Taz7, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Tazzzz_Tag Tazzzz_Tag; | ||
| #else | ||
| typedef uint8_t Tazzzz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -196,7 +252,15 @@ union Tazzzz { | ||
| enum Qux_Tag { | ||
| enum Qux_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Qux1, | ||
| Qux2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Qux_Tag Qux_Tag; | ||
| #else | ||
| typedef uint8_t Qux_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -203,0 +267,0 @@ union Qux { |
@@ -11,5 +11,5 @@ #define NOINLINE __attribute__((noinline)) | ||
| enum FillRule | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -20,3 +20,7 @@ A, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum FillRule FillRule; | ||
| #else | ||
| typedef uint8_t FillRule; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -48,5 +52,5 @@ | ||
| enum Foo_u32_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -61,3 +65,7 @@ Bar_u32, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Foo_u32_Tag Foo_u32_Tag; | ||
| #else | ||
| typedef uint8_t Foo_u32_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -98,5 +106,5 @@ | ||
| enum Baz_i32_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -111,3 +119,7 @@ Bar2_i32, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Baz_i32_Tag Baz_i32_Tag; | ||
| #else | ||
| typedef uint8_t Baz_i32_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -146,5 +158,5 @@ | ||
| enum Taz_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -156,3 +168,7 @@ Bar3, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Taz_Tag Taz_Tag; | ||
| #else | ||
| typedef uint8_t Taz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -173,5 +189,5 @@ | ||
| enum Tazz_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -182,3 +198,7 @@ Bar4, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Tazz_Tag Tazz_Tag; | ||
| #else | ||
| typedef uint8_t Tazz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -195,5 +215,5 @@ | ||
| enum Tazzz_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -204,3 +224,7 @@ Bar5, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Tazzz_Tag Tazzz_Tag; | ||
| #else | ||
| typedef uint8_t Tazzz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -217,5 +241,5 @@ | ||
| enum Tazzzz_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -226,3 +250,7 @@ Taz6, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Tazzzz_Tag Tazzzz_Tag; | ||
| #else | ||
| typedef uint8_t Tazzzz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -243,5 +271,5 @@ | ||
| enum Qux_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -252,3 +280,7 @@ Qux1, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Qux_Tag Qux_Tag; | ||
| #else | ||
| typedef uint8_t Qux_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -255,0 +287,0 @@ |
@@ -10,7 +10,15 @@ #define NOINLINE __attribute__((noinline)) | ||
| enum FillRule { | ||
| enum FillRule | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| A, | ||
| B, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum FillRule FillRule; | ||
| #else | ||
| typedef uint8_t FillRule; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -40,3 +48,7 @@ /** | ||
| enum Foo_u32_Tag { | ||
| enum Foo_u32_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Bar_u32, | ||
@@ -49,3 +61,7 @@ Polygon1_u32, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Foo_u32_Tag Foo_u32_Tag; | ||
| #else | ||
| typedef uint8_t Foo_u32_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -84,3 +100,7 @@ typedef struct { | ||
| enum Baz_i32_Tag { | ||
| enum Baz_i32_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Bar2_i32, | ||
@@ -93,3 +113,7 @@ Polygon21_i32, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Baz_i32_Tag Baz_i32_Tag; | ||
| #else | ||
| typedef uint8_t Baz_i32_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -126,3 +150,7 @@ typedef struct { | ||
| enum Taz_Tag { | ||
| enum Taz_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Bar3, | ||
@@ -132,3 +160,7 @@ Taz1, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Taz_Tag Taz_Tag; | ||
| #else | ||
| typedef uint8_t Taz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -147,7 +179,15 @@ typedef union { | ||
| enum Tazz_Tag { | ||
| enum Tazz_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Bar4, | ||
| Taz2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Tazz_Tag Tazz_Tag; | ||
| #else | ||
| typedef uint8_t Tazz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -162,7 +202,15 @@ typedef union { | ||
| enum Tazzz_Tag { | ||
| enum Tazzz_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Bar5, | ||
| Taz5, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Tazzz_Tag Tazzz_Tag; | ||
| #else | ||
| typedef uint8_t Tazzz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -177,7 +225,15 @@ typedef union { | ||
| enum Tazzzz_Tag { | ||
| enum Tazzzz_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Taz6, | ||
| Taz7, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Tazzzz_Tag Tazzzz_Tag; | ||
| #else | ||
| typedef uint8_t Tazzzz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -196,7 +252,15 @@ typedef union { | ||
| enum Qux_Tag { | ||
| enum Qux_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Qux1, | ||
| Qux2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Qux_Tag Qux_Tag; | ||
| #else | ||
| typedef uint8_t Qux_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -203,0 +267,0 @@ typedef union { |
@@ -11,5 +11,5 @@ #define NOINLINE __attribute__((noinline)) | ||
| enum FillRule | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -20,3 +20,7 @@ A, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum FillRule FillRule; | ||
| #else | ||
| typedef uint8_t FillRule; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -48,5 +52,5 @@ | ||
| enum Foo_u32_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -61,3 +65,7 @@ Bar_u32, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Foo_u32_Tag Foo_u32_Tag; | ||
| #else | ||
| typedef uint8_t Foo_u32_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -98,5 +106,5 @@ | ||
| enum Baz_i32_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -111,3 +119,7 @@ Bar2_i32, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Baz_i32_Tag Baz_i32_Tag; | ||
| #else | ||
| typedef uint8_t Baz_i32_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -146,5 +158,5 @@ | ||
| enum Taz_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -156,3 +168,7 @@ Bar3, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Taz_Tag Taz_Tag; | ||
| #else | ||
| typedef uint8_t Taz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -173,5 +189,5 @@ | ||
| enum Tazz_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -182,3 +198,7 @@ Bar4, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Tazz_Tag Tazz_Tag; | ||
| #else | ||
| typedef uint8_t Tazz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -195,5 +215,5 @@ | ||
| enum Tazzz_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -204,3 +224,7 @@ Bar5, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Tazzz_Tag Tazzz_Tag; | ||
| #else | ||
| typedef uint8_t Tazzz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -217,5 +241,5 @@ | ||
| enum Tazzzz_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -226,3 +250,7 @@ Taz6, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Tazzzz_Tag Tazzzz_Tag; | ||
| #else | ||
| typedef uint8_t Tazzzz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -243,5 +271,5 @@ | ||
| enum Qux_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -252,3 +280,7 @@ Qux1, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Qux_Tag Qux_Tag; | ||
| #else | ||
| typedef uint8_t Qux_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -255,0 +287,0 @@ |
@@ -20,3 +20,7 @@ #include <stdarg.h> | ||
| enum DisplayItem_Tag { | ||
| enum DisplayItem_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Fill, | ||
@@ -26,3 +30,7 @@ Image, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum DisplayItem_Tag DisplayItem_Tag; | ||
| #else | ||
| typedef uint8_t DisplayItem_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -29,0 +37,0 @@ typedef struct Fill_Body { |
@@ -21,5 +21,5 @@ #include <stdarg.h> | ||
| enum DisplayItem_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -31,3 +31,7 @@ Fill, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum DisplayItem_Tag DisplayItem_Tag; | ||
| #else | ||
| typedef uint8_t DisplayItem_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -34,0 +38,0 @@ |
@@ -20,3 +20,7 @@ #include <stdarg.h> | ||
| enum DisplayItem_Tag { | ||
| enum DisplayItem_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Fill, | ||
@@ -26,3 +30,7 @@ Image, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum DisplayItem_Tag DisplayItem_Tag; | ||
| #else | ||
| typedef uint8_t DisplayItem_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -29,0 +37,0 @@ struct Fill_Body { |
@@ -21,5 +21,5 @@ #include <stdarg.h> | ||
| enum DisplayItem_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -31,3 +31,7 @@ Fill, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum DisplayItem_Tag DisplayItem_Tag; | ||
| #else | ||
| typedef uint8_t DisplayItem_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -34,0 +38,0 @@ |
@@ -20,3 +20,7 @@ #include <stdarg.h> | ||
| enum DisplayItem_Tag { | ||
| enum DisplayItem_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Fill, | ||
@@ -26,3 +30,7 @@ Image, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum DisplayItem_Tag DisplayItem_Tag; | ||
| #else | ||
| typedef uint8_t DisplayItem_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -29,0 +37,0 @@ typedef struct { |
@@ -21,5 +21,5 @@ #include <stdarg.h> | ||
| enum DisplayItem_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -31,3 +31,7 @@ Fill, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum DisplayItem_Tag DisplayItem_Tag; | ||
| #else | ||
| typedef uint8_t DisplayItem_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -34,0 +38,0 @@ |
@@ -11,11 +11,12 @@ #include <stdarg.h> | ||
| * | ||
| *Line ends with one new line should not break | ||
| *We treat empty doc comments as empty lines, so they break to the next paragraph. | ||
| * | ||
| *Line ends with two spaces and a new line | ||
| *should break to next line | ||
| * Newlines are preserved with leading spaces added | ||
| * to prettify and avoid misinterpreting leading symbols. | ||
| *like headings and lists. | ||
| * | ||
| *Line ends with two new lines | ||
| * Line ends with two new lines | ||
| * | ||
| *Should break to next paragraph | ||
| * Should break to next paragraph | ||
| */ | ||
| void root(void); |
@@ -15,10 +15,11 @@ #include <stdarg.h> | ||
| * | ||
| *Line ends with one new line should not break | ||
| *We treat empty doc comments as empty lines, so they break to the next paragraph. | ||
| * | ||
| *Line ends with two spaces and a new line | ||
| *should break to next line | ||
| * Newlines are preserved with leading spaces added | ||
| * to prettify and avoid misinterpreting leading symbols. | ||
| *like headings and lists. | ||
| * | ||
| *Line ends with two new lines | ||
| * Line ends with two new lines | ||
| * | ||
| *Should break to next paragraph | ||
| * Should break to next paragraph | ||
| */ | ||
@@ -25,0 +26,0 @@ void root(void); |
@@ -13,12 +13,13 @@ #include <cstdarg> | ||
| /// | ||
| ///Line ends with one new line should not break | ||
| ///We treat empty doc comments as empty lines, so they break to the next paragraph. | ||
| /// | ||
| ///Line ends with two spaces and a new line | ||
| ///should break to next line | ||
| /// Newlines are preserved with leading spaces added | ||
| /// to prettify and avoid misinterpreting leading symbols. | ||
| ///like headings and lists. | ||
| /// | ||
| ///Line ends with two new lines | ||
| /// Line ends with two new lines | ||
| /// | ||
| ///Should break to next paragraph | ||
| /// Should break to next paragraph | ||
| void root(); | ||
| } // extern "C" |
@@ -13,10 +13,11 @@ from libc.stdint cimport int8_t, int16_t, int32_t, int64_t, intptr_t | ||
| # | ||
| #Line ends with one new line should not break | ||
| #We treat empty doc comments as empty lines, so they break to the next paragraph. | ||
| # | ||
| #Line ends with two spaces and a new line | ||
| #should break to next line | ||
| # Newlines are preserved with leading spaces added | ||
| # to prettify and avoid misinterpreting leading symbols. | ||
| #like headings and lists. | ||
| # | ||
| #Line ends with two new lines | ||
| # Line ends with two new lines | ||
| # | ||
| #Should break to next paragraph | ||
| # Should break to next paragraph | ||
| void root(); |
@@ -20,3 +20,7 @@ #if 0 | ||
| enum A { | ||
| enum A | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint64_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| a1 = 0, | ||
@@ -27,5 +31,13 @@ a2 = 2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum A A; | ||
| #else | ||
| typedef uint64_t A; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| enum B { | ||
| enum B | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| b1 = 0, | ||
@@ -36,5 +48,13 @@ b2 = 2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum B B; | ||
| #else | ||
| typedef uint32_t B; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| enum C { | ||
| enum C | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint16_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| c1 = 0, | ||
@@ -45,5 +65,13 @@ c2 = 2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C C; | ||
| #else | ||
| typedef uint16_t C; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| enum D { | ||
| enum D | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| d1 = 0, | ||
@@ -54,5 +82,13 @@ d2 = 2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum D D; | ||
| #else | ||
| typedef uint8_t D; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| enum E { | ||
| enum E | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uintptr_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| e1 = 0, | ||
@@ -63,5 +99,13 @@ e2 = 2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum E E; | ||
| #else | ||
| typedef uintptr_t E; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| enum F { | ||
| enum F | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : intptr_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| f1 = 0, | ||
@@ -72,3 +116,7 @@ f2 = 2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum F F; | ||
| #else | ||
| typedef intptr_t F; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -82,3 +130,7 @@ typedef enum L { | ||
| enum M { | ||
| enum M | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : int8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| m1 = -1, | ||
@@ -88,3 +140,7 @@ m2 = 0, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum M M; | ||
| #else | ||
| typedef int8_t M; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -98,3 +154,7 @@ typedef enum N { | ||
| enum O { | ||
| enum O | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : int8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| o1, | ||
@@ -105,3 +165,7 @@ o2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum O O; | ||
| #else | ||
| typedef int8_t O; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -114,3 +178,7 @@ typedef struct J J; | ||
| enum G_Tag { | ||
| enum G_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Foo, | ||
@@ -120,3 +188,7 @@ Bar, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum G_Tag G_Tag; | ||
| #else | ||
| typedef uint8_t G_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -159,3 +231,7 @@ typedef struct Bar_Body { | ||
| enum ExI_Tag { | ||
| enum ExI_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| ExI_Foo, | ||
@@ -165,3 +241,7 @@ ExI_Bar, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum ExI_Tag ExI_Tag; | ||
| #else | ||
| typedef uint8_t ExI_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -183,7 +263,15 @@ typedef struct ExI_Bar_Body { | ||
| enum P_Tag { | ||
| enum P_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| P0, | ||
| P1, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum P_Tag P_Tag; | ||
| #else | ||
| typedef uint8_t P_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -190,0 +278,0 @@ typedef struct P1_Body { |
@@ -21,5 +21,5 @@ #if 0 | ||
| enum A | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint64_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -32,9 +32,13 @@ a1 = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum A A; | ||
| #else | ||
| typedef uint64_t A; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
| enum B | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -47,9 +51,13 @@ b1 = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum B B; | ||
| #else | ||
| typedef uint32_t B; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
| enum C | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint16_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -62,9 +70,13 @@ c1 = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C C; | ||
| #else | ||
| typedef uint16_t C; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
| enum D | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -77,9 +89,13 @@ d1 = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum D D; | ||
| #else | ||
| typedef uint8_t D; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
| enum E | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uintptr_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -92,9 +108,13 @@ e1 = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum E E; | ||
| #else | ||
| typedef uintptr_t E; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
| enum F | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : intptr_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -107,3 +127,7 @@ f1 = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum F F; | ||
| #else | ||
| typedef intptr_t F; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -119,5 +143,5 @@ | ||
| enum M | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : int8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -129,3 +153,7 @@ m1 = -1, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum M M; | ||
| #else | ||
| typedef int8_t M; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -141,5 +169,5 @@ | ||
| enum O | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : int8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -152,3 +180,7 @@ o1, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum O O; | ||
| #else | ||
| typedef int8_t O; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -163,5 +195,5 @@ | ||
| enum G_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -173,3 +205,7 @@ Foo, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum G_Tag G_Tag; | ||
| #else | ||
| typedef uint8_t G_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -214,5 +250,5 @@ | ||
| enum ExI_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -224,3 +260,7 @@ ExI_Foo, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum ExI_Tag ExI_Tag; | ||
| #else | ||
| typedef uint8_t ExI_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -244,5 +284,5 @@ | ||
| enum P_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -253,3 +293,7 @@ P0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum P_Tag P_Tag; | ||
| #else | ||
| typedef uint8_t P_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -256,0 +300,0 @@ |
@@ -8,3 +8,7 @@ #include <stdarg.h> | ||
| enum E { | ||
| enum E | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : int8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| A = 1, | ||
@@ -18,4 +22,8 @@ B = -1, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum E E; | ||
| #else | ||
| typedef int8_t E; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| void root(const E*); |
@@ -9,5 +9,5 @@ #include <stdarg.h> | ||
| enum E | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : int8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -23,3 +23,7 @@ A = 1, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum E E; | ||
| #else | ||
| typedef int8_t E; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -26,0 +30,0 @@ |
@@ -10,3 +10,7 @@ #include <stdarg.h> | ||
| enum Bar_Tag { | ||
| enum Bar_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Min, | ||
@@ -16,3 +20,7 @@ Max, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Bar_Tag Bar_Tag; | ||
| #else | ||
| typedef uint8_t Bar_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -19,0 +27,0 @@ typedef union Bar { |
@@ -11,5 +11,5 @@ #include <stdarg.h> | ||
| enum Bar_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -21,3 +21,7 @@ Min, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Bar_Tag Bar_Tag; | ||
| #else | ||
| typedef uint8_t Bar_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -24,0 +28,0 @@ |
@@ -25,3 +25,7 @@ #if 0 | ||
| */ | ||
| enum PositionAreaTrack { | ||
| enum PositionAreaTrack | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| /** | ||
@@ -52,3 +56,7 @@ * First track | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum PositionAreaTrack PositionAreaTrack; | ||
| #else | ||
| typedef uint8_t PositionAreaTrack; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -60,3 +68,7 @@ /** | ||
| */ | ||
| enum PositionAreaAxis { | ||
| enum PositionAreaAxis | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Horizontal = 0, | ||
@@ -69,3 +81,7 @@ Vertical = 1, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum PositionAreaAxis PositionAreaAxis; | ||
| #else | ||
| typedef uint8_t PositionAreaAxis; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -78,3 +94,7 @@ /** | ||
| */ | ||
| enum PositionAreaKeyword { | ||
| enum PositionAreaKeyword | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| None = 0, | ||
@@ -90,3 +110,7 @@ Center = (uint8_t)PositionAreaTrack_Center, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum PositionAreaKeyword PositionAreaKeyword; | ||
| #else | ||
| typedef uint8_t PositionAreaKeyword; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -93,0 +117,0 @@ void root(PositionAreaKeyword, PositionAreaTrack, PositionAreaAxis); |
@@ -26,5 +26,5 @@ #if 0 | ||
| enum PositionAreaTrack | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -57,3 +57,7 @@ /** | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum PositionAreaTrack PositionAreaTrack; | ||
| #else | ||
| typedef uint8_t PositionAreaTrack; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -67,5 +71,5 @@ | ||
| enum PositionAreaAxis | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -80,3 +84,7 @@ Horizontal = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum PositionAreaAxis PositionAreaAxis; | ||
| #else | ||
| typedef uint8_t PositionAreaAxis; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -91,5 +99,5 @@ | ||
| enum PositionAreaKeyword | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -107,3 +115,7 @@ None = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum PositionAreaKeyword PositionAreaKeyword; | ||
| #else | ||
| typedef uint8_t PositionAreaKeyword; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -110,0 +122,0 @@ |
@@ -10,3 +10,7 @@ #include <stdarg.h> | ||
| enum Bar_Tag { | ||
| enum Bar_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Min, | ||
@@ -16,3 +20,7 @@ Max, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Bar_Tag Bar_Tag; | ||
| #else | ||
| typedef uint8_t Bar_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -19,0 +27,0 @@ union Bar { |
@@ -11,5 +11,5 @@ #include <stdarg.h> | ||
| enum Bar_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -21,3 +21,7 @@ Min, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Bar_Tag Bar_Tag; | ||
| #else | ||
| typedef uint8_t Bar_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -24,0 +28,0 @@ |
@@ -10,3 +10,7 @@ #include <stdarg.h> | ||
| enum Bar_Tag { | ||
| enum Bar_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Min, | ||
@@ -16,3 +20,7 @@ Max, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Bar_Tag Bar_Tag; | ||
| #else | ||
| typedef uint8_t Bar_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -19,0 +27,0 @@ typedef union { |
@@ -11,5 +11,5 @@ #include <stdarg.h> | ||
| enum Bar_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -21,3 +21,7 @@ Min, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Bar_Tag Bar_Tag; | ||
| #else | ||
| typedef uint8_t Bar_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -24,0 +28,0 @@ |
@@ -20,3 +20,7 @@ #if 0 | ||
| enum A { | ||
| enum A | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint64_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| a1 = 0, | ||
@@ -27,5 +31,13 @@ a2 = 2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum A A; | ||
| #else | ||
| typedef uint64_t A; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| enum B { | ||
| enum B | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| b1 = 0, | ||
@@ -36,5 +48,13 @@ b2 = 2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum B B; | ||
| #else | ||
| typedef uint32_t B; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| enum C { | ||
| enum C | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint16_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| c1 = 0, | ||
@@ -45,5 +65,13 @@ c2 = 2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C C; | ||
| #else | ||
| typedef uint16_t C; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| enum D { | ||
| enum D | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| d1 = 0, | ||
@@ -54,5 +82,13 @@ d2 = 2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum D D; | ||
| #else | ||
| typedef uint8_t D; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| enum E { | ||
| enum E | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uintptr_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| e1 = 0, | ||
@@ -63,5 +99,13 @@ e2 = 2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum E E; | ||
| #else | ||
| typedef uintptr_t E; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| enum F { | ||
| enum F | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : intptr_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| f1 = 0, | ||
@@ -72,3 +116,7 @@ f2 = 2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum F F; | ||
| #else | ||
| typedef intptr_t F; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -82,3 +130,7 @@ enum L { | ||
| enum M { | ||
| enum M | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : int8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| m1 = -1, | ||
@@ -88,3 +140,7 @@ m2 = 0, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum M M; | ||
| #else | ||
| typedef int8_t M; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -98,3 +154,7 @@ enum N { | ||
| enum O { | ||
| enum O | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : int8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| o1, | ||
@@ -105,3 +165,7 @@ o2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum O O; | ||
| #else | ||
| typedef int8_t O; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -114,3 +178,7 @@ struct J; | ||
| enum G_Tag { | ||
| enum G_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Foo, | ||
@@ -120,3 +188,7 @@ Bar, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum G_Tag G_Tag; | ||
| #else | ||
| typedef uint8_t G_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -159,3 +231,7 @@ struct Bar_Body { | ||
| enum ExI_Tag { | ||
| enum ExI_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| ExI_Foo, | ||
@@ -165,3 +241,7 @@ ExI_Bar, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum ExI_Tag ExI_Tag; | ||
| #else | ||
| typedef uint8_t ExI_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -183,7 +263,15 @@ struct ExI_Bar_Body { | ||
| enum P_Tag { | ||
| enum P_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| P0, | ||
| P1, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum P_Tag P_Tag; | ||
| #else | ||
| typedef uint8_t P_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -190,0 +278,0 @@ struct P1_Body { |
@@ -21,5 +21,5 @@ #if 0 | ||
| enum A | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint64_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -32,9 +32,13 @@ a1 = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum A A; | ||
| #else | ||
| typedef uint64_t A; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
| enum B | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -47,9 +51,13 @@ b1 = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum B B; | ||
| #else | ||
| typedef uint32_t B; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
| enum C | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint16_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -62,9 +70,13 @@ c1 = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C C; | ||
| #else | ||
| typedef uint16_t C; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
| enum D | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -77,9 +89,13 @@ d1 = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum D D; | ||
| #else | ||
| typedef uint8_t D; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
| enum E | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uintptr_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -92,9 +108,13 @@ e1 = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum E E; | ||
| #else | ||
| typedef uintptr_t E; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
| enum F | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : intptr_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -107,3 +127,7 @@ f1 = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum F F; | ||
| #else | ||
| typedef intptr_t F; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -119,5 +143,5 @@ | ||
| enum M | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : int8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -129,3 +153,7 @@ m1 = -1, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum M M; | ||
| #else | ||
| typedef int8_t M; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -141,5 +169,5 @@ | ||
| enum O | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : int8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -152,3 +180,7 @@ o1, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum O O; | ||
| #else | ||
| typedef int8_t O; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -163,5 +195,5 @@ | ||
| enum G_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -173,3 +205,7 @@ Foo, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum G_Tag G_Tag; | ||
| #else | ||
| typedef uint8_t G_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -214,5 +250,5 @@ | ||
| enum ExI_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -224,3 +260,7 @@ ExI_Foo, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum ExI_Tag ExI_Tag; | ||
| #else | ||
| typedef uint8_t ExI_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -244,5 +284,5 @@ | ||
| enum P_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -253,3 +293,7 @@ P0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum P_Tag P_Tag; | ||
| #else | ||
| typedef uint8_t P_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -256,0 +300,0 @@ |
@@ -20,3 +20,7 @@ #if 0 | ||
| enum A { | ||
| enum A | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint64_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| a1 = 0, | ||
@@ -27,5 +31,13 @@ a2 = 2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum A A; | ||
| #else | ||
| typedef uint64_t A; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| enum B { | ||
| enum B | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| b1 = 0, | ||
@@ -36,5 +48,13 @@ b2 = 2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum B B; | ||
| #else | ||
| typedef uint32_t B; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| enum C { | ||
| enum C | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint16_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| c1 = 0, | ||
@@ -45,5 +65,13 @@ c2 = 2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C C; | ||
| #else | ||
| typedef uint16_t C; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| enum D { | ||
| enum D | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| d1 = 0, | ||
@@ -54,5 +82,13 @@ d2 = 2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum D D; | ||
| #else | ||
| typedef uint8_t D; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| enum E { | ||
| enum E | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uintptr_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| e1 = 0, | ||
@@ -63,5 +99,13 @@ e2 = 2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum E E; | ||
| #else | ||
| typedef uintptr_t E; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| enum F { | ||
| enum F | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : intptr_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| f1 = 0, | ||
@@ -72,3 +116,7 @@ f2 = 2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum F F; | ||
| #else | ||
| typedef intptr_t F; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -82,3 +130,7 @@ typedef enum { | ||
| enum M { | ||
| enum M | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : int8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| m1 = -1, | ||
@@ -88,3 +140,7 @@ m2 = 0, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum M M; | ||
| #else | ||
| typedef int8_t M; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -98,3 +154,7 @@ typedef enum { | ||
| enum O { | ||
| enum O | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : int8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| o1, | ||
@@ -105,3 +165,7 @@ o2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum O O; | ||
| #else | ||
| typedef int8_t O; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -114,3 +178,7 @@ typedef struct J J; | ||
| enum G_Tag { | ||
| enum G_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Foo, | ||
@@ -120,3 +188,7 @@ Bar, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum G_Tag G_Tag; | ||
| #else | ||
| typedef uint8_t G_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -159,3 +231,7 @@ typedef struct { | ||
| enum ExI_Tag { | ||
| enum ExI_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| ExI_Foo, | ||
@@ -165,3 +241,7 @@ ExI_Bar, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum ExI_Tag ExI_Tag; | ||
| #else | ||
| typedef uint8_t ExI_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -183,7 +263,15 @@ typedef struct { | ||
| enum P_Tag { | ||
| enum P_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| P0, | ||
| P1, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum P_Tag P_Tag; | ||
| #else | ||
| typedef uint8_t P_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -190,0 +278,0 @@ typedef struct { |
@@ -21,5 +21,5 @@ #if 0 | ||
| enum A | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint64_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -32,9 +32,13 @@ a1 = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum A A; | ||
| #else | ||
| typedef uint64_t A; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
| enum B | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint32_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -47,9 +51,13 @@ b1 = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum B B; | ||
| #else | ||
| typedef uint32_t B; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
| enum C | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint16_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -62,9 +70,13 @@ c1 = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C C; | ||
| #else | ||
| typedef uint16_t C; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
| enum D | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -77,9 +89,13 @@ d1 = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum D D; | ||
| #else | ||
| typedef uint8_t D; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
| enum E | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uintptr_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -92,9 +108,13 @@ e1 = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum E E; | ||
| #else | ||
| typedef uintptr_t E; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
| enum F | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : intptr_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -107,3 +127,7 @@ f1 = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum F F; | ||
| #else | ||
| typedef intptr_t F; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -119,5 +143,5 @@ | ||
| enum M | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : int8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -129,3 +153,7 @@ m1 = -1, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum M M; | ||
| #else | ||
| typedef int8_t M; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -141,5 +169,5 @@ | ||
| enum O | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : int8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -152,3 +180,7 @@ o1, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum O O; | ||
| #else | ||
| typedef int8_t O; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -163,5 +195,5 @@ | ||
| enum G_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -173,3 +205,7 @@ Foo, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum G_Tag G_Tag; | ||
| #else | ||
| typedef uint8_t G_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -214,5 +250,5 @@ | ||
| enum ExI_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -224,3 +260,7 @@ ExI_Foo, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum ExI_Tag ExI_Tag; | ||
| #else | ||
| typedef uint8_t ExI_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -244,5 +284,5 @@ | ||
| enum P_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -253,3 +293,7 @@ P0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum P_Tag P_Tag; | ||
| #else | ||
| typedef uint8_t P_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -256,0 +300,0 @@ |
@@ -6,6 +6,14 @@ #include <stdarg.h> | ||
| enum StyleOnlyThisShouldBeGenerated { | ||
| enum StyleOnlyThisShouldBeGenerated | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Foo, | ||
| Bar, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum StyleOnlyThisShouldBeGenerated StyleOnlyThisShouldBeGenerated; | ||
| #else | ||
| typedef uint8_t StyleOnlyThisShouldBeGenerated; | ||
| #endif // __STDC_VERSION__ >= 202311L |
@@ -7,5 +7,5 @@ #include <stdarg.h> | ||
| enum StyleOnlyThisShouldBeGenerated | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -16,3 +16,7 @@ Foo, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum StyleOnlyThisShouldBeGenerated StyleOnlyThisShouldBeGenerated; | ||
| #else | ||
| typedef uint8_t StyleOnlyThisShouldBeGenerated; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus |
@@ -6,6 +6,14 @@ #include <stdarg.h> | ||
| enum OnlyThisShouldBeGenerated { | ||
| enum OnlyThisShouldBeGenerated | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Foo, | ||
| Bar, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum OnlyThisShouldBeGenerated OnlyThisShouldBeGenerated; | ||
| #else | ||
| typedef uint8_t OnlyThisShouldBeGenerated; | ||
| #endif // __STDC_VERSION__ >= 202311L |
@@ -7,5 +7,5 @@ #include <stdarg.h> | ||
| enum OnlyThisShouldBeGenerated | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -16,3 +16,7 @@ Foo, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum OnlyThisShouldBeGenerated OnlyThisShouldBeGenerated; | ||
| #else | ||
| typedef uint8_t OnlyThisShouldBeGenerated; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus |
@@ -11,7 +11,15 @@ #define MUST_USE_FUNC __attribute__((warn_unused_result)) | ||
| enum MaybeOwnedPtr_i32_Tag { | ||
| enum MaybeOwnedPtr_i32_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Owned_i32, | ||
| None_i32, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum MaybeOwnedPtr_i32_Tag MaybeOwnedPtr_i32_Tag; | ||
| #else | ||
| typedef uint8_t MaybeOwnedPtr_i32_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -18,0 +26,0 @@ typedef struct MUST_USE_STRUCT MaybeOwnedPtr_i32 { |
@@ -12,5 +12,5 @@ #define MUST_USE_FUNC __attribute__((warn_unused_result)) | ||
| enum MaybeOwnedPtr_i32_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -21,3 +21,7 @@ Owned_i32, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum MaybeOwnedPtr_i32_Tag MaybeOwnedPtr_i32_Tag; | ||
| #else | ||
| typedef uint8_t MaybeOwnedPtr_i32_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -24,0 +28,0 @@ |
@@ -11,7 +11,15 @@ #define MUST_USE_FUNC __attribute__((warn_unused_result)) | ||
| enum MaybeOwnedPtr_i32_Tag { | ||
| enum MaybeOwnedPtr_i32_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Owned_i32, | ||
| None_i32, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum MaybeOwnedPtr_i32_Tag MaybeOwnedPtr_i32_Tag; | ||
| #else | ||
| typedef uint8_t MaybeOwnedPtr_i32_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -18,0 +26,0 @@ struct MUST_USE_STRUCT MaybeOwnedPtr_i32 { |
@@ -12,5 +12,5 @@ #define MUST_USE_FUNC __attribute__((warn_unused_result)) | ||
| enum MaybeOwnedPtr_i32_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -21,3 +21,7 @@ Owned_i32, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum MaybeOwnedPtr_i32_Tag MaybeOwnedPtr_i32_Tag; | ||
| #else | ||
| typedef uint8_t MaybeOwnedPtr_i32_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -24,0 +28,0 @@ |
@@ -11,7 +11,15 @@ #define MUST_USE_FUNC __attribute__((warn_unused_result)) | ||
| enum MaybeOwnedPtr_i32_Tag { | ||
| enum MaybeOwnedPtr_i32_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Owned_i32, | ||
| None_i32, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum MaybeOwnedPtr_i32_Tag MaybeOwnedPtr_i32_Tag; | ||
| #else | ||
| typedef uint8_t MaybeOwnedPtr_i32_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -18,0 +26,0 @@ typedef struct MUST_USE_STRUCT { |
@@ -12,5 +12,5 @@ #define MUST_USE_FUNC __attribute__((warn_unused_result)) | ||
| enum MaybeOwnedPtr_i32_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -21,3 +21,7 @@ Owned_i32, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum MaybeOwnedPtr_i32_Tag MaybeOwnedPtr_i32_Tag; | ||
| #else | ||
| typedef uint8_t MaybeOwnedPtr_i32_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -24,0 +28,0 @@ |
@@ -16,3 +16,7 @@ #include <stdarg.h> | ||
| enum PREFIX_AbsoluteFontWeight_Tag { | ||
| enum PREFIX_AbsoluteFontWeight_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Weight, | ||
@@ -22,3 +26,7 @@ Normal, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum PREFIX_AbsoluteFontWeight_Tag PREFIX_AbsoluteFontWeight_Tag; | ||
| #else | ||
| typedef uint8_t PREFIX_AbsoluteFontWeight_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -25,0 +33,0 @@ typedef union PREFIX_AbsoluteFontWeight { |
@@ -17,5 +17,5 @@ #include <stdarg.h> | ||
| enum PREFIX_AbsoluteFontWeight_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -27,3 +27,7 @@ Weight, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum PREFIX_AbsoluteFontWeight_Tag PREFIX_AbsoluteFontWeight_Tag; | ||
| #else | ||
| typedef uint8_t PREFIX_AbsoluteFontWeight_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -30,0 +34,0 @@ |
@@ -16,3 +16,7 @@ #include <stdarg.h> | ||
| enum PREFIX_AbsoluteFontWeight_Tag { | ||
| enum PREFIX_AbsoluteFontWeight_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Weight, | ||
@@ -22,3 +26,7 @@ Normal, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum PREFIX_AbsoluteFontWeight_Tag PREFIX_AbsoluteFontWeight_Tag; | ||
| #else | ||
| typedef uint8_t PREFIX_AbsoluteFontWeight_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -25,0 +33,0 @@ union PREFIX_AbsoluteFontWeight { |
@@ -17,5 +17,5 @@ #include <stdarg.h> | ||
| enum PREFIX_AbsoluteFontWeight_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -27,3 +27,7 @@ Weight, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum PREFIX_AbsoluteFontWeight_Tag PREFIX_AbsoluteFontWeight_Tag; | ||
| #else | ||
| typedef uint8_t PREFIX_AbsoluteFontWeight_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -30,0 +34,0 @@ |
@@ -16,3 +16,7 @@ #include <stdarg.h> | ||
| enum PREFIX_AbsoluteFontWeight_Tag { | ||
| enum PREFIX_AbsoluteFontWeight_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Weight, | ||
@@ -22,3 +26,7 @@ Normal, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum PREFIX_AbsoluteFontWeight_Tag PREFIX_AbsoluteFontWeight_Tag; | ||
| #else | ||
| typedef uint8_t PREFIX_AbsoluteFontWeight_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -25,0 +33,0 @@ typedef union { |
@@ -17,5 +17,5 @@ #include <stdarg.h> | ||
| enum PREFIX_AbsoluteFontWeight_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -27,3 +27,7 @@ Weight, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum PREFIX_AbsoluteFontWeight_Tag PREFIX_AbsoluteFontWeight_Tag; | ||
| #else | ||
| typedef uint8_t PREFIX_AbsoluteFontWeight_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -30,0 +34,0 @@ |
@@ -6,7 +6,15 @@ #include <stdarg.h> | ||
| enum Enum { | ||
| enum Enum | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| a, | ||
| b, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Enum Enum; | ||
| #else | ||
| typedef uint8_t Enum; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -13,0 +21,0 @@ typedef struct Struct { |
@@ -7,5 +7,5 @@ #include <stdarg.h> | ||
| enum Enum | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -16,3 +16,7 @@ a, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Enum Enum; | ||
| #else | ||
| typedef uint8_t Enum; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -19,0 +23,0 @@ |
@@ -6,7 +6,15 @@ #include <stdarg.h> | ||
| enum Enum { | ||
| enum Enum | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| a, | ||
| b, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Enum Enum; | ||
| #else | ||
| typedef uint8_t Enum; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -13,0 +21,0 @@ struct Struct { |
@@ -7,5 +7,5 @@ #include <stdarg.h> | ||
| enum Enum | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -16,3 +16,7 @@ a, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Enum Enum; | ||
| #else | ||
| typedef uint8_t Enum; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -19,0 +23,0 @@ |
@@ -6,7 +6,15 @@ #include <stdarg.h> | ||
| enum Enum { | ||
| enum Enum | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| a, | ||
| b, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Enum Enum; | ||
| #else | ||
| typedef uint8_t Enum; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -13,0 +21,0 @@ typedef struct { |
@@ -7,5 +7,5 @@ #include <stdarg.h> | ||
| enum Enum | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -16,3 +16,7 @@ a, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum Enum Enum; | ||
| #else | ||
| typedef uint8_t Enum; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -19,0 +23,0 @@ |
@@ -8,7 +8,15 @@ #include <stdarg.h> | ||
| enum C_E { | ||
| enum C_E | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| x = 0, | ||
| y = 1, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C_E C_E; | ||
| #else | ||
| typedef uint8_t C_E; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -15,0 +23,0 @@ typedef struct C_A C_A; |
@@ -9,5 +9,5 @@ #include <stdarg.h> | ||
| enum C_E | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -18,3 +18,7 @@ x = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C_E C_E; | ||
| #else | ||
| typedef uint8_t C_E; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -21,0 +25,0 @@ |
@@ -8,7 +8,15 @@ #include <stdarg.h> | ||
| enum C_E { | ||
| enum C_E | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| x = 0, | ||
| y = 1, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C_E C_E; | ||
| #else | ||
| typedef uint8_t C_E; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -15,0 +23,0 @@ struct C_A; |
@@ -9,5 +9,5 @@ #include <stdarg.h> | ||
| enum C_E | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -18,3 +18,7 @@ x = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C_E C_E; | ||
| #else | ||
| typedef uint8_t C_E; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -21,0 +25,0 @@ |
@@ -8,7 +8,15 @@ #include <stdarg.h> | ||
| enum C_E { | ||
| enum C_E | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| x = 0, | ||
| y = 1, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C_E C_E; | ||
| #else | ||
| typedef uint8_t C_E; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -15,0 +23,0 @@ typedef struct C_A C_A; |
@@ -9,5 +9,5 @@ #include <stdarg.h> | ||
| enum C_E | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -18,3 +18,7 @@ x = 0, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C_E C_E; | ||
| #else | ||
| typedef uint8_t C_E; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -21,0 +25,0 @@ |
@@ -16,6 +16,14 @@ #include <stdarg.h> | ||
| enum C_Tag { | ||
| enum C_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| D, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C_Tag C_Tag; | ||
| #else | ||
| typedef uint8_t C_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -34,7 +42,15 @@ typedef struct D_Body { | ||
| enum E_Tag { | ||
| enum E_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Double, | ||
| Float, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum E_Tag E_Tag; | ||
| #else | ||
| typedef uint8_t E_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -53,7 +69,15 @@ typedef struct E { | ||
| enum F_Tag { | ||
| enum F_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| double_, | ||
| float_, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum F_Tag F_Tag; | ||
| #else | ||
| typedef uint8_t F_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -60,0 +84,0 @@ typedef struct F { |
@@ -17,5 +17,5 @@ #include <stdarg.h> | ||
| enum C_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -25,3 +25,7 @@ D, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C_Tag C_Tag; | ||
| #else | ||
| typedef uint8_t C_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -42,5 +46,5 @@ | ||
| enum E_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -51,3 +55,7 @@ Double, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum E_Tag E_Tag; | ||
| #else | ||
| typedef uint8_t E_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -68,5 +76,5 @@ | ||
| enum F_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -77,3 +85,7 @@ double_, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum F_Tag F_Tag; | ||
| #else | ||
| typedef uint8_t F_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -80,0 +92,0 @@ |
@@ -16,6 +16,14 @@ #include <stdarg.h> | ||
| enum C_Tag { | ||
| enum C_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| D, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C_Tag C_Tag; | ||
| #else | ||
| typedef uint8_t C_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -34,7 +42,15 @@ struct D_Body { | ||
| enum E_Tag { | ||
| enum E_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Double, | ||
| Float, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum E_Tag E_Tag; | ||
| #else | ||
| typedef uint8_t E_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -53,7 +69,15 @@ struct E { | ||
| enum F_Tag { | ||
| enum F_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| double_, | ||
| float_, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum F_Tag F_Tag; | ||
| #else | ||
| typedef uint8_t F_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -60,0 +84,0 @@ struct F { |
@@ -17,5 +17,5 @@ #include <stdarg.h> | ||
| enum C_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -25,3 +25,7 @@ D, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C_Tag C_Tag; | ||
| #else | ||
| typedef uint8_t C_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -42,5 +46,5 @@ | ||
| enum E_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -51,3 +55,7 @@ Double, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum E_Tag E_Tag; | ||
| #else | ||
| typedef uint8_t E_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -68,5 +76,5 @@ | ||
| enum F_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -77,3 +85,7 @@ double_, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum F_Tag F_Tag; | ||
| #else | ||
| typedef uint8_t F_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -80,0 +92,0 @@ |
@@ -16,6 +16,14 @@ #include <stdarg.h> | ||
| enum C_Tag { | ||
| enum C_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| D, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C_Tag C_Tag; | ||
| #else | ||
| typedef uint8_t C_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -34,7 +42,15 @@ typedef struct { | ||
| enum E_Tag { | ||
| enum E_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Double, | ||
| Float, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum E_Tag E_Tag; | ||
| #else | ||
| typedef uint8_t E_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -53,7 +69,15 @@ typedef struct { | ||
| enum F_Tag { | ||
| enum F_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| double_, | ||
| float_, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum F_Tag F_Tag; | ||
| #else | ||
| typedef uint8_t F_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -60,0 +84,0 @@ typedef struct { |
@@ -17,5 +17,5 @@ #include <stdarg.h> | ||
| enum C_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -25,3 +25,7 @@ D, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C_Tag C_Tag; | ||
| #else | ||
| typedef uint8_t C_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -42,5 +46,5 @@ | ||
| enum E_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -51,3 +55,7 @@ Double, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum E_Tag E_Tag; | ||
| #else | ||
| typedef uint8_t E_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -68,5 +76,5 @@ | ||
| enum F_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -77,3 +85,7 @@ double_, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum F_Tag F_Tag; | ||
| #else | ||
| typedef uint8_t F_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -80,0 +92,0 @@ |
@@ -6,3 +6,7 @@ #include <stdarg.h> | ||
| enum A { | ||
| enum A | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| A_A1, | ||
@@ -16,5 +20,13 @@ A_A2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum A A; | ||
| #else | ||
| typedef uint8_t A; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| enum B { | ||
| enum B | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| B_B1, | ||
@@ -28,5 +40,13 @@ B_B2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum B B; | ||
| #else | ||
| typedef uint8_t B; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| enum C_Tag { | ||
| enum C_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| C_C1, | ||
@@ -40,3 +60,7 @@ C_C2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C_Tag C_Tag; | ||
| #else | ||
| typedef uint8_t C_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -43,0 +67,0 @@ typedef struct C_C1_Body { |
@@ -7,5 +7,5 @@ #include <stdarg.h> | ||
| enum A | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -21,9 +21,13 @@ A_A1, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum A A; | ||
| #else | ||
| typedef uint8_t A; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
| enum B | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -39,9 +43,13 @@ B_B1, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum B B; | ||
| #else | ||
| typedef uint8_t B; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
| enum C_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -57,3 +65,7 @@ C_C1, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C_Tag C_Tag; | ||
| #else | ||
| typedef uint8_t C_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -60,0 +72,0 @@ |
@@ -6,3 +6,7 @@ #include <stdarg.h> | ||
| enum A { | ||
| enum A | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| A_A1, | ||
@@ -16,5 +20,13 @@ A_A2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum A A; | ||
| #else | ||
| typedef uint8_t A; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| enum B { | ||
| enum B | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| B_B1, | ||
@@ -28,5 +40,13 @@ B_B2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum B B; | ||
| #else | ||
| typedef uint8_t B; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| enum C_Tag { | ||
| enum C_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| C_C1, | ||
@@ -40,3 +60,7 @@ C_C2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C_Tag C_Tag; | ||
| #else | ||
| typedef uint8_t C_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -43,0 +67,0 @@ struct C_C1_Body { |
@@ -7,5 +7,5 @@ #include <stdarg.h> | ||
| enum A | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -21,9 +21,13 @@ A_A1, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum A A; | ||
| #else | ||
| typedef uint8_t A; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
| enum B | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -39,9 +43,13 @@ B_B1, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum B B; | ||
| #else | ||
| typedef uint8_t B; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
| enum C_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -57,3 +65,7 @@ C_C1, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C_Tag C_Tag; | ||
| #else | ||
| typedef uint8_t C_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -60,0 +72,0 @@ |
@@ -6,3 +6,7 @@ #include <stdarg.h> | ||
| enum A { | ||
| enum A | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| A_A1, | ||
@@ -16,5 +20,13 @@ A_A2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum A A; | ||
| #else | ||
| typedef uint8_t A; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| enum B { | ||
| enum B | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| B_B1, | ||
@@ -28,5 +40,13 @@ B_B2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum B B; | ||
| #else | ||
| typedef uint8_t B; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| enum C_Tag { | ||
| enum C_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| C_C1, | ||
@@ -40,3 +60,7 @@ C_C2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C_Tag C_Tag; | ||
| #else | ||
| typedef uint8_t C_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -43,0 +67,0 @@ typedef struct { |
@@ -7,5 +7,5 @@ #include <stdarg.h> | ||
| enum A | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -21,9 +21,13 @@ A_A1, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum A A; | ||
| #else | ||
| typedef uint8_t A; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
| enum B | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -39,9 +43,13 @@ B_B1, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum B B; | ||
| #else | ||
| typedef uint8_t B; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
| enum C_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -57,3 +65,7 @@ C_C1, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum C_Tag C_Tag; | ||
| #else | ||
| typedef uint8_t C_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -60,0 +72,0 @@ |
@@ -7,11 +7,27 @@ #include <stdarg.h> | ||
| enum UE { | ||
| enum UE | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : size_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| UV, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum UE UE; | ||
| #else | ||
| typedef size_t UE; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| enum IE { | ||
| enum IE | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : ptrdiff_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| IV, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum IE IE; | ||
| #else | ||
| typedef ptrdiff_t IE; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -18,0 +34,0 @@ typedef size_t Usize; |
@@ -8,5 +8,5 @@ #include <stdarg.h> | ||
| enum UE | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : size_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -16,9 +16,13 @@ UV, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum UE UE; | ||
| #else | ||
| typedef size_t UE; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
| enum IE | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : ptrdiff_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -28,3 +32,7 @@ IV, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum IE IE; | ||
| #else | ||
| typedef ptrdiff_t IE; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -31,0 +39,0 @@ |
@@ -16,3 +16,7 @@ #include <stdarg.h> | ||
| enum StyleFoo_i32_Tag { | ||
| enum StyleFoo_i32_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Foo_i32, | ||
@@ -23,3 +27,7 @@ Bar_i32, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum StyleFoo_i32_Tag StyleFoo_i32_Tag; | ||
| #else | ||
| typedef uint8_t StyleFoo_i32_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -105,3 +113,7 @@ typedef struct StyleFoo_Body_i32 { | ||
| enum StyleBaz_Tag { | ||
| enum StyleBaz_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Baz1, | ||
@@ -111,3 +123,7 @@ Baz2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum StyleBaz_Tag StyleBaz_Tag; | ||
| #else | ||
| typedef uint8_t StyleBaz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -126,3 +142,7 @@ typedef union StyleBaz { | ||
| enum StyleTaz_Tag { | ||
| enum StyleTaz_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Taz1, | ||
@@ -132,3 +152,7 @@ Taz2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum StyleTaz_Tag StyleTaz_Tag; | ||
| #else | ||
| typedef uint8_t StyleTaz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -135,0 +159,0 @@ typedef struct StyleTaz { |
@@ -17,5 +17,5 @@ #include <stdarg.h> | ||
| enum StyleFoo_i32_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -28,3 +28,7 @@ Foo_i32, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum StyleFoo_i32_Tag StyleFoo_i32_Tag; | ||
| #else | ||
| typedef uint8_t StyleFoo_i32_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -112,5 +116,5 @@ | ||
| enum StyleBaz_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -122,3 +126,7 @@ Baz1, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum StyleBaz_Tag StyleBaz_Tag; | ||
| #else | ||
| typedef uint8_t StyleBaz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -139,5 +147,5 @@ | ||
| enum StyleTaz_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -149,3 +157,7 @@ Taz1, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum StyleTaz_Tag StyleTaz_Tag; | ||
| #else | ||
| typedef uint8_t StyleTaz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -152,0 +164,0 @@ |
@@ -16,3 +16,7 @@ #include <stdarg.h> | ||
| enum StyleFoo_i32_Tag { | ||
| enum StyleFoo_i32_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Foo_i32, | ||
@@ -23,3 +27,7 @@ Bar_i32, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum StyleFoo_i32_Tag StyleFoo_i32_Tag; | ||
| #else | ||
| typedef uint8_t StyleFoo_i32_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -105,3 +113,7 @@ struct StyleFoo_Body_i32 { | ||
| enum StyleBaz_Tag { | ||
| enum StyleBaz_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Baz1, | ||
@@ -111,3 +123,7 @@ Baz2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum StyleBaz_Tag StyleBaz_Tag; | ||
| #else | ||
| typedef uint8_t StyleBaz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -126,3 +142,7 @@ union StyleBaz { | ||
| enum StyleTaz_Tag { | ||
| enum StyleTaz_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Taz1, | ||
@@ -132,3 +152,7 @@ Taz2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum StyleTaz_Tag StyleTaz_Tag; | ||
| #else | ||
| typedef uint8_t StyleTaz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -135,0 +159,0 @@ struct StyleTaz { |
@@ -17,5 +17,5 @@ #include <stdarg.h> | ||
| enum StyleFoo_i32_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -28,3 +28,7 @@ Foo_i32, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum StyleFoo_i32_Tag StyleFoo_i32_Tag; | ||
| #else | ||
| typedef uint8_t StyleFoo_i32_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -112,5 +116,5 @@ | ||
| enum StyleBaz_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -122,3 +126,7 @@ Baz1, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum StyleBaz_Tag StyleBaz_Tag; | ||
| #else | ||
| typedef uint8_t StyleBaz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -139,5 +147,5 @@ | ||
| enum StyleTaz_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -149,3 +157,7 @@ Taz1, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum StyleTaz_Tag StyleTaz_Tag; | ||
| #else | ||
| typedef uint8_t StyleTaz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -152,0 +164,0 @@ |
@@ -16,3 +16,7 @@ #include <stdarg.h> | ||
| enum StyleFoo_i32_Tag { | ||
| enum StyleFoo_i32_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Foo_i32, | ||
@@ -23,3 +27,7 @@ Bar_i32, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum StyleFoo_i32_Tag StyleFoo_i32_Tag; | ||
| #else | ||
| typedef uint8_t StyleFoo_i32_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -105,3 +113,7 @@ typedef struct { | ||
| enum StyleBaz_Tag { | ||
| enum StyleBaz_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Baz1, | ||
@@ -111,3 +123,7 @@ Baz2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum StyleBaz_Tag StyleBaz_Tag; | ||
| #else | ||
| typedef uint8_t StyleBaz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -126,3 +142,7 @@ typedef union { | ||
| enum StyleTaz_Tag { | ||
| enum StyleTaz_Tag | ||
| #if __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| { | ||
| Taz1, | ||
@@ -132,3 +152,7 @@ Taz2, | ||
| }; | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum StyleTaz_Tag StyleTaz_Tag; | ||
| #else | ||
| typedef uint8_t StyleTaz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
@@ -135,0 +159,0 @@ typedef struct { |
@@ -17,5 +17,5 @@ #include <stdarg.h> | ||
| enum StyleFoo_i32_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -28,3 +28,7 @@ Foo_i32, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum StyleFoo_i32_Tag StyleFoo_i32_Tag; | ||
| #else | ||
| typedef uint8_t StyleFoo_i32_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -112,5 +116,5 @@ | ||
| enum StyleBaz_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -122,3 +126,7 @@ Baz1, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum StyleBaz_Tag StyleBaz_Tag; | ||
| #else | ||
| typedef uint8_t StyleBaz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -139,5 +147,5 @@ | ||
| enum StyleTaz_Tag | ||
| #ifdef __cplusplus | ||
| #if defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| : uint8_t | ||
| #endif // __cplusplus | ||
| #endif // defined(__cplusplus) || __STDC_VERSION__ >= 202311L | ||
| { | ||
@@ -149,3 +157,7 @@ Taz1, | ||
| #ifndef __cplusplus | ||
| #if __STDC_VERSION__ >= 202311L | ||
| typedef enum StyleTaz_Tag StyleTaz_Tag; | ||
| #else | ||
| typedef uint8_t StyleTaz_Tag; | ||
| #endif // __STDC_VERSION__ >= 202311L | ||
| #endif // __cplusplus | ||
@@ -152,0 +164,0 @@ |
@@ -1,12 +0,12 @@ | ||
| #[doc="With doc attr, each attr contribute to one line of document"] | ||
| #[doc="like this one with a new line character at its end"] | ||
| #[doc="and this one as well. So they are in the same paragraph"] | ||
| #[doc=""] | ||
| #[doc="Line ends with one new line\nshould not break"] | ||
| #[doc=""] | ||
| #[doc="Line ends with two spaces and a new line \nshould break to next line"] | ||
| #[doc=""] | ||
| #[doc="Line ends with two new lines\n\nShould break to next paragraph"] | ||
| #[doc = "With doc attr, each attr contribute to one line of document"] | ||
| #[doc = "like this one with a new line character at its end"] | ||
| #[doc = "and this one as well. So they are in the same paragraph"] | ||
| #[doc = ""] | ||
| #[doc = "We treat empty doc comments as empty lines, so they break to the next paragraph."] | ||
| #[doc = ""] | ||
| #[doc = "Newlines are preserved with leading spaces added\nto prettify and avoid misinterpreting leading symbols."] | ||
| #[doc = "like headings and lists."] | ||
| #[doc = ""] | ||
| #[doc = "Line ends with two new lines\n\nShould break to next paragraph"] | ||
| #[no_mangle] | ||
| pub extern "C" fn root() { | ||
| } | ||
| pub extern "C" fn root() {} |
+4
-0
@@ -168,2 +168,6 @@ extern crate cbindgen; | ||
| command.arg("-Wno-return-type-c-linkage"); | ||
| // Similar gcc equivalent, but only for C++. | ||
| if language == Language::Cxx { | ||
| command.arg("-Wno-non-c-typedef-for-linkage"); | ||
| } | ||
| // deprecated warnings should not be errors as it's intended | ||
@@ -170,0 +174,0 @@ command.arg("-Wno-deprecated-declarations"); |
Sorry, the diff of this file is not supported yet