Skip to content

Commit 38411f3

Browse files
committed
Merge branch 'testFailOnGcc5' into release/v1.5.1J
2 parents 831502c + ec4462f commit 38411f3

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

libcob.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ extern "C" {
3737
#include <libcob/strings.h>
3838
#include <libcob/termio.h>
3939
#include <libcob/intrinsic.h>
40+
#include <libcob/codegen.h>
4041

4142
#ifdef __cplusplus
4243
}

libcob/fileio.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ struct dirent *listdir_filedata;
215215
#define READOPTSSIZE 4
216216
#define STARTCONDSIZE 2
217217
#define EXCPTCODESIZE 6
218+
#define FNSTATUSSIZE 3
218219

219220
cob_file *cob_error_file;
220221

@@ -4120,7 +4121,7 @@ cob_invoke_fun (int operate, char *f, cob_field *key, char *rec,
41204121
char oper[OPENMODESIZE];
41214122
char excpcode[EXCPTCODESIZE];
41224123
char *p_excpcode = excpcode;
4123-
char tmpfnstatus[2];
4124+
char tmpfnstatus[FNSTATUSSIZE];
41244125
char *p_tmpfnstatus = tmpfnstatus;
41254126
int status1 = 0;
41264127
int (*funcint)();

libcob/numeric.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,10 @@
3030
/* Force symbol exports */
3131
#define COB_LIB_EXPIMP
3232

33+
#define COB_LIB_INCLUDE
3334
#include "libcob.h"
3435
#include "coblocal.h"
3536

36-
#define COB_LIB_INCLUDE
37-
#include "codegen.h"
38-
3937
#define DECIMAL_NAN -128
4038
#define DECIMAL_CHECK(d1,d2) \
4139
if (unlikely(d1->scale == DECIMAL_NAN || d2->scale == DECIMAL_NAN)) { \

0 commit comments

Comments
 (0)