mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Use '#pragma once' in all headers
This commit is contained in:
parent
b6eac3f001
commit
2ea4b973f0
3 changed files with 3 additions and 12 deletions
|
|
@ -19,12 +19,9 @@
|
|||
* 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef LOG_H
|
||||
#define LOG_H
|
||||
#pragma once
|
||||
|
||||
void log_open(const char *filename);
|
||||
void log_write(char c);
|
||||
void log_close(void);
|
||||
void log_exit(void);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -19,8 +19,7 @@
|
|||
* 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef OPTIONS_H
|
||||
#define OPTIONS_H
|
||||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <limits.h>
|
||||
|
|
@ -49,5 +48,3 @@ struct option_t
|
|||
extern struct option_t option;
|
||||
|
||||
void parse_options(int argc, char *argv[]);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -19,8 +19,7 @@
|
|||
* 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef TTY_H
|
||||
#define TTY_H
|
||||
#pragma once
|
||||
|
||||
#define KEY_QUESTION 0x3f
|
||||
#define KEY_B 0x62
|
||||
|
|
@ -49,5 +48,3 @@ void tty_configure(void);
|
|||
int tty_connect(void);
|
||||
void tty_wait_for_device(void);
|
||||
void list_serial_devices(void);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue