Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(327)

Side by Side Diff: fusl/crt/crt1.c

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #include <features.h> 1 #include <features.h>
2 2
3 #define START "_start" 3 #define START "_start"
4 4
5 #include "crt_arch.h" 5 #include "crt_arch.h"
6 6
7 int main(); 7 int main();
8 void _init() __attribute__((weak)); 8 void _init() __attribute__((weak));
9 void _fini() __attribute__((weak)); 9 void _fini() __attribute__((weak));
10 _Noreturn int __libc_start_main(int (*)(), int, char **, 10 _Noreturn int __libc_start_main(int (*)(),
11 » void (*)(), void(*)(), void(*)()); 11 int,
12 char**,
13 void (*)(),
14 void (*)(),
15 void (*)());
12 16
13 void _start_c(long *p) 17 void _start_c(long* p) {
14 { 18 int argc = p[0];
15 » int argc = p[0]; 19 char** argv = (void*)(p + 1);
16 » char **argv = (void *)(p+1); 20 __libc_start_main(main, argc, argv, _init, _fini, 0);
17 » __libc_start_main(main, argc, argv, _init, _fini, 0);
18 } 21 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698