use '#pragma once' in all header files
This commit is contained in:
parent
4f2509cf1b
commit
63eae6dd99
5
fsk.h
5
fsk.h
|
@ -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
2
lm.h
|
@ -1,3 +1,5 @@
|
|||
#pragma once
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#pragma once
|
||||
/* modem states */
|
||||
|
||||
/* sm_process */
|
||||
|
|
1
v21.h
1
v21.h
|
@ -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
v23.h
1
v23.h
|
@ -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
6
v34.h
|
@ -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
|
||||
|
||||
|
|
|
@ -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
2
v8.h
|
@ -1,4 +1,4 @@
|
|||
|
||||
#pragma once
|
||||
#define V8_SAMPLE_RATE 8000
|
||||
|
||||
/* V8 tone ANSam tone synthesis */
|
||||
|
|
6
v90.h
6
v90.h
|
@ -1,11 +1,7 @@
|
|||
#ifndef V90_H
|
||||
#define V90_H
|
||||
#pragma once
|
||||
|
||||
typedef struct {
|
||||
int dummy;
|
||||
} V90_params;
|
||||
|
||||
void V90_test(void);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue