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

Unified Diff: fusl/include/getopt.h

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 side-by-side diff with in-line comments
Download patch
Index: fusl/include/getopt.h
diff --git a/fusl/include/getopt.h b/fusl/include/getopt.h
index c1d0df928f749ac0f3094b80f2422abce23b2dfa..642853914bf2afd167442e6da6d794b3efefcea2 100644
--- a/fusl/include/getopt.h
+++ b/fusl/include/getopt.h
@@ -5,24 +5,27 @@
extern "C" {
#endif
-int getopt(int, char * const [], const char *);
-extern char *optarg;
+int getopt(int, char* const[], const char*);
+extern char* optarg;
extern int optind, opterr, optopt, optreset;
-struct option
-{
- const char *name;
- int has_arg;
- int *flag;
- int val;
+struct option {
+ const char* name;
+ int has_arg;
+ int* flag;
+ int val;
};
-int getopt_long(int, char *const *, const char *, const struct option *, int *);
-int getopt_long_only(int, char *const *, const char *, const struct option *, int *);
+int getopt_long(int, char* const*, const char*, const struct option*, int*);
+int getopt_long_only(int,
+ char* const*,
+ const char*,
+ const struct option*,
+ int*);
-#define no_argument 0
-#define required_argument 1
-#define optional_argument 2
+#define no_argument 0
+#define required_argument 1
+#define optional_argument 2
#ifdef __cplusplus
}
« fusl/arch/aarch64/atomic_arch.h ('K') | « fusl/include/ftw.h ('k') | fusl/include/glob.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698