Skip to content

Commit

Permalink
cntraining: Replace proprietary BOOL8 by standard bool data type
Browse files Browse the repository at this point in the history
Add also "static" attribute to local functions and remove an old comment.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Jun 4, 2018
1 parent 45b11cd commit b292013
Showing 1 changed file with 9 additions and 22 deletions.
31 changes: 9 additions & 22 deletions src/training/cntraining.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,11 @@ DECLARE_STRING_PARAM_FLAG(D);
Private Function Prototypes
----------------------------------------------------------------------------*/

void WriteNormProtos(const char *Directory, LIST LabeledProtoList,
const FEATURE_DESC_STRUCT *feature_desc);
static void WriteNormProtos(const char *Directory, LIST LabeledProtoList,
const FEATURE_DESC_STRUCT *feature_desc);

/*
PARAMDESC *ConvertToPARAMDESC(
PARAM_DESC* Param_Desc,
int N);
*/

void WriteProtos(
FILE *File,
uint16_t N,
LIST ProtoList,
BOOL8 WriteSigProtos,
BOOL8 WriteInsigProtos);
static void WriteProtos(FILE* File, uint16_t N, LIST ProtoList,
bool WriteSigProtos, bool WriteInsigProtos);

/*----------------------------------------------------------------------------
Global Data Definitions and Declarations
Expand Down Expand Up @@ -216,8 +206,8 @@ int main(int argc, char *argv[]) {
* @note Exceptions: none
* @note History: Fri Aug 18 16:17:06 1989, DSJ, Created.
*/
void WriteNormProtos(const char *Directory, LIST LabeledProtoList,
const FEATURE_DESC_STRUCT *feature_desc) {
static void WriteNormProtos(const char *Directory, LIST LabeledProtoList,
const FEATURE_DESC_STRUCT *feature_desc) {
FILE *File;
STRING Filename;
LABELEDLIST LabeledProto;
Expand Down Expand Up @@ -254,12 +244,9 @@ void WriteNormProtos(const char *Directory, LIST LabeledProtoList,
} // WriteNormProtos

/*-------------------------------------------------------------------------*/
void WriteProtos(
FILE *File,
uint16_t N,
LIST ProtoList,
BOOL8 WriteSigProtos,
BOOL8 WriteInsigProtos)

static void WriteProtos(FILE* File, uint16_t N, LIST ProtoList,
bool WriteSigProtos, bool WriteInsigProtos)
{
PROTOTYPE *Proto;

Expand Down

0 comments on commit b292013

Please sign in to comment.