| ... | ... |
@@ -1,6 +1,10 @@ |
| 1 | 1 |
#ifndef OPTIONS_H |
| 2 | 2 |
#define OPTIONS_H OPTIONS_H |
| 3 | 3 |
|
| 4 |
+#ifdef __cplusplus |
|
| 5 |
+extern "C" {
|
|
| 6 |
+#endif |
|
| 7 |
+ |
|
| 4 | 8 |
typedef struct {
|
| 5 | 9 |
int benchmark; |
| 6 | 10 |
const char *filter; |
| ... | ... |
@@ -18,4 +22,8 @@ typedef struct {
|
| 18 | 22 |
void options_init(options_t *options); |
| 19 | 23 |
void options_parse(options_t *options, int argc, char *argv[]); |
| 20 | 24 |
|
| 25 |
+#ifdef __cplusplus |
|
| 26 |
+} |
|
| 27 |
+#endif |
|
| 28 |
+ |
|
| 21 | 29 |
#endif |
Update tty to print newline as space
Add tty_putc
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,12 @@ |
| 1 |
+typedef struct {
|
|
| 2 |
+ int benchmark; |
|
| 3 |
+ const char *filter; |
|
| 4 |
+ const char *init_search; |
|
| 5 |
+ const char *tty_filename; |
|
| 6 |
+ int show_scores; |
|
| 7 |
+ unsigned int num_lines; |
|
| 8 |
+ unsigned int scrolloff; |
|
| 9 |
+ const char *prompt; |
|
| 10 |
+} options_t; |
|
| 11 |
+ |
|
| 12 |
+void options_parse(options_t *options, int argc, char *argv[]); |