fix: use `#pragma once' instead of guards

main
Tom MTT. 2 years ago
parent 47e6204e08
commit c2c5440b21

@ -31,8 +31,7 @@
* by 20h
*/
#ifndef _ARG_H_
#define _ARG_H_
#pragma once
#ifndef COSMOPOLITAN
#include <stdlib.h>
@ -79,5 +78,3 @@ extern char *argv0;
(brk_ = 1, (argv[0][i_+1] != '\0')?\
(&argv[0][i_+1]) :\
(argc--, argv++, argv[0])))
#endif

@ -11,8 +11,7 @@
* <https://basedwa.re/tmtt/feuille/src/branch/main/LICENSE>.
*/
#ifndef _BIN_H_
#define _BIN_H_
#pragma once
#include "feuille.h"
@ -21,5 +20,3 @@ int write_paste(char *, unsigned long, char *);
char *generate_id(int);
char *create_url(char *);
#endif

@ -1,5 +1,5 @@
# feuille version
VERSION = 2.1.2
VERSION = 2.1.4
# paths (customize them to fit your system)
PREFIX = /usr/local

@ -14,7 +14,7 @@
. ftr VB CB
. ftr VBI CBI
.\}
.TH "feuille" "1" "November 2022" "feuille 2.1.2" ""
.TH "feuille" "1" "November 2022" "feuille 2.1.4" ""
.hy
.SH NAME
.PP

@ -11,8 +11,7 @@
* <https://basedwa.re/tmtt/feuille/src/branch/main/LICENSE>.
*/
#ifndef _FEUILLE_H_
#define _FEUILLE_H_
#pragma once
typedef struct Settings {
char *address;
@ -32,5 +31,3 @@ typedef struct Settings {
} Settings;
extern Settings settings;
#endif

@ -11,8 +11,7 @@
* <https://basedwa.re/tmtt/feuille/src/branch/main/LICENSE>.
*/
#ifndef _SERVER_H_
#define _SERVER_H_
#pragma once
#include "feuille.h"
@ -23,5 +22,3 @@ void close_connection(int);
unsigned long read_paste(int, char **);
int send_response(int, char *);
#endif

@ -11,11 +11,8 @@
* <https://basedwa.re/tmtt/feuille/src/branch/main/LICENSE>.
*/
#ifndef _UTIL_H_
#define _UTIL_H_
#pragma once
void die(int, char *, ...);
void error(char *, ...);
void verbose(int, char *, ...);
#endif

Loading…
Cancel
Save