Skip to content

Commit

Permalink
xxx
Browse files Browse the repository at this point in the history
  • Loading branch information
lefessan committed Nov 10, 2023
1 parent 6df1f1d commit 8bba6cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 4 additions & 0 deletions libcob/coblocal.h
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,10 @@ COB_HIDDEN cob_settings *cob_get_settings_ptr (void);
COB_HIDDEN char *cob_strndup (const char *, const size_t);


/* Function called by the runtime at the end of execution to save the
* profiling information in a file. */
COB_HIDDEN void cob_prof_end (void);

enum cob_datetime_res {
DTR_DATE,
DTR_TIME_NO_NANO,
Expand Down
8 changes: 2 additions & 6 deletions libcob/cobprof.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
along with GnuCOBOL. If not, see <https://www.gnu.org/licenses/>.
*/

#ifndef cob_prof_h
#define cob_prof_h
#ifndef COB_PROF_H
#define COB_PROF_H

#include <stddef.h>
#include "common.h"
Expand Down Expand Up @@ -53,9 +53,5 @@ COB_EXPIMP void cob_prof_enter_section (struct cobprof_info *, int);
COB_EXPIMP void cob_prof_exit_section (struct cobprof_info *, int);
COB_EXPIMP void cob_prof_goto (struct cobprof_info *, int);

/* Function called by the runtime at the end of execution to save the
* profiling information in a file. */
COB_EXPIMP void cob_prof_end (void);

#endif

2 changes: 0 additions & 2 deletions libcob/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
along with GnuCOBOL. If not, see <https://www.gnu.org/licenses/>.
*/

#include "common.h"
#include "tarstamp.h"
#include "config.h"

Expand Down Expand Up @@ -162,7 +161,6 @@
/* include internal and external libcob definitions, forcing exports */
#define COB_LIB_EXPIMP
#include "coblocal.h"
#include "cobprof.h"

#include "cobgetopt.h"

Expand Down

0 comments on commit 8bba6cc

Please sign in to comment.