FrontISTR  5.7.0
Large-scale structural analysis program with finit element method
hecmw_log.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <stdarg.h>
#include "hecmw_config.h"
#include "hecmw_util.h"
#include "hecmw_log.h"
Include dependency graph for hecmw_log.c:

Go to the source code of this file.

Data Structures

struct  loglv_ent
 
struct  log_ent
 

Macros

#define HECMW_LINE_MAX   1023
 
#define USEFUL_LOGLVS(lv)   ((lv) ? (lv | (lv - 1)) : 0)
 

Functions

void HECMW_setloglv (int loglv)
 
int HECMW_openlog (const char *logfile, int loglv, int options)
 
int HECMW_closelog (int id)
 
int HECMW_vlog (int loglv, const char *fmt, va_list ap)
 
int HECMW_log (int loglv, const char *fmt,...)
 
void HECMW_log_set_enable (int from, int to, int true_or_false)
 
void hecmw_log_if (int *loglv, char *msg, int len)
 
void hecmw_log_if_ (int *loglv, char *msg, int len)
 
void hecmw_log_if__ (int *loglv, char *msg, int len)
 
void HECMW_LOG_IF (int *loglv, char *msg, int len)
 
void hecmw_setloglv_if (int *loglv)
 
void hecmw_setloglv_if_ (int *loglv)
 
void hecmw_setloglv_if__ (int *loglv)
 
void HECMW_SETLOGLV_IF (int *loglv)
 
void hecmw_log_set_enable_if (int *from, int *to, int *true_or_false)
 
void hecmw_log_set_enable_if_ (int *from, int *to, int *true_or_false)
 
void hecmw_log_set_enable_if__ (int *from, int *to, int *true_or_false)
 
void HECMW_LOG_SET_ENABLE_IF (int *from, int *to, int *true_or_false)
 
void hecmw_openlog_if (char *logfile, int *loglv, int *options, int *id, int *ierror, int len)
 
void hecmw_openlog_if_ (char *logfile, int *loglv, int *options, int *id, int *ierror, int len)
 
void hecmw_openlog_if__ (char *logfile, int *loglv, int *options, int *id, int *ierror, int len)
 
void HECMW_OPENLOG_IF (char *logfile, int *loglv, int *options, int *id, int *ierror, int len)
 
void hecmw_closelog_if (int *id, int *ierror)
 
void hecmw_closelog_if_ (int *id, int *ierror)
 
void hecmw_closelog_if__ (int *id, int *ierror)
 
void HECMW_CLOSELOG_IF (int *id, int *ierror)
 

Macro Definition Documentation

◆ HECMW_LINE_MAX

#define HECMW_LINE_MAX   1023

Definition at line 19 of file hecmw_log.c.

◆ USEFUL_LOGLVS

#define USEFUL_LOGLVS (   lv)    ((lv) ? (lv | (lv - 1)) : 0)

Definition at line 21 of file hecmw_log.c.

Function Documentation

◆ HECMW_closelog()

int HECMW_closelog ( int  id)

Definition at line 130 of file hecmw_log.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hecmw_closelog_if()

void hecmw_closelog_if ( int *  id,
int *  ierror 
)

Definition at line 360 of file hecmw_log.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HECMW_CLOSELOG_IF()

void HECMW_CLOSELOG_IF ( int *  id,
int *  ierror 
)

Definition at line 374 of file hecmw_log.c.

Here is the call graph for this function:

◆ hecmw_closelog_if_()

void hecmw_closelog_if_ ( int *  id,
int *  ierror 
)

Definition at line 368 of file hecmw_log.c.

Here is the call graph for this function:

◆ hecmw_closelog_if__()

void hecmw_closelog_if__ ( int *  id,
int *  ierror 
)

Definition at line 370 of file hecmw_log.c.

Here is the call graph for this function:

◆ HECMW_log()

int HECMW_log ( int  loglv,
const char *  fmt,
  ... 
)

Definition at line 260 of file hecmw_log.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hecmw_log_if()

void hecmw_log_if ( int *  loglv,
char *  msg,
int  len 
)

Definition at line 276 of file hecmw_log.c.

Here is the caller graph for this function:

◆ HECMW_LOG_IF()

void HECMW_LOG_IF ( int *  loglv,
char *  msg,
int  len 
)

Definition at line 295 of file hecmw_log.c.

◆ hecmw_log_if_()

void hecmw_log_if_ ( int *  loglv,
char *  msg,
int  len 
)

Definition at line 287 of file hecmw_log.c.

◆ hecmw_log_if__()

void hecmw_log_if__ ( int *  loglv,
char *  msg,
int  len 
)

Definition at line 291 of file hecmw_log.c.

◆ HECMW_log_set_enable()

void HECMW_log_set_enable ( int  from,
int  to,
int  true_or_false 
)

Definition at line 269 of file hecmw_log.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hecmw_log_set_enable_if()

void hecmw_log_set_enable_if ( int *  from,
int *  to,
int *  true_or_false 
)

Definition at line 311 of file hecmw_log.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HECMW_LOG_SET_ENABLE_IF()

void HECMW_LOG_SET_ENABLE_IF ( int *  from,
int *  to,
int *  true_or_false 
)

Definition at line 323 of file hecmw_log.c.

Here is the call graph for this function:

◆ hecmw_log_set_enable_if_()

void hecmw_log_set_enable_if_ ( int *  from,
int *  to,
int *  true_or_false 
)

Definition at line 315 of file hecmw_log.c.

Here is the call graph for this function:

◆ hecmw_log_set_enable_if__()

void hecmw_log_set_enable_if__ ( int *  from,
int *  to,
int *  true_or_false 
)

Definition at line 319 of file hecmw_log.c.

Here is the call graph for this function:

◆ HECMW_openlog()

int HECMW_openlog ( const char *  logfile,
int  loglv,
int  options 
)

Definition at line 64 of file hecmw_log.c.

◆ hecmw_openlog_if()

void hecmw_openlog_if ( char *  logfile,
int *  loglv,
int *  options,
int *  id,
int *  ierror,
int  len 
)

Definition at line 329 of file hecmw_log.c.

Here is the caller graph for this function:

◆ HECMW_OPENLOG_IF()

void HECMW_OPENLOG_IF ( char *  logfile,
int *  loglv,
int *  options,
int *  id,
int *  ierror,
int  len 
)

Definition at line 353 of file hecmw_log.c.

◆ hecmw_openlog_if_()

void hecmw_openlog_if_ ( char *  logfile,
int *  loglv,
int *  options,
int *  id,
int *  ierror,
int  len 
)

Definition at line 343 of file hecmw_log.c.

◆ hecmw_openlog_if__()

void hecmw_openlog_if__ ( char *  logfile,
int *  loglv,
int *  options,
int *  id,
int *  ierror,
int  len 
)

Definition at line 348 of file hecmw_log.c.

◆ HECMW_setloglv()

void HECMW_setloglv ( int  loglv)

Definition at line 57 of file hecmw_log.c.

Here is the caller graph for this function:

◆ hecmw_setloglv_if()

void hecmw_setloglv_if ( int *  loglv)

Definition at line 301 of file hecmw_log.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HECMW_SETLOGLV_IF()

void HECMW_SETLOGLV_IF ( int *  loglv)

Definition at line 307 of file hecmw_log.c.

Here is the call graph for this function:

◆ hecmw_setloglv_if_()

void hecmw_setloglv_if_ ( int *  loglv)

Definition at line 303 of file hecmw_log.c.

Here is the call graph for this function:

◆ hecmw_setloglv_if__()

void hecmw_setloglv_if__ ( int *  loglv)

Definition at line 305 of file hecmw_log.c.

Here is the call graph for this function:

◆ HECMW_vlog()

int HECMW_vlog ( int  loglv,
const char *  fmt,
va_list  ap 
)

Definition at line 223 of file hecmw_log.c.

Here is the caller graph for this function: