Skip to content

Commit 62539b7

Browse files
committed
Replace include guards with #pragma once as config.h requires it anyway
1 parent 26816c6 commit 62539b7

34 files changed

+45
-113
lines changed

src/tX_audiodevice.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
Description: Header to tX_maingui.cc
2121
*/
2222

23-
#ifndef _h_tx_audiodevice
24-
#define _h_tx_audiodevice 1
23+
#pragma once
2524

2625
#include "pthread.h"
2726
#include "tX_global.h"
@@ -204,5 +203,3 @@ class tX_jack_client {
204203
};
205204

206205
#endif
207-
208-
#endif

src/tX_audiofile.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
Description: Header to audiofile.cc
2121
*/
2222

23-
#ifndef _h_tx_audiofile
24-
#define _h_tx_audiofile 1
23+
#pragma once
2524

2625
#define SOX_BLOCKSIZE 32000
2726

@@ -152,5 +151,3 @@ class tx_audiofile {
152151

153152
~tx_audiofile();
154153
};
155-
156-
#endif

src/tX_capabilities.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
Description: Aquire CAP_SYS_NICE through Linux' capabilities.
2121
*/
2222

23+
#pragma once
24+
2325
#include <config.h>
2426

2527
#ifdef USE_CAPABILITIES

src/tX_dial.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
2323
*/
2424

25-
#ifndef __GTK_TX_DIAL_H__
26-
#define __GTK_TX_DIAL_H__
25+
#pragma once
2726

2827
#include <config.h>
2928
#include <gdk/gdk.h>
@@ -74,5 +73,3 @@ void gtk_tx_dial_set_adjustment(GtkTxDial* tx_dial, GtkAdjustment* adjustment);
7473
#ifdef __cplusplus
7574
}
7675
#endif /* __cplusplus */
77-
78-
#endif /* __GTK_TX_DIAL_H__ */

src/tX_dialog.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@
2020
Description: Header to tX_dialog.c
2121
*/
2222

23-
#ifndef _H_TX_DIALOG_
24-
#define _H_TX_DIALOG_
25-
// #include <gdk/gdk.h>
23+
#pragma once
24+
2625
#include <gtk/gtk.h>
2726
extern GtkWidget* opt_dialog;
2827

@@ -32,4 +31,3 @@ extern void destroy_about();
3231
extern void init_tx_options(GtkWidget* dialog);
3332
extern void tX_set_icon(GtkWidget* widget);
3433
extern void apply_options(GtkWidget*);
35-
#endif

src/tX_endian.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
Description: header to tX_endian.c
2121
*/
2222

23-
#ifndef _H_TX_ENDIAN_
24-
#define _H_TX_ENDIAN_
23+
#pragma once
2524

2625
#include <config.h>
2726
#ifdef WORDS_BIGENDIAN
@@ -60,5 +59,3 @@ extern void swap32(int32_t* val);
6059
#endif /* __cplusplus */
6160

6261
#endif /* WORDS_BIGENDIAN */
63-
64-
#endif /* _H_TX_ENDIAN_ */

src/tX_engine.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
Description: Header to tX_engine.cc
2121
*/
2222

23-
#ifndef _TX_ENGINE_H_
24-
#define _TX_ENGINE_H_
23+
#pragma once
2524

2625
#include "tX_audiodevice.h"
2726
#include "tX_midiin.h"
@@ -107,4 +106,3 @@ class tX_engine {
107106
/* void set_grab_request(); */
108107
bool is_stopped() { return stop_flag; }
109108
};
110-
#endif

src/tX_event.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
Description: Header to tX_event.cc
2121
*/
2222

23-
#ifndef _h_tx_event_
24-
#define _h_tx_event_ 1
23+
#pragma once
2524

2625
#include "tX_seqpar.h"
2726
#include "tX_types.h"
@@ -64,5 +63,3 @@ class tX_event {
6463
sp->exec_value(value);
6564
}
6665
};
67-
68-
#endif

src/tX_extdial.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
File: tX_extdial.h
1919
*/
2020

21-
#ifndef _h_tx_extdial_
22-
#define _h_tx_extdial_
21+
#pragma once
2322

2423
#include "tX_dial.h"
2524
#include <gtk/gtk.h>
@@ -56,5 +55,3 @@ class tX_extdial {
5655
static GCallback f_entry(GtkWidget* w, tX_extdial* ed);
5756
static GCallback f_adjustment(GtkWidget* w, tX_extdial* ed);
5857
};
59-
60-
#endif

src/tX_flash.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
Description: Header to tX_flash.c
2121
*/
2222

23-
#ifndef __GTK_TX_FLASH_H__
24-
#define __GTK_TX_FLASH_H__
23+
#pragma once
24+
2525
#include <gdk/gdk.h>
2626
#include <gtk/gtk.h>
2727

@@ -70,4 +70,3 @@ void gtk_tx_flash_update_colors(GtkTxFlash* tx);
7070
#ifdef __cplusplus
7171
}
7272
#endif /* __cplusplus */
73-
#endif

0 commit comments

Comments
 (0)