use '#pragma once' in all header files

This commit is contained in:
Harald Welte 2018-01-01 13:22:50 +01:00
parent 4f2509cf1b
commit 63eae6dd99
14 changed files with 15 additions and 24 deletions

View File

@ -1,3 +1,4 @@
#pragma once
/* display.c */
int lm_display_init(void);

1
dsp.h
View File

@ -1,3 +1,4 @@
#pragma once
typedef signed char s8;
typedef unsigned char u8;

1
dtmf.h
View File

@ -1,3 +1,4 @@
#pragma once
/* modulation */
typedef struct {

5
fsk.h
View File

@ -1,5 +1,4 @@
#ifndef FSK_H
#define FSK_H
#pragma once
typedef struct {
/* parameters */
@ -51,5 +50,3 @@ void FSK_demod_init(FSK_demod_state *s);
void FSK_demod(FSK_demod_state *s, const s16 *samples, unsigned int nb);
void FSK_test(int do_v23);
#endif

2
lm.h
View File

@ -1,3 +1,5 @@
#pragma once
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

View File

@ -1,3 +1,4 @@
#pragma once
/* modem states */
/* sm_process */

1
v21.h
View File

@ -1,3 +1,4 @@
#pragma once
void V21_mod_init(FSK_mod_state *s, int calling, get_bit_func get_bit, void *opaque);
void V21_demod_init(FSK_demod_state *s, int calling, put_bit_func put_bit, void *opaque);

1
v22.h
View File

@ -1,3 +1,4 @@
#pragma once
enum ModulationType {
V34_MOD_600,

1
v23.h
View File

@ -1,3 +1,4 @@
#pragma once
void V23_mod_init(FSK_mod_state *s, int calling, get_bit_func get_bit, void *opaque);
void V23_demod_init(FSK_demod_state *s, int calling, put_bit_func put_bit, void *opaque);

6
v34.h
View File

@ -1,5 +1,4 @@
#ifndef V34_H
#define V34_H
#pragma once
#include "v34priv.h"
@ -13,6 +12,3 @@ int V34_process(struct V34State *s, s16 *output, s16 *input, int nb_samples);
/* V34 half duplex test with line simulator */
void V34_test(void);
#endif

View File

@ -1,5 +1,4 @@
#ifndef V34PRIV_H
#define V34PRIV_H
#pragma once
#define MAX_MAPPING_FRAME_SIZE 79
#define M_MAX 18
@ -256,6 +255,3 @@ typedef struct V34State {
V34DSPState v34_tx;
V34DSPState v34_rx;
} V34State;
#endif

2
v8.h
View File

@ -1,4 +1,4 @@
#pragma once
#define V8_SAMPLE_RATE 8000
/* V8 tone ANSam tone synthesis */

6
v90.h
View File

@ -1,11 +1,7 @@
#ifndef V90_H
#define V90_H
#pragma once
typedef struct {
int dummy;
} V90_params;
void V90_test(void);
#endif

View File

@ -1,5 +1,4 @@
#ifndef V90PRIV_H
#define V90PRIV_H
#pragma once
#define V90_SAMPLE_RATE 8000
#define TREILLIS_MAX_DEPTH 4
@ -61,5 +60,3 @@ typedef struct V90DecodeState {
int Q;
const s16 *ucode_to_linear; /* table to retrieve the linear values from ucodes */
} V90DecodeState;
#endif