Skip to content

Commit

Permalink
version
Browse files Browse the repository at this point in the history
  • Loading branch information
thradams committed Feb 29, 2024
1 parent 7562c88 commit 75f566e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 25 deletions.
34 changes: 12 additions & 22 deletions src/file.c
Original file line number Diff line number Diff line change
@@ -1,28 +1,18 @@
extern void puts(const char*);
//#include <stdio.h>

struct { bool success; int value; } parse(const char* s)
{
if (s == 0)
return (typeof(parse(0))) { false, 1 };

typedef struct {} x86_64;
typedef struct {} i386;

struct x86_64 { x86_64 type; };
struct i386 { i386 type; };

typedef union {
typeof(
_Generic(
&(char[sizeof sizeof 1]) { 0 },
char(*)[4]:(struct i386) {}.type,
char(*)[8] : (struct x86_64) {}.type)
) cpu_type;
} arch;
return (typeof(parse(0))) { true, 1 };
};

int main(void)
int main()
{
puts(_Generic(
(arch*)
auto r = parse("1");
if (r.success)
{
0
}->cpu_type,
x86_64:"x86_64",
i386 : "i386"));
// printf("%d", r.value);
}
}
2 changes: 1 addition & 1 deletion src/lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -21960,7 +21960,7 @@ void flow_visit_function(struct flow_visit_ctx* ctx, struct declaration* p_decla

//#pragma once

#define CAKE_VERSION "0.7.5"
#define CAKE_VERSION "0.7.6"

//0.7.5
// pragma diagnostic error, warning, note, ignore working
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#define CAKE_VERSION "0.7.5"
#define CAKE_VERSION "0.7.6"

//0.7.5
// pragma diagnostic error, warning, note, ignore working
Expand Down
2 changes: 1 addition & 1 deletion src/web/cake.js

Large diffs are not rendered by default.

0 comments on commit 75f566e

Please sign in to comment.