summaryrefslogtreecommitdiffhomepage
path: root/Examples/ExampleCDialect.c
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/ExampleCDialect.c')
-rw-r--r--Examples/ExampleCDialect.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/Examples/ExampleCDialect.c b/Examples/ExampleCDialect.c
index 8c65bf0..e6d92fb 100644
--- a/Examples/ExampleCDialect.c
+++ b/Examples/ExampleCDialect.c
@@ -1,17 +1,20 @@
-struct {
+struct
+{
int a;
int b;
int c;
};
-int __ImageStart(int argc, char const* argv[]) {
- int* foo = 0x1000;
+int __ImageStart(int argc, char const* argv[])
+{
+ int* foo = 0x1000;
- if (foo == 57) {
- foo = 0x2000;
- *foo = 5;
- return foo;
- }
+ if (foo == 57)
+ {
+ foo = 0x2000;
+ *foo = 5;
+ return foo;
+ }
- return 57;
+ return 57;
}