Skip to content

Commit b292013

Browse files
committed
cntraining: Replace proprietary BOOL8 by standard bool data type
Add also "static" attribute to local functions and remove an old comment. Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent 45b11cd commit b292013

File tree

1 file changed

+9
-22
lines changed

1 file changed

+9
-22
lines changed

src/training/cntraining.cpp

+9-22
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,11 @@ DECLARE_STRING_PARAM_FLAG(D);
4545
Private Function Prototypes
4646
----------------------------------------------------------------------------*/
4747

48-
void WriteNormProtos(const char *Directory, LIST LabeledProtoList,
49-
const FEATURE_DESC_STRUCT *feature_desc);
48+
static void WriteNormProtos(const char *Directory, LIST LabeledProtoList,
49+
const FEATURE_DESC_STRUCT *feature_desc);
5050

51-
/*
52-
PARAMDESC *ConvertToPARAMDESC(
53-
PARAM_DESC* Param_Desc,
54-
int N);
55-
*/
56-
57-
void WriteProtos(
58-
FILE *File,
59-
uint16_t N,
60-
LIST ProtoList,
61-
BOOL8 WriteSigProtos,
62-
BOOL8 WriteInsigProtos);
51+
static void WriteProtos(FILE* File, uint16_t N, LIST ProtoList,
52+
bool WriteSigProtos, bool WriteInsigProtos);
6353

6454
/*----------------------------------------------------------------------------
6555
Global Data Definitions and Declarations
@@ -216,8 +206,8 @@ int main(int argc, char *argv[]) {
216206
* @note Exceptions: none
217207
* @note History: Fri Aug 18 16:17:06 1989, DSJ, Created.
218208
*/
219-
void WriteNormProtos(const char *Directory, LIST LabeledProtoList,
220-
const FEATURE_DESC_STRUCT *feature_desc) {
209+
static void WriteNormProtos(const char *Directory, LIST LabeledProtoList,
210+
const FEATURE_DESC_STRUCT *feature_desc) {
221211
FILE *File;
222212
STRING Filename;
223213
LABELEDLIST LabeledProto;
@@ -254,12 +244,9 @@ void WriteNormProtos(const char *Directory, LIST LabeledProtoList,
254244
} // WriteNormProtos
255245

256246
/*-------------------------------------------------------------------------*/
257-
void WriteProtos(
258-
FILE *File,
259-
uint16_t N,
260-
LIST ProtoList,
261-
BOOL8 WriteSigProtos,
262-
BOOL8 WriteInsigProtos)
247+
248+
static void WriteProtos(FILE* File, uint16_t N, LIST ProtoList,
249+
bool WriteSigProtos, bool WriteInsigProtos)
263250
{
264251
PROTOTYPE *Proto;
265252

0 commit comments

Comments
 (0)