From b9e0458d973c6da79f3d9aad7bebd8063cd0718d Mon Sep 17 00:00:00 2001 From: Reini Urban Date: Fri, 27 Oct 2023 12:47:09 +0200 Subject: [PATCH] compcert: use of undeclared identifier __FUNCTION__ a compiler extension --- include/dwg_api.h | 10 +- src/bits.c | 114 +-- src/dec_macros.h | 4 +- src/decode.c | 2 +- src/decode_r2007.c | 11 +- src/dwg_api.c | 2040 ++++++++++++++++++++++---------------------- src/dynapi.c | 62 +- src/gen-dynapi.pl | 62 +- src/in_dxf.c | 10 +- src/in_json.c | 15 +- 10 files changed, 1179 insertions(+), 1151 deletions(-) diff --git a/include/dwg_api.h b/include/dwg_api.h index e991bbd24f..968467ed58 100644 --- a/include/dwg_api.h +++ b/include/dwg_api.h @@ -25,11 +25,13 @@ #include #include "dwg.h" +#ifndef __attribute_deprecated__ /* Since version 3.2, gcc allows marking deprecated functions. */ -#if (defined(__GNUC__) && ((__GNUC__ * 100) + __GNUC_MINOR__) >= 302) -# define __attribute_deprecated__ __attribute__ ((__deprecated__)) -#else -# define __attribute_deprecated__ +# if (defined(__GNUC__) && ((__GNUC__ * 100) + __GNUC_MINOR__) >= 302) +# define __attribute_deprecated__ __attribute__ ((__deprecated__)) +# else +# define __attribute_deprecated__ +# endif #endif #if defined(__clang__) && defined(__has_extension) diff --git a/src/bits.c b/src/bits.c index f8943ddd50..0c8bbde35e 100644 --- a/src/bits.c +++ b/src/bits.c @@ -69,7 +69,7 @@ bit_advance_position (Bit_Chain *dat, long advance) loglevel = dat->opts & DWG_OPTS_LOGLEVEL; LOG_ERROR ("%s buffer overflow at pos %" PRIuSIZE ".%u, size %" PRIuSIZE ", advance by %ld", - __FUNCTION__, dat->byte, dat->bit, dat->size, advance); + "bit_advance_position", dat->byte, dat->bit, dat->size, advance); } else if ((long)pos + advance < 0) { @@ -104,7 +104,7 @@ bit_set_position (Bit_Chain *dat, size_t bitpos) { loglevel = dat->opts & DWG_OPTS_LOGLEVEL; LOG_ERROR ("%s buffer overflow at %" PRIuSIZE ", have %" PRIuSIZE, - __FUNCTION__, dat->byte, dat->size) + "bit_set_position", dat->byte, dat->size) } } @@ -162,7 +162,7 @@ bit_read_B (Bit_Chain *dat) unsigned char result; unsigned char byte; - CHK_OVERFLOW (__FUNCTION__, 0) + CHK_OVERFLOW ("bit_read_B", 0) byte = dat->chain[dat->byte]; result = (byte & (0x80 >> dat->bit)) >> (7 - dat->bit); @@ -194,7 +194,7 @@ bit_read_BB (Bit_Chain *dat) unsigned char result; unsigned char byte; - CHK_OVERFLOW (__FUNCTION__, 0) + CHK_OVERFLOW ("bit_read_BB", 0) byte = dat->chain[dat->byte]; if (dat->bit < 7) result = (byte & (0xc0 >> dat->bit)) >> (6 - dat->bit); @@ -326,7 +326,7 @@ bit_read_RC (Bit_Chain *dat) unsigned char result; unsigned char byte; - CHK_OVERFLOW_PLUS (1, __FUNCTION__, 0) + CHK_OVERFLOW_PLUS (1, "bit_read_RC", 0) byte = dat->chain[dat->byte]; if (dat->bit == 0) result = byte; @@ -341,7 +341,7 @@ bit_read_RC (Bit_Chain *dat) else { loglevel = dat->opts & DWG_OPTS_LOGLEVEL; - LOG_ERROR ("%s buffer overflow at %" PRIuSIZE, __FUNCTION__, + LOG_ERROR ("%s buffer overflow at %" PRIuSIZE, "bit_read_RC", dat->byte + 1) return 0; } @@ -389,7 +389,7 @@ bit_read_RS (Bit_Chain *dat) // least significant byte first byte1 = bit_read_RC (dat); - CHK_OVERFLOW (__FUNCTION__, 0) + CHK_OVERFLOW ("bit_read_RS", 0) byte2 = bit_read_RC (dat); return (BITCODE_RS)(((BITCODE_RS)byte2 << 8) | byte1); } @@ -413,7 +413,7 @@ bit_read_RS_BE (Bit_Chain *dat) // most significant byte first byte1 = bit_read_RC (dat); - CHK_OVERFLOW (__FUNCTION__, 0) + CHK_OVERFLOW ("bit_read_RS_BE", 0) byte2 = bit_read_RC (dat); return (BITCODE_RS)(((BITCODE_RS)byte1 << 8) | byte2); } @@ -437,7 +437,7 @@ bit_read_RL (Bit_Chain *dat) // least significant word first word1 = bit_read_RS (dat); - CHK_OVERFLOW (__FUNCTION__, 0) + CHK_OVERFLOW ("bit_read_RL", 0) word2 = bit_read_RS (dat); return ((((uint32_t)word2) << 16) | ((uint32_t)word1)); } @@ -462,7 +462,7 @@ bit_read_RL_BE (Bit_Chain *dat) // most significant word first word1 = bit_read_RS (dat); - CHK_OVERFLOW (__FUNCTION__, 0) + CHK_OVERFLOW ("bit_read_RL_BE", 0) word2 = bit_read_RS (dat); return ((((uint32_t)word1) << 16) | ((uint32_t)word2)); } @@ -492,7 +492,7 @@ bit_read_RLL (Bit_Chain *dat) ) { BITCODE_RLL v; - CHK_OVERFLOW_PLUS (8, __FUNCTION__, 0) + CHK_OVERFLOW_PLUS (8, "bit_read_RLL", 0) v = le64toh (*(uint64_t *)&dat->chain[dat->byte]); dat->byte += 8; return v; @@ -502,7 +502,7 @@ bit_read_RLL (Bit_Chain *dat) BITCODE_RL word1, word2; // least significant word first word1 = bit_read_RL (dat); - CHK_OVERFLOW (__FUNCTION__, 0) + CHK_OVERFLOW ("bit_read_RLL", 0) word2 = bit_read_RL (dat); return ((((uint64_t)word2) << 32) | ((uint64_t)word1)); } @@ -522,7 +522,7 @@ bit_read_RLL_BE (Bit_Chain *dat) ) { BITCODE_RLL v; - CHK_OVERFLOW_PLUS (8, __FUNCTION__, 0) + CHK_OVERFLOW_PLUS (8, "bit_read_RLL_BE", 0) v = be64toh (*(uint64_t *)&dat->chain[dat->byte]); dat->byte += 8; return v; @@ -532,7 +532,7 @@ bit_read_RLL_BE (Bit_Chain *dat) // most significant word first BITCODE_RL word1, word2; word1 = bit_read_RL (dat); - CHK_OVERFLOW (__FUNCTION__, 0) + CHK_OVERFLOW ("bit_read_RLL_BE", 0) word2 = bit_read_RL (dat); return ((((uint64_t)word1) << 32) | ((uint64_t)word2)); } @@ -568,7 +568,7 @@ bit_read_RD (Bit_Chain *dat) uint64_t u; double d; } u; - CHK_OVERFLOW_PLUS (8, __FUNCTION__, bit_nan ()) + CHK_OVERFLOW_PLUS (8, "bit_read_RD", bit_nan ()) if (!dat->bit && #ifdef HAVE_ALIGNED_ACCESS_REQUIRED !((intptr_t)&dat->chain[dat->byte] % 8) @@ -610,7 +610,7 @@ bit_read_BS (Bit_Chain *dat) const unsigned char two_bit_code = bit_read_BB (dat); if (two_bit_code == 0) { - CHK_OVERFLOW (__FUNCTION__, 0) + CHK_OVERFLOW ("bit_read_BS", 0) return bit_read_RS (dat); } else if (two_bit_code == 1) @@ -652,7 +652,7 @@ bit_read_BL (Bit_Chain *dat) const unsigned char two_bit_code = bit_read_BB (dat); if (two_bit_code == 0) { - CHK_OVERFLOW (__FUNCTION__, 0) + CHK_OVERFLOW ("bit_read_BL", 0) return bit_read_RL (dat); } else if (two_bit_code == 1) @@ -720,7 +720,7 @@ bit_read_BOT (Bit_Chain *dat) if (two_bit_code == 0) { - CHK_OVERFLOW (__FUNCTION__, 0) + CHK_OVERFLOW ("bit_read_BOT", 0) return bit_read_RC (dat); } else if (two_bit_code == 1) @@ -772,7 +772,7 @@ bit_read_BLL (Bit_Chain *dat) case 4: return bit_read_RL (dat); default: - CHK_OVERFLOW (__FUNCTION__, 0) + CHK_OVERFLOW ("bit_read_BLL", 0) for (i = 0; i < len; i++) { result <<= 8; @@ -793,7 +793,7 @@ bit_read_3BLL (Bit_Chain *dat) unsigned int i, len; BITCODE_BLL result = 0ULL; len = bit_read_3B (dat); - CHK_OVERFLOW (__FUNCTION__, 0) + CHK_OVERFLOW ("bit_read_3BLL", 0) for (i = 0; i < len; i++) { result <<= 8; @@ -861,7 +861,7 @@ bit_read_BD (Bit_Chain *dat) two_bit_code = bit_read_BB (dat); if (two_bit_code == 0) { - CHK_OVERFLOW (__FUNCTION__, bit_nan ()) + CHK_OVERFLOW ("bit_read_BD", bit_nan ()) return bit_read_RD (dat); } else if (two_bit_code == 1) @@ -939,7 +939,7 @@ bit_read_MC (Bit_Chain *dat) for (i = 4, j = 0; i >= 0; i--, j += 7) { byte[i] = bit_read_RC (dat); - CHK_OVERFLOW (__FUNCTION__, 0) + CHK_OVERFLOW ("bit_read_MC", 0) if (!(byte[i] & 0x80)) { if ((byte[i] & 0x40)) @@ -1018,7 +1018,7 @@ bit_read_UMC (Bit_Chain *dat) for (i = MAX_BYTE_UMC - 1, j = 0; i >= 0; i--, j += 7) { byte[i] = bit_read_RC (dat); - CHK_OVERFLOW (__FUNCTION__, 0) + CHK_OVERFLOW ("bit_read_UMC", 0) if (!(byte[i] & 0x80)) { result |= (((BITCODE_UMC)byte[i]) << j); @@ -1084,7 +1084,7 @@ bit_read_MS (Bit_Chain *dat) for (i = 1, j = 0; i >= 0; i--, j += 15) { word[i] = bit_read_RS (dat); - CHK_OVERFLOW (__FUNCTION__, 0) + CHK_OVERFLOW ("bit_read_MS", 0) if (!(word[i] & 0x8000)) { result |= ((BITCODE_MS)word[i] << j); @@ -1173,7 +1173,7 @@ bit_read_DD (Bit_Chain *dat, double default_value) two_bit_code = bit_read_BB (dat); if (two_bit_code == 0) { - CHK_OVERFLOW (__FUNCTION__, bit_nan ()) + CHK_OVERFLOW ("bit_read_DD", bit_nan ()) return default_value; } if (two_bit_code == 3) @@ -1182,7 +1182,7 @@ bit_read_DD (Bit_Chain *dat, double default_value) { // dbl: 7654 3210 uchar_result = (unsigned char *)&default_value; - CHK_OVERFLOW_PLUS (6, __FUNCTION__, bit_nan ()) + CHK_OVERFLOW_PLUS (6, "bit_read_DD", bit_nan ()) #ifdef WORDS_BIGENDIAN uchar_result[7] = bit_read_RC (dat); uchar_result[6] = bit_read_RC (dat); @@ -1200,7 +1200,7 @@ bit_read_DD (Bit_Chain *dat, double default_value) uchar_result[2] = bit_read_RC (dat); uchar_result[3] = bit_read_RC (dat); #endif - CHK_OVERFLOW (__FUNCTION__, bit_nan ()) + CHK_OVERFLOW ("bit_read_DD", bit_nan ()) return default_value; } else /* if (two_bit_code == 1) */ @@ -1208,17 +1208,17 @@ bit_read_DD (Bit_Chain *dat, double default_value) // first 4bits eq, only last 4 #ifdef WORDS_BIGENDIAN uint32_t *result = (uint32_t *)&default_value; - CHK_OVERFLOW_PLUS (4, __FUNCTION__, bit_nan ()) + CHK_OVERFLOW_PLUS (4, "bit_read_DD", bit_nan ()) *result = bit_read_RL (dat); #else uchar_result = (unsigned char *)&default_value; - CHK_OVERFLOW_PLUS (4, __FUNCTION__, bit_nan ()) + CHK_OVERFLOW_PLUS (4, "bit_read_DD", bit_nan ()) uchar_result[0] = bit_read_RC (dat); uchar_result[1] = bit_read_RC (dat); uchar_result[2] = bit_read_RC (dat); uchar_result[3] = bit_read_RC (dat); #endif - CHK_OVERFLOW (__FUNCTION__, bit_nan ()) + CHK_OVERFLOW ("bit_read_DD", bit_nan ()) return default_value; } } @@ -1493,7 +1493,7 @@ bit_check_CRC (Bit_Chain *dat, size_t start_address, uint16_t seed) loglevel = dat->opts & DWG_OPTS_LOGLEVEL; LOG_ERROR ("%s buffer overflow at pos %" PRIuSIZE "-%" PRIuSIZE ", size %" PRIuSIZE, - __FUNCTION__, start_address, dat->byte, dat->size) + "bit_check_CRC", start_address, dat->byte, dat->size) return 0; } assert (dat->byte >= start_address); @@ -1540,7 +1540,7 @@ bit_write_CRC (Bit_Chain *dat, size_t start_address, uint16_t seed) loglevel = dat->opts & DWG_OPTS_LOGLEVEL; LOG_ERROR ("%s buffer overflow at pos %" PRIuSIZE "-%" PRIuSIZE ", size %" PRIuSIZE, - __FUNCTION__, start_address, dat->byte, dat->size) + "bit_write_CRC", start_address, dat->byte, dat->size) return 0; } assert (dat->byte >= start_address); @@ -1570,7 +1570,7 @@ bit_write_CRC_BE (Bit_Chain *dat, size_t start_address, uint16_t seed) loglevel = dat->opts & DWG_OPTS_LOGLEVEL; LOG_ERROR ("%s buffer overflow at pos %" PRIuSIZE "-%" PRIuSIZE ", size %" PRIuSIZE, - __FUNCTION__, start_address, dat->byte, dat->size) + "bit_write_CRC_BE", start_address, dat->byte, dat->size) return 0; } assert (dat->byte >= start_address); @@ -1593,7 +1593,7 @@ bit_read_fixed (Bit_Chain *restrict dat, BITCODE_RC *restrict dest, { loglevel = dat->opts & DWG_OPTS_LOGLEVEL; LOG_ERROR ("%s buffer overflow at pos %" PRIuSIZE ", size %" PRIuSIZE, - __FUNCTION__, dat->byte, dat->size) + "bit_read_fixed", dat->byte, dat->size) memset (dest, 0, length); return; } @@ -1621,7 +1621,7 @@ BITCODE_TF bit_read_TF (Bit_Chain *restrict dat, size_t length) { BITCODE_RC *chain; - CHK_OVERFLOW_PLUS (length, __FUNCTION__, NULL) + CHK_OVERFLOW_PLUS (length, "bit_read_TF", NULL) chain = (BITCODE_RC *)calloc (length + 1, 1); if (!chain) { @@ -1646,7 +1646,7 @@ bit_read_bits (Bit_Chain *dat, size_t bits) unsigned bytes = (bits / 8) & UINT_MAX; int rest = bits % 8; BITCODE_RC *restrict chain; - CHK_OVERFLOW_PLUS (bytes, __FUNCTION__, NULL) + CHK_OVERFLOW_PLUS (bytes, "bit_read_bits", NULL) chain = (BITCODE_RC *)calloc (bytes + (rest ? 2 : 1), 1); if (!chain) { @@ -1715,15 +1715,15 @@ bit_read_TV (Bit_Chain *restrict dat) if (dat->from_version < R_13b1) { - CHK_OVERFLOW_PLUS (2, __FUNCTION__, NULL) + CHK_OVERFLOW_PLUS (2, "bit_read_TV", NULL) length = bit_read_RS (dat); } else { - CHK_OVERFLOW_PLUS (1, __FUNCTION__, NULL) + CHK_OVERFLOW_PLUS (1, "bit_read_TV", NULL) length = bit_read_BS (dat); } - CHK_OVERFLOW_PLUS (length, __FUNCTION__, NULL) + CHK_OVERFLOW_PLUS (length, "bit_read_TV", NULL) if (!loglevel) loglevel = dat->opts & DWG_OPTS_LOGLEVEL; chain = (unsigned char *)malloc (length + 1); @@ -1904,7 +1904,7 @@ bit_wcs2len (const BITCODE_TU restrict wstr) b += 2; c = TU_to_int (b); } - // fprintf (stderr, "* %s: %" PRIuSIZE "\n", __FUNCTION__, len); + // fprintf (stderr, "* %s: %" PRIuSIZE "\n", "bit_wcs2len", len); return len; } else @@ -1915,7 +1915,7 @@ bit_wcs2len (const BITCODE_TU restrict wstr) { len++; } - // fprintf (stderr, "* %s: %" PRIuSIZE "\n", __FUNCTION__, len); + // fprintf (stderr, "* %s: %" PRIuSIZE "\n", "bit_wcs2len", len); return len; } } @@ -2170,9 +2170,9 @@ bit_read_TU (Bit_Chain *restrict dat) unsigned int length; BITCODE_TU ws; - CHK_OVERFLOW_PLUS (1, __FUNCTION__, NULL) + CHK_OVERFLOW_PLUS (1, "bit_read_TU", NULL) length = bit_read_BS (dat); - CHK_OVERFLOW_PLUS (length * 2, __FUNCTION__, NULL) + CHK_OVERFLOW_PLUS (length * 2, "bit_read_TU", NULL) ws = (BITCODE_TU)malloc ((length + 1) * 2); if (!ws) { @@ -2195,7 +2195,7 @@ bit_read_TU_size (Bit_Chain *restrict dat, unsigned int len) unsigned int i; BITCODE_TU chain; - CHK_OVERFLOW_PLUS (len * 2, __FUNCTION__, NULL) + CHK_OVERFLOW_PLUS (len * 2, "bit_read_TU_size", NULL) chain = (BITCODE_TU)malloc ((len + 1) * 2); if (!chain) { @@ -2220,9 +2220,9 @@ bit_read_TU_len (Bit_Chain *restrict dat, unsigned int *lenp) unsigned int length; BITCODE_TU chain; - CHK_OVERFLOW_PLUS (1, __FUNCTION__, NULL) + CHK_OVERFLOW_PLUS (1, "bit_read_TU_len", NULL) length = bit_read_BS (dat); - CHK_OVERFLOW_PLUS (length * 2, __FUNCTION__, NULL) + CHK_OVERFLOW_PLUS (length * 2, "bit_read_TU_len", NULL) chain = (BITCODE_TU)malloc ((length + 1) * 2); if (!chain) { @@ -2248,9 +2248,9 @@ bit_read_T16 (Bit_Chain *restrict dat) BITCODE_RS i, length; BITCODE_TV chain; - CHK_OVERFLOW (__FUNCTION__, NULL) + CHK_OVERFLOW ("bit_read_T16", NULL) length = bit_read_RS (dat); - CHK_OVERFLOW_PLUS (length, __FUNCTION__, NULL) + CHK_OVERFLOW_PLUS (length, "bit_read_T16", NULL) chain = (BITCODE_TV)malloc (length + 1); if (!chain) { @@ -2273,9 +2273,9 @@ bit_read_TU16 (Bit_Chain *restrict dat) BITCODE_RS i, length; BITCODE_TU chain; - CHK_OVERFLOW_PLUS (2, __FUNCTION__, NULL) + CHK_OVERFLOW_PLUS (2, "bit_read_TU16", NULL) length = bit_read_RS (dat); - CHK_OVERFLOW_PLUS (length * 2, __FUNCTION__, NULL) + CHK_OVERFLOW_PLUS (length * 2, "bit_read_TU16", NULL) chain = (BITCODE_TU)malloc ((length + 1) * 2); if (!chain) { @@ -2308,7 +2308,7 @@ bit_read_T32 (Bit_Chain *restrict dat) { loglevel = dat->opts & DWG_OPTS_LOGLEVEL; LOG_ERROR ("%s buffer overflow at %" PRIuSIZE ", size " FORMAT_BLL, - __FUNCTION__, dat->byte, size) + "bit_read_T32", dat->byte, size) return NULL; } wstr = (BITCODE_TU)malloc (size + 2); @@ -2330,7 +2330,7 @@ bit_read_T32 (Bit_Chain *restrict dat) { loglevel = dat->opts & DWG_OPTS_LOGLEVEL; LOG_ERROR ("%s buffer overflow at %" PRIuSIZE ", size " FORMAT_BLL, - __FUNCTION__, dat->byte, size) + "bit_read_T32", dat->byte, size) return NULL; } str = (BITCODE_T32)malloc (size + 1); @@ -2367,7 +2367,7 @@ bit_read_TU32 (Bit_Chain *restrict dat) { loglevel = dat->opts & DWG_OPTS_LOGLEVEL; LOG_ERROR ("%s buffer overflow at %" PRIuSIZE ", size " FORMAT_BLL, - __FUNCTION__, dat->byte, size) + "bit_read_TU32", dat->byte, size) return NULL; } wstr = (BITCODE_TU)malloc (size + 2); @@ -2403,7 +2403,7 @@ bit_read_TU32 (Bit_Chain *restrict dat) { loglevel = dat->opts & DWG_OPTS_LOGLEVEL; LOG_ERROR ("%s buffer overflow at %" PRIuSIZE ", size " FORMAT_BLL, - __FUNCTION__, dat->byte, size) + "bit_read_TU32", dat->byte, size) return NULL; } str = (BITCODE_T32)malloc (size + 1); @@ -3515,12 +3515,12 @@ bit_read_CMC (Bit_Chain *dat, Bit_Chain *str_dat, Dwg_Color *restrict color) color->index = bit_read_BS (dat); if (dat->from_version >= R_2004) // truecolor { - CHK_OVERFLOW_PLUS (1, __FUNCTION__, DWG_ERR_VALUEOUTOFBOUNDS) + CHK_OVERFLOW_PLUS (1, "bit_read_CMC", DWG_ERR_VALUEOUTOFBOUNDS) color->rgb = bit_read_BL (dat); - CHK_OVERFLOW_PLUS (1, __FUNCTION__, DWG_ERR_VALUEOUTOFBOUNDS) + CHK_OVERFLOW_PLUS (1, "bit_read_CMC", DWG_ERR_VALUEOUTOFBOUNDS) color->method = color->rgb >> 0x18; color->flag = bit_read_RC (dat); - CHK_OVERFLOW_PLUS (0, __FUNCTION__, DWG_ERR_VALUEOUTOFBOUNDS) + CHK_OVERFLOW_PLUS (0, "bit_read_CMC", DWG_ERR_VALUEOUTOFBOUNDS) if (color->flag < 4) { color->name diff --git a/src/dec_macros.h b/src/dec_macros.h index 7005eb80ab..5f32c91c54 100644 --- a/src/dec_macros.h +++ b/src/dec_macros.h @@ -616,10 +616,10 @@ if ((dat->byte * 8) + 8 + dat->bit > dat->size * 8) \ { \ loglevel = dat->opts & DWG_OPTS_LOGLEVEL; \ - LOG_ERROR ("%s FIELD_DD buffer overflow at pos %" PRIuSIZE \ + LOG_ERROR ("FIELD_DD buffer overflow at pos %" PRIuSIZE \ ".%u, size %" PRIuSIZE "," \ " advance by 8", \ - __FUNCTION__, dat->byte, dat->bit, dat->size); \ + dat->byte, dat->bit, dat->size); \ } \ byte = dat->chain[dat->byte]; \ if (dat->bit < 7) \ diff --git a/src/decode.c b/src/decode.c index a2befbeec0..34e0d8cc59 100644 --- a/src/decode.c +++ b/src/decode.c @@ -4886,7 +4886,7 @@ bit_read_BB_noadv (Bit_Chain *dat) if (dat->byte >= dat->size) { LOG_ERROR ("%s buffer overflow at %" PRIuSIZE " >= %" PRIuSIZE, - __FUNCTION__, dat->byte, dat->size) + "bit_read_BB_noadv", dat->byte, dat->size) return 9; } byte = dat->chain[dat->byte]; diff --git a/src/decode_r2007.c b/src/decode_r2007.c index 0a41456798..deba85e384 100644 --- a/src/decode_r2007.c +++ b/src/decode_r2007.c @@ -458,7 +458,7 @@ decompress_r2007 (BITCODE_RC *restrict dst, const unsigned dst_size, src_size); if (!dst || !src || !dst_size || src_size < 2) { - LOG_ERROR ("Invalid argument to %s\n", __FUNCTION__); + LOG_ERROR ("Invalid argument to %s\n", "decompress_r2007"); return DWG_ERR_INTERNALERROR; } @@ -1233,7 +1233,7 @@ read_file_header (Bit_Chain *restrict dat, { \ errcount++; \ error |= DWG_ERR_VALUEOUTOFBOUNDS; \ - LOG_ERROR ("%s Invalid %s %ld > MAX_SIZE", __FUNCTION__, #var, \ + LOG_ERROR ("%s Invalid %s %ld > MAX_SIZE", "read_file_header", #var, \ (long)var) \ var = 0; \ } @@ -1242,7 +1242,7 @@ read_file_header (Bit_Chain *restrict dat, { \ errcount++; \ error |= DWG_ERR_VALUEOUTOFBOUNDS; \ - LOG_ERROR ("%s Invalid %s %ld > MAX_COUNT", __FUNCTION__, #var, \ + LOG_ERROR ("%s Invalid %s %ld > MAX_COUNT", "read_file_header", #var, \ (long)var) \ var = 0; \ } @@ -2364,7 +2364,8 @@ read_r2007_meta_data (Bit_Chain *dat, Bit_Chain *hdl_dat, { LOG_ERROR ("%s Invalid pages_map_size_comp %" PRIuSIZE " > %" PRIuSIZE " bytes left", - __FUNCTION__, (size_t)file_header->pages_map_size_comp, + "read_r2007_meta_data", + (size_t)file_header->pages_map_size_comp, dat->size - dat->byte) error |= DWG_ERR_VALUEOUTOFBOUNDS; goto error; @@ -2389,7 +2390,7 @@ read_r2007_meta_data (Bit_Chain *dat, Bit_Chain *hdl_dat, { LOG_ERROR ("%s Invalid comp_data_size %" PRId64 " > %" PRIuSIZE " bytes left", - __FUNCTION__, file_header->sections_map_size_comp, + "read_r2007_meta_data", file_header->sections_map_size_comp, dat->size - dat->byte) error |= DWG_ERR_VALUEOUTOFBOUNDS; goto error; diff --git a/src/dwg_api.c b/src/dwg_api.c index 4ad1482e4e..940d0d904c 100644 --- a/src/dwg_api.c +++ b/src/dwg_api.c @@ -229,31 +229,31 @@ dwg_get_OBJECT (ent_pointcloud, POINTCLOUD) dwg_get_OBJECT (ent_pointcloudex, POINTCLOUDEX) dwg_get_OBJECT (ent_wipeout, WIPEOUT) # ifdef DEBUG_CLASSES -dwg_get_OBJECT (ent_alignmentparameterentity, ALIGNMENTPARAMETERENTITY) -dwg_get_OBJECT (ent_arcalignedtext, ARCALIGNEDTEXT) -dwg_get_OBJECT (ent_basepointparameterentity, BASEPOINTPARAMETERENTITY) -dwg_get_OBJECT (ent_extrudedsurface, EXTRUDEDSURFACE) -dwg_get_OBJECT (ent_flipgripentity, FLIPGRIPENTITY) -dwg_get_OBJECT (ent_flipparameterentity, FLIPPARAMETERENTITY) -dwg_get_OBJECT (ent_geopositionmarker, GEOPOSITIONMARKER) -dwg_get_OBJECT (ent_lineargripentity, LINEARGRIPENTITY) -dwg_get_OBJECT (ent_linearparameterentity, LINEARPARAMETERENTITY) -dwg_get_OBJECT (ent_loftedsurface, LOFTEDSURFACE) -dwg_get_OBJECT (ent_mpolygon, MPOLYGON) -dwg_get_OBJECT (ent_navisworksmodel, NAVISWORKSMODEL) -dwg_get_OBJECT (ent_nurbsurface, NURBSURFACE) -dwg_get_OBJECT (ent_pointparameterentity, POINTPARAMETERENTITY) -dwg_get_OBJECT (ent_polargripentity, POLARGRIPENTITY) -dwg_get_OBJECT (ent_revolvedsurface, REVOLVEDSURFACE) -dwg_get_OBJECT (ent_rotationgripentity, ROTATIONGRIPENTITY) -dwg_get_OBJECT (ent_rotationparameterentity, ROTATIONPARAMETERENTITY) -dwg_get_OBJECT (ent_rtext, RTEXT) -dwg_get_OBJECT (ent_sweptsurface, SWEPTSURFACE) -dwg_get_OBJECT (ent_table, TABLE) -dwg_get_OBJECT (ent_visibilitygripentity, VISIBILITYGRIPENTITY) -dwg_get_OBJECT (ent_visibilityparameterentity, VISIBILITYPARAMETERENTITY) -dwg_get_OBJECT (ent_xygripentity, XYGRIPENTITY) -dwg_get_OBJECT (ent_xyparameterentity, XYPARAMETERENTITY) + dwg_get_OBJECT (ent_alignmentparameterentity, ALIGNMENTPARAMETERENTITY) + dwg_get_OBJECT (ent_arcalignedtext, ARCALIGNEDTEXT) + dwg_get_OBJECT (ent_basepointparameterentity, BASEPOINTPARAMETERENTITY) + dwg_get_OBJECT (ent_extrudedsurface, EXTRUDEDSURFACE) + dwg_get_OBJECT (ent_flipgripentity, FLIPGRIPENTITY) + dwg_get_OBJECT (ent_flipparameterentity, FLIPPARAMETERENTITY) + dwg_get_OBJECT (ent_geopositionmarker, GEOPOSITIONMARKER) + dwg_get_OBJECT (ent_lineargripentity, LINEARGRIPENTITY) + dwg_get_OBJECT (ent_linearparameterentity, LINEARPARAMETERENTITY) + dwg_get_OBJECT (ent_loftedsurface, LOFTEDSURFACE) + dwg_get_OBJECT (ent_mpolygon, MPOLYGON) + dwg_get_OBJECT (ent_navisworksmodel, NAVISWORKSMODEL) + dwg_get_OBJECT (ent_nurbsurface, NURBSURFACE) + dwg_get_OBJECT (ent_pointparameterentity, POINTPARAMETERENTITY) + dwg_get_OBJECT (ent_polargripentity, POLARGRIPENTITY) + dwg_get_OBJECT (ent_revolvedsurface, REVOLVEDSURFACE) + dwg_get_OBJECT (ent_rotationgripentity, ROTATIONGRIPENTITY) + dwg_get_OBJECT (ent_rotationparameterentity, ROTATIONPARAMETERENTITY) + dwg_get_OBJECT (ent_rtext, RTEXT) + dwg_get_OBJECT (ent_sweptsurface, SWEPTSURFACE) + dwg_get_OBJECT (ent_table, TABLE) + dwg_get_OBJECT (ent_visibilitygripentity, VISIBILITYGRIPENTITY) + dwg_get_OBJECT (ent_visibilityparameterentity, VISIBILITYPARAMETERENTITY) + dwg_get_OBJECT (ent_xygripentity, XYGRIPENTITY) + dwg_get_OBJECT (ent_xyparameterentity, XYPARAMETERENTITY) # endif dwg_get_OBJECT (obj_appid, APPID) @@ -355,39 +355,30 @@ dwg_get_OBJECT (obj_assoccompoundactionparam, ASSOCCOMPOUNDACTIONPARAM) dwg_get_OBJECT (obj_assocdependency, ASSOCDEPENDENCY) dwg_get_OBJECT (obj_assocdimdependencybody, ASSOCDIMDEPENDENCYBODY) dwg_get_OBJECT (obj_assocextendsurfaceactionbody, ASSOCEXTENDSURFACEACTIONBODY) -dwg_get_OBJECT (obj_assocextrudedsurfaceactionbody, - ASSOCEXTRUDEDSURFACEACTIONBODY) +dwg_get_OBJECT (obj_assocextrudedsurfaceactionbody, ASSOCEXTRUDEDSURFACEACTIONBODY) dwg_get_OBJECT (obj_assocfaceactionparam, ASSOCFACEACTIONPARAM) dwg_get_OBJECT (obj_assocfilletsurfaceactionbody, ASSOCFILLETSURFACEACTIONBODY) dwg_get_OBJECT (obj_assocloftedsurfaceactionbody, ASSOCLOFTEDSURFACEACTIONBODY) -dwg_get_OBJECT (obj_assocnetworksurfaceactionbody, - ASSOCNETWORKSURFACEACTIONBODY) +dwg_get_OBJECT (obj_assocnetworksurfaceactionbody, ASSOCNETWORKSURFACEACTIONBODY) dwg_get_OBJECT (obj_assocobjectactionparam, ASSOCOBJECTACTIONPARAM) dwg_get_OBJECT (obj_assocoffsetsurfaceactionbody, ASSOCOFFSETSURFACEACTIONBODY) -dwg_get_OBJECT (obj_assocosnappointrefactionparam, - ASSOCOSNAPPOINTREFACTIONPARAM) +dwg_get_OBJECT (obj_assocosnappointrefactionparam, ASSOCOSNAPPOINTREFACTIONPARAM) dwg_get_OBJECT (obj_assocpatchsurfaceactionbody, ASSOCPATCHSURFACEACTIONBODY) dwg_get_OBJECT (obj_assocpathactionparam, ASSOCPATHACTIONPARAM) dwg_get_OBJECT (obj_assocplanesurfaceactionbody, ASSOCPLANESURFACEACTIONBODY) dwg_get_OBJECT (obj_assocpointrefactionparam, ASSOCPOINTREFACTIONPARAM) -dwg_get_OBJECT (obj_assocrevolvedsurfaceactionbody, - ASSOCREVOLVEDSURFACEACTIONBODY) +dwg_get_OBJECT (obj_assocrevolvedsurfaceactionbody, ASSOCREVOLVEDSURFACEACTIONBODY) dwg_get_OBJECT (obj_assoctrimsurfaceactionbody, ASSOCTRIMSURFACEACTIONBODY) dwg_get_OBJECT (obj_assocvaluedependency, ASSOCVALUEDEPENDENCY) dwg_get_OBJECT (obj_assocvariable, ASSOCVARIABLE) dwg_get_OBJECT (obj_assocvertexactionparam, ASSOCVERTEXACTIONPARAM) dwg_get_OBJECT (obj_blkrefobjectcontextdata, BLKREFOBJECTCONTEXTDATA) -dwg_get_OBJECT (obj_blockalignedconstraintparameter, - BLOCKALIGNEDCONSTRAINTPARAMETER) -dwg_get_OBJECT (obj_blockangularconstraintparameter, - BLOCKANGULARCONSTRAINTPARAMETER) +dwg_get_OBJECT (obj_blockalignedconstraintparameter, BLOCKALIGNEDCONSTRAINTPARAMETER) +dwg_get_OBJECT (obj_blockangularconstraintparameter, BLOCKANGULARCONSTRAINTPARAMETER) dwg_get_OBJECT (obj_blockarrayaction, BLOCKARRAYACTION) -dwg_get_OBJECT (obj_blockdiametricconstraintparameter, - BLOCKDIAMETRICCONSTRAINTPARAMETER) -dwg_get_OBJECT (obj_blockhorizontalconstraintparameter, - BLOCKHORIZONTALCONSTRAINTPARAMETER) -dwg_get_OBJECT (obj_blocklinearconstraintparameter, - BLOCKLINEARCONSTRAINTPARAMETER) +dwg_get_OBJECT (obj_blockdiametricconstraintparameter, BLOCKDIAMETRICCONSTRAINTPARAMETER) +dwg_get_OBJECT (obj_blockhorizontalconstraintparameter, BLOCKHORIZONTALCONSTRAINTPARAMETER) +dwg_get_OBJECT (obj_blocklinearconstraintparameter, BLOCKLINEARCONSTRAINTPARAMETER) dwg_get_OBJECT (obj_blocklinearparameter, BLOCKLINEARPARAMETER) dwg_get_OBJECT (obj_blocklookupaction, BLOCKLOOKUPACTION) dwg_get_OBJECT (obj_blocklookupparameter, BLOCKLOOKUPPARAMETER) @@ -396,14 +387,12 @@ dwg_get_OBJECT (obj_blockpointparameter, BLOCKPOINTPARAMETER) dwg_get_OBJECT (obj_blockpolargrip, BLOCKPOLARGRIP) dwg_get_OBJECT (obj_blockpolarparameter, BLOCKPOLARPARAMETER) dwg_get_OBJECT (obj_blockpolarstretchaction, BLOCKPOLARSTRETCHACTION) -dwg_get_OBJECT (obj_blockradialconstraintparameter, - BLOCKRADIALCONSTRAINTPARAMETER) +dwg_get_OBJECT (obj_blockradialconstraintparameter, BLOCKRADIALCONSTRAINTPARAMETER) dwg_get_OBJECT (obj_blockrepresentation, BLOCKREPRESENTATION) dwg_get_OBJECT (obj_blockrotationparameter, BLOCKROTATIONPARAMETER) dwg_get_OBJECT (obj_blockstretchaction, BLOCKSTRETCHACTION) dwg_get_OBJECT (obj_blockuserparameter, BLOCKUSERPARAMETER) -dwg_get_OBJECT (obj_blockverticalconstraintparameter, - BLOCKVERTICALCONSTRAINTPARAMETER) +dwg_get_OBJECT (obj_blockverticalconstraintparameter, BLOCKVERTICALCONSTRAINTPARAMETER) dwg_get_OBJECT (obj_blockvisibilityparameter, BLOCKVISIBILITYPARAMETER) dwg_get_OBJECT (obj_blockxygrip, BLOCKXYGRIP) dwg_get_OBJECT (obj_blockxyparameter, BLOCKXYPARAMETER) @@ -443,58 +432,54 @@ dwg_get_OBJECT (obj_textobjectcontextdata, TEXTOBJECTCONTEXTDATA) dwg_get_OBJECT (obj_assocarraymodifyparameters, ASSOCARRAYMODIFYPARAMETERS) dwg_get_OBJECT (obj_assocarraypathparameters, ASSOCARRAYPATHPARAMETERS) dwg_get_OBJECT (obj_assocarraypolarparameters, ASSOCARRAYPOLARPARAMETERS) -dwg_get_OBJECT (obj_assocarrayrectangularparameters, - ASSOCARRAYRECTANGULARPARAMETERS) +dwg_get_OBJECT (obj_assocarrayrectangularparameters, ASSOCARRAYRECTANGULARPARAMETERS) # ifdef DEBUG_CLASSES -dwg_get_OBJECT (obj_acmecommandhistory, ACMECOMMANDHISTORY) -dwg_get_OBJECT (obj_acmescope, ACMESCOPE) -dwg_get_OBJECT (obj_acmestatemgr, ACMESTATEMGR) -dwg_get_OBJECT (obj_acsh_extrusion_class, ACSH_EXTRUSION_CLASS) -dwg_get_OBJECT (obj_acsh_loft_class, ACSH_LOFT_CLASS) -dwg_get_OBJECT (obj_acsh_revolve_class, ACSH_REVOLVE_CLASS) -dwg_get_OBJECT (obj_acsh_sweep_class, ACSH_SWEEP_CLASS) -dwg_get_OBJECT (obj_angdimobjectcontextdata, ANGDIMOBJECTCONTEXTDATA) -dwg_get_OBJECT (obj_annotscaleobjectcontextdata, ANNOTSCALEOBJECTCONTEXTDATA) -dwg_get_OBJECT (obj_assoc3pointangulardimactionbody, - ASSOC3POINTANGULARDIMACTIONBODY) -dwg_get_OBJECT (obj_assocaligneddimactionbody, ASSOCALIGNEDDIMACTIONBODY) -dwg_get_OBJECT (obj_assocarraymodifyactionbody, ASSOCARRAYMODIFYACTIONBODY) -dwg_get_OBJECT (obj_assocedgeactionparam, ASSOCEDGEACTIONPARAM) -dwg_get_OBJECT (obj_assocedgechamferactionbody, ASSOCEDGECHAMFERACTIONBODY) -dwg_get_OBJECT (obj_assocedgefilletactionbody, ASSOCEDGEFILLETACTIONBODY) -dwg_get_OBJECT (obj_assocmleaderactionbody, ASSOCMLEADERACTIONBODY) -dwg_get_OBJECT (obj_assocordinatedimactionbody, ASSOCORDINATEDIMACTIONBODY) -dwg_get_OBJECT (obj_assocperssubentmanager, ASSOCPERSSUBENTMANAGER) -dwg_get_OBJECT (obj_assocrestoreentitystateactionbody, - ASSOCRESTOREENTITYSTATEACTIONBODY) -dwg_get_OBJECT (obj_assocrotateddimactionbody, ASSOCROTATEDDIMACTIONBODY) -dwg_get_OBJECT (obj_assocsweptsurfaceactionbody, ASSOCSWEPTSURFACEACTIONBODY) -dwg_get_OBJECT (obj_blockpropertiestable, BLOCKPROPERTIESTABLE) -dwg_get_OBJECT (obj_blockpropertiestablegrip, BLOCKPROPERTIESTABLEGRIP) -dwg_get_OBJECT (obj_breakdata, BREAKDATA) -dwg_get_OBJECT (obj_breakpointref, BREAKPOINTREF) -dwg_get_OBJECT (obj_contextdatamanager, CONTEXTDATAMANAGER) -dwg_get_OBJECT (obj_csacdocumentoptions, CSACDOCUMENTOPTIONS) -dwg_get_OBJECT (obj_curvepath, CURVEPATH) -dwg_get_OBJECT (obj_datatable, DATATABLE) -dwg_get_OBJECT (obj_dimassoc, DIMASSOC) -dwg_get_OBJECT (obj_dmdimobjectcontextdata, DMDIMOBJECTCONTEXTDATA) -dwg_get_OBJECT (obj_dynamicblockproxynode, DYNAMICBLOCKPROXYNODE) -dwg_get_OBJECT (obj_geomapimage, GEOMAPIMAGE) -dwg_get_OBJECT (obj_layoutprintconfig, LAYOUTPRINTCONFIG) -dwg_get_OBJECT (obj_mleaderobjectcontextdata, MLEADEROBJECTCONTEXTDATA) -dwg_get_OBJECT (obj_motionpath, MOTIONPATH) -dwg_get_OBJECT (obj_mtextattributeobjectcontextdata, - MTEXTATTRIBUTEOBJECTCONTEXTDATA) -dwg_get_OBJECT (obj_navisworksmodeldef, NAVISWORKSMODELDEF) -dwg_get_OBJECT (obj_orddimobjectcontextdata, ORDDIMOBJECTCONTEXTDATA) -dwg_get_OBJECT (obj_persubentmgr, PERSUBENTMGR) -dwg_get_OBJECT (obj_pointpath, POINTPATH) -dwg_get_OBJECT (obj_radimlgobjectcontextdata, RADIMLGOBJECTCONTEXTDATA) -dwg_get_OBJECT (obj_radimobjectcontextdata, RADIMOBJECTCONTEXTDATA) -dwg_get_OBJECT (obj_sunstudy, SUNSTUDY) -dwg_get_OBJECT (obj_tablecontent, TABLECONTENT) -dwg_get_OBJECT (obj_tvdeviceproperties, TVDEVICEPROPERTIES) + dwg_get_OBJECT (obj_acmecommandhistory, ACMECOMMANDHISTORY) + dwg_get_OBJECT (obj_acmescope, ACMESCOPE) + dwg_get_OBJECT (obj_acmestatemgr, ACMESTATEMGR) + dwg_get_OBJECT (obj_acsh_extrusion_class, ACSH_EXTRUSION_CLASS) + dwg_get_OBJECT (obj_acsh_loft_class, ACSH_LOFT_CLASS) + dwg_get_OBJECT (obj_acsh_revolve_class, ACSH_REVOLVE_CLASS) + dwg_get_OBJECT (obj_acsh_sweep_class, ACSH_SWEEP_CLASS) + dwg_get_OBJECT (obj_angdimobjectcontextdata, ANGDIMOBJECTCONTEXTDATA) + dwg_get_OBJECT (obj_annotscaleobjectcontextdata, ANNOTSCALEOBJECTCONTEXTDATA) + dwg_get_OBJECT (obj_assoc3pointangulardimactionbody, ASSOC3POINTANGULARDIMACTIONBODY) + dwg_get_OBJECT (obj_assocaligneddimactionbody, ASSOCALIGNEDDIMACTIONBODY) + dwg_get_OBJECT (obj_assocarraymodifyactionbody, ASSOCARRAYMODIFYACTIONBODY) + dwg_get_OBJECT (obj_assocedgeactionparam, ASSOCEDGEACTIONPARAM) + dwg_get_OBJECT (obj_assocedgechamferactionbody, ASSOCEDGECHAMFERACTIONBODY) + dwg_get_OBJECT (obj_assocedgefilletactionbody, ASSOCEDGEFILLETACTIONBODY) + dwg_get_OBJECT (obj_assocmleaderactionbody, ASSOCMLEADERACTIONBODY) + dwg_get_OBJECT (obj_assocordinatedimactionbody, ASSOCORDINATEDIMACTIONBODY) + dwg_get_OBJECT (obj_assocperssubentmanager, ASSOCPERSSUBENTMANAGER) + dwg_get_OBJECT (obj_assocrestoreentitystateactionbody, ASSOCRESTOREENTITYSTATEACTIONBODY) + dwg_get_OBJECT (obj_assocrotateddimactionbody, ASSOCROTATEDDIMACTIONBODY) + dwg_get_OBJECT (obj_assocsweptsurfaceactionbody, ASSOCSWEPTSURFACEACTIONBODY) + dwg_get_OBJECT (obj_blockpropertiestable, BLOCKPROPERTIESTABLE) + dwg_get_OBJECT (obj_blockpropertiestablegrip, BLOCKPROPERTIESTABLEGRIP) + dwg_get_OBJECT (obj_breakdata, BREAKDATA) + dwg_get_OBJECT (obj_breakpointref, BREAKPOINTREF) + dwg_get_OBJECT (obj_contextdatamanager, CONTEXTDATAMANAGER) + dwg_get_OBJECT (obj_csacdocumentoptions, CSACDOCUMENTOPTIONS) + dwg_get_OBJECT (obj_curvepath, CURVEPATH) + dwg_get_OBJECT (obj_datatable, DATATABLE) + dwg_get_OBJECT (obj_dimassoc, DIMASSOC) + dwg_get_OBJECT (obj_dmdimobjectcontextdata, DMDIMOBJECTCONTEXTDATA) + dwg_get_OBJECT (obj_dynamicblockproxynode, DYNAMICBLOCKPROXYNODE) + dwg_get_OBJECT (obj_geomapimage, GEOMAPIMAGE) + dwg_get_OBJECT (obj_layoutprintconfig, LAYOUTPRINTCONFIG) + dwg_get_OBJECT (obj_mleaderobjectcontextdata, MLEADEROBJECTCONTEXTDATA) + dwg_get_OBJECT (obj_motionpath, MOTIONPATH) + dwg_get_OBJECT (obj_mtextattributeobjectcontextdata, MTEXTATTRIBUTEOBJECTCONTEXTDATA) + dwg_get_OBJECT (obj_navisworksmodeldef, NAVISWORKSMODELDEF) + dwg_get_OBJECT (obj_orddimobjectcontextdata, ORDDIMOBJECTCONTEXTDATA) + dwg_get_OBJECT (obj_persubentmgr, PERSUBENTMGR) + dwg_get_OBJECT (obj_pointpath, POINTPATH) + dwg_get_OBJECT (obj_radimlgobjectcontextdata, RADIMLGOBJECTCONTEXTDATA) + dwg_get_OBJECT (obj_radimobjectcontextdata, RADIMOBJECTCONTEXTDATA) + dwg_get_OBJECT (obj_sunstudy, SUNSTUDY) + dwg_get_OBJECT (obj_tablecontent, TABLECONTENT) + dwg_get_OBJECT (obj_tvdeviceproperties, TVDEVICEPROPERTIES) // dwg_get_OBJECT (obj_acdsrecord, ACDSRECORD) // dwg_get_OBJECT (obj_acdsschema, ACDSSCHEMA) // dwg_get_OBJECT (obj_npocollection, NPOCOLLECTION) @@ -806,52 +791,52 @@ DWG_GETALL_OBJECT (ASSOCARRAYPATHPARAMETERS) DWG_GETALL_OBJECT (ASSOCARRAYPOLARPARAMETERS) DWG_GETALL_OBJECT (ASSOCARRAYRECTANGULARPARAMETERS) # ifdef DEBUG_CLASSES -DWG_GETALL_OBJECT (ACMECOMMANDHISTORY) -DWG_GETALL_OBJECT (ACMESCOPE) -DWG_GETALL_OBJECT (ACMESTATEMGR) -DWG_GETALL_OBJECT (ACSH_EXTRUSION_CLASS) -DWG_GETALL_OBJECT (ACSH_LOFT_CLASS) -DWG_GETALL_OBJECT (ACSH_REVOLVE_CLASS) -DWG_GETALL_OBJECT (ACSH_SWEEP_CLASS) -DWG_GETALL_OBJECT (ANGDIMOBJECTCONTEXTDATA) -DWG_GETALL_OBJECT (ANNOTSCALEOBJECTCONTEXTDATA) -DWG_GETALL_OBJECT (ASSOC3POINTANGULARDIMACTIONBODY) -DWG_GETALL_OBJECT (ASSOCALIGNEDDIMACTIONBODY) -DWG_GETALL_OBJECT (ASSOCARRAYMODIFYACTIONBODY) -DWG_GETALL_OBJECT (ASSOCEDGEACTIONPARAM) -DWG_GETALL_OBJECT (ASSOCEDGECHAMFERACTIONBODY) -DWG_GETALL_OBJECT (ASSOCEDGEFILLETACTIONBODY) -DWG_GETALL_OBJECT (ASSOCMLEADERACTIONBODY) -DWG_GETALL_OBJECT (ASSOCORDINATEDIMACTIONBODY) -DWG_GETALL_OBJECT (ASSOCPERSSUBENTMANAGER) -DWG_GETALL_OBJECT (ASSOCRESTOREENTITYSTATEACTIONBODY) -DWG_GETALL_OBJECT (ASSOCROTATEDDIMACTIONBODY) -DWG_GETALL_OBJECT (ASSOCSWEPTSURFACEACTIONBODY) -DWG_GETALL_OBJECT (BLOCKPROPERTIESTABLE) -DWG_GETALL_OBJECT (BLOCKPROPERTIESTABLEGRIP) -DWG_GETALL_OBJECT (BREAKDATA) -DWG_GETALL_OBJECT (BREAKPOINTREF) -DWG_GETALL_OBJECT (CONTEXTDATAMANAGER) -DWG_GETALL_OBJECT (CSACDOCUMENTOPTIONS) -DWG_GETALL_OBJECT (CURVEPATH) -DWG_GETALL_OBJECT (DATATABLE) -DWG_GETALL_OBJECT (DIMASSOC) -DWG_GETALL_OBJECT (DMDIMOBJECTCONTEXTDATA) -DWG_GETALL_OBJECT (DYNAMICBLOCKPROXYNODE) -DWG_GETALL_OBJECT (GEOMAPIMAGE) -DWG_GETALL_OBJECT (LAYOUTPRINTCONFIG) -DWG_GETALL_OBJECT (MLEADEROBJECTCONTEXTDATA) -DWG_GETALL_OBJECT (MOTIONPATH) -DWG_GETALL_OBJECT (MTEXTATTRIBUTEOBJECTCONTEXTDATA) -DWG_GETALL_OBJECT (NAVISWORKSMODELDEF) -DWG_GETALL_OBJECT (ORDDIMOBJECTCONTEXTDATA) -DWG_GETALL_OBJECT (PERSUBENTMGR) -DWG_GETALL_OBJECT (POINTPATH) -DWG_GETALL_OBJECT (RADIMLGOBJECTCONTEXTDATA) -DWG_GETALL_OBJECT (RADIMOBJECTCONTEXTDATA) -DWG_GETALL_OBJECT (SUNSTUDY) -DWG_GETALL_OBJECT (TABLECONTENT) -DWG_GETALL_OBJECT (TVDEVICEPROPERTIES) + DWG_GETALL_OBJECT (ACMECOMMANDHISTORY) + DWG_GETALL_OBJECT (ACMESCOPE) + DWG_GETALL_OBJECT (ACMESTATEMGR) + DWG_GETALL_OBJECT (ACSH_EXTRUSION_CLASS) + DWG_GETALL_OBJECT (ACSH_LOFT_CLASS) + DWG_GETALL_OBJECT (ACSH_REVOLVE_CLASS) + DWG_GETALL_OBJECT (ACSH_SWEEP_CLASS) + DWG_GETALL_OBJECT (ANGDIMOBJECTCONTEXTDATA) + DWG_GETALL_OBJECT (ANNOTSCALEOBJECTCONTEXTDATA) + DWG_GETALL_OBJECT (ASSOC3POINTANGULARDIMACTIONBODY) + DWG_GETALL_OBJECT (ASSOCALIGNEDDIMACTIONBODY) + DWG_GETALL_OBJECT (ASSOCARRAYMODIFYACTIONBODY) + DWG_GETALL_OBJECT (ASSOCEDGEACTIONPARAM) + DWG_GETALL_OBJECT (ASSOCEDGECHAMFERACTIONBODY) + DWG_GETALL_OBJECT (ASSOCEDGEFILLETACTIONBODY) + DWG_GETALL_OBJECT (ASSOCMLEADERACTIONBODY) + DWG_GETALL_OBJECT (ASSOCORDINATEDIMACTIONBODY) + DWG_GETALL_OBJECT (ASSOCPERSSUBENTMANAGER) + DWG_GETALL_OBJECT (ASSOCRESTOREENTITYSTATEACTIONBODY) + DWG_GETALL_OBJECT (ASSOCROTATEDDIMACTIONBODY) + DWG_GETALL_OBJECT (ASSOCSWEPTSURFACEACTIONBODY) + DWG_GETALL_OBJECT (BLOCKPROPERTIESTABLE) + DWG_GETALL_OBJECT (BLOCKPROPERTIESTABLEGRIP) + DWG_GETALL_OBJECT (BREAKDATA) + DWG_GETALL_OBJECT (BREAKPOINTREF) + DWG_GETALL_OBJECT (CONTEXTDATAMANAGER) + DWG_GETALL_OBJECT (CSACDOCUMENTOPTIONS) + DWG_GETALL_OBJECT (CURVEPATH) + DWG_GETALL_OBJECT (DATATABLE) + DWG_GETALL_OBJECT (DIMASSOC) + DWG_GETALL_OBJECT (DMDIMOBJECTCONTEXTDATA) + DWG_GETALL_OBJECT (DYNAMICBLOCKPROXYNODE) + DWG_GETALL_OBJECT (GEOMAPIMAGE) + DWG_GETALL_OBJECT (LAYOUTPRINTCONFIG) + DWG_GETALL_OBJECT (MLEADEROBJECTCONTEXTDATA) + DWG_GETALL_OBJECT (MOTIONPATH) + DWG_GETALL_OBJECT (MTEXTATTRIBUTEOBJECTCONTEXTDATA) + DWG_GETALL_OBJECT (NAVISWORKSMODELDEF) + DWG_GETALL_OBJECT (ORDDIMOBJECTCONTEXTDATA) + DWG_GETALL_OBJECT (PERSUBENTMGR) + DWG_GETALL_OBJECT (POINTPATH) + DWG_GETALL_OBJECT (RADIMLGOBJECTCONTEXTDATA) + DWG_GETALL_OBJECT (RADIMOBJECTCONTEXTDATA) + DWG_GETALL_OBJECT (SUNSTUDY) + DWG_GETALL_OBJECT (TABLECONTENT) + DWG_GETALL_OBJECT (TVDEVICEPROPERTIES) // DWG_GETALL_OBJECT (ACDSRECORD) // DWG_GETALL_OBJECT (ACDSSCHEMA) // DWG_GETALL_OBJECT (NPOCOLLECTION) @@ -944,31 +929,31 @@ CAST_DWG_OBJECT_TO_ENTITY_BYNAME (POINTCLOUD) CAST_DWG_OBJECT_TO_ENTITY_BYNAME (POINTCLOUDEX) CAST_DWG_OBJECT_TO_ENTITY_BYNAME (WIPEOUT) # ifdef DEBUG_CLASSES -CAST_DWG_OBJECT_TO_ENTITY_BYNAME (ALIGNMENTPARAMETERENTITY) -CAST_DWG_OBJECT_TO_ENTITY_BYNAME (ARCALIGNEDTEXT) -CAST_DWG_OBJECT_TO_ENTITY_BYNAME (BASEPOINTPARAMETERENTITY) -CAST_DWG_OBJECT_TO_ENTITY_BYNAME (EXTRUDEDSURFACE) -CAST_DWG_OBJECT_TO_ENTITY_BYNAME (FLIPGRIPENTITY) -CAST_DWG_OBJECT_TO_ENTITY_BYNAME (FLIPPARAMETERENTITY) -CAST_DWG_OBJECT_TO_ENTITY_BYNAME (GEOPOSITIONMARKER) -CAST_DWG_OBJECT_TO_ENTITY_BYNAME (LINEARGRIPENTITY) -CAST_DWG_OBJECT_TO_ENTITY_BYNAME (LINEARPARAMETERENTITY) -CAST_DWG_OBJECT_TO_ENTITY_BYNAME (LOFTEDSURFACE) -CAST_DWG_OBJECT_TO_ENTITY_BYNAME (MPOLYGON) -CAST_DWG_OBJECT_TO_ENTITY_BYNAME (NAVISWORKSMODEL) -CAST_DWG_OBJECT_TO_ENTITY_BYNAME (NURBSURFACE) -CAST_DWG_OBJECT_TO_ENTITY_BYNAME (POINTPARAMETERENTITY) -CAST_DWG_OBJECT_TO_ENTITY_BYNAME (POLARGRIPENTITY) -CAST_DWG_OBJECT_TO_ENTITY_BYNAME (REVOLVEDSURFACE) -CAST_DWG_OBJECT_TO_ENTITY_BYNAME (ROTATIONGRIPENTITY) -CAST_DWG_OBJECT_TO_ENTITY_BYNAME (ROTATIONPARAMETERENTITY) -CAST_DWG_OBJECT_TO_ENTITY_BYNAME (RTEXT) -CAST_DWG_OBJECT_TO_ENTITY_BYNAME (SWEPTSURFACE) -CAST_DWG_OBJECT_TO_ENTITY_BYNAME (TABLE) -CAST_DWG_OBJECT_TO_ENTITY_BYNAME (VISIBILITYGRIPENTITY) -CAST_DWG_OBJECT_TO_ENTITY_BYNAME (VISIBILITYPARAMETERENTITY) -CAST_DWG_OBJECT_TO_ENTITY_BYNAME (XYGRIPENTITY) -CAST_DWG_OBJECT_TO_ENTITY_BYNAME (XYPARAMETERENTITY) + CAST_DWG_OBJECT_TO_ENTITY_BYNAME (ALIGNMENTPARAMETERENTITY) + CAST_DWG_OBJECT_TO_ENTITY_BYNAME (ARCALIGNEDTEXT) + CAST_DWG_OBJECT_TO_ENTITY_BYNAME (BASEPOINTPARAMETERENTITY) + CAST_DWG_OBJECT_TO_ENTITY_BYNAME (EXTRUDEDSURFACE) + CAST_DWG_OBJECT_TO_ENTITY_BYNAME (FLIPGRIPENTITY) + CAST_DWG_OBJECT_TO_ENTITY_BYNAME (FLIPPARAMETERENTITY) + CAST_DWG_OBJECT_TO_ENTITY_BYNAME (GEOPOSITIONMARKER) + CAST_DWG_OBJECT_TO_ENTITY_BYNAME (LINEARGRIPENTITY) + CAST_DWG_OBJECT_TO_ENTITY_BYNAME (LINEARPARAMETERENTITY) + CAST_DWG_OBJECT_TO_ENTITY_BYNAME (LOFTEDSURFACE) + CAST_DWG_OBJECT_TO_ENTITY_BYNAME (MPOLYGON) + CAST_DWG_OBJECT_TO_ENTITY_BYNAME (NAVISWORKSMODEL) + CAST_DWG_OBJECT_TO_ENTITY_BYNAME (NURBSURFACE) + CAST_DWG_OBJECT_TO_ENTITY_BYNAME (POINTPARAMETERENTITY) + CAST_DWG_OBJECT_TO_ENTITY_BYNAME (POLARGRIPENTITY) + CAST_DWG_OBJECT_TO_ENTITY_BYNAME (REVOLVEDSURFACE) + CAST_DWG_OBJECT_TO_ENTITY_BYNAME (ROTATIONGRIPENTITY) + CAST_DWG_OBJECT_TO_ENTITY_BYNAME (ROTATIONPARAMETERENTITY) + CAST_DWG_OBJECT_TO_ENTITY_BYNAME (RTEXT) + CAST_DWG_OBJECT_TO_ENTITY_BYNAME (SWEPTSURFACE) + CAST_DWG_OBJECT_TO_ENTITY_BYNAME (TABLE) + CAST_DWG_OBJECT_TO_ENTITY_BYNAME (VISIBILITYGRIPENTITY) + CAST_DWG_OBJECT_TO_ENTITY_BYNAME (VISIBILITYPARAMETERENTITY) + CAST_DWG_OBJECT_TO_ENTITY_BYNAME (XYGRIPENTITY) + CAST_DWG_OBJECT_TO_ENTITY_BYNAME (XYPARAMETERENTITY) # endif /******************************************************************* @@ -1157,57 +1142,57 @@ CAST_DWG_OBJECT_TO_OBJECT (ASSOCARRAYPATHPARAMETERS) CAST_DWG_OBJECT_TO_OBJECT (ASSOCARRAYPOLARPARAMETERS) CAST_DWG_OBJECT_TO_OBJECT (ASSOCARRAYRECTANGULARPARAMETERS) # ifdef DEBUG_CLASSES -CAST_DWG_OBJECT_TO_OBJECT (ACMECOMMANDHISTORY) -CAST_DWG_OBJECT_TO_OBJECT (ACMESCOPE) -CAST_DWG_OBJECT_TO_OBJECT (ACMESTATEMGR) -CAST_DWG_OBJECT_TO_OBJECT (ACSH_EXTRUSION_CLASS) -CAST_DWG_OBJECT_TO_OBJECT (ACSH_LOFT_CLASS) -CAST_DWG_OBJECT_TO_OBJECT (ACSH_REVOLVE_CLASS) -CAST_DWG_OBJECT_TO_OBJECT (ACSH_SWEEP_CLASS) -CAST_DWG_OBJECT_TO_OBJECT (ANGDIMOBJECTCONTEXTDATA) -CAST_DWG_OBJECT_TO_OBJECT (ANNOTSCALEOBJECTCONTEXTDATA) -CAST_DWG_OBJECT_TO_OBJECT (ASSOC3POINTANGULARDIMACTIONBODY) -CAST_DWG_OBJECT_TO_OBJECT (ASSOCALIGNEDDIMACTIONBODY) -CAST_DWG_OBJECT_TO_OBJECT (ASSOCARRAYMODIFYACTIONBODY) -CAST_DWG_OBJECT_TO_OBJECT (ASSOCEDGEACTIONPARAM) -CAST_DWG_OBJECT_TO_OBJECT (ASSOCEDGECHAMFERACTIONBODY) -CAST_DWG_OBJECT_TO_OBJECT (ASSOCEDGEFILLETACTIONBODY) -CAST_DWG_OBJECT_TO_OBJECT (ASSOCMLEADERACTIONBODY) -CAST_DWG_OBJECT_TO_OBJECT (ASSOCORDINATEDIMACTIONBODY) -CAST_DWG_OBJECT_TO_OBJECT (ASSOCPERSSUBENTMANAGER) -CAST_DWG_OBJECT_TO_OBJECT (ASSOCRESTOREENTITYSTATEACTIONBODY) -CAST_DWG_OBJECT_TO_OBJECT (ASSOCROTATEDDIMACTIONBODY) -CAST_DWG_OBJECT_TO_OBJECT (ASSOCSWEPTSURFACEACTIONBODY) -CAST_DWG_OBJECT_TO_OBJECT (BLOCKPROPERTIESTABLE) -CAST_DWG_OBJECT_TO_OBJECT (BLOCKPROPERTIESTABLEGRIP) -CAST_DWG_OBJECT_TO_OBJECT (BREAKDATA) -CAST_DWG_OBJECT_TO_OBJECT (BREAKPOINTREF) -CAST_DWG_OBJECT_TO_OBJECT (CONTEXTDATAMANAGER) -CAST_DWG_OBJECT_TO_OBJECT (CSACDOCUMENTOPTIONS) -CAST_DWG_OBJECT_TO_OBJECT (CURVEPATH) -CAST_DWG_OBJECT_TO_OBJECT (DATATABLE) -CAST_DWG_OBJECT_TO_OBJECT (DIMASSOC) -CAST_DWG_OBJECT_TO_OBJECT (DMDIMOBJECTCONTEXTDATA) -CAST_DWG_OBJECT_TO_OBJECT (DYNAMICBLOCKPROXYNODE) -CAST_DWG_OBJECT_TO_OBJECT (GEOMAPIMAGE) -CAST_DWG_OBJECT_TO_OBJECT (LAYOUTPRINTCONFIG) -CAST_DWG_OBJECT_TO_OBJECT (MLEADEROBJECTCONTEXTDATA) -CAST_DWG_OBJECT_TO_OBJECT (MOTIONPATH) -CAST_DWG_OBJECT_TO_OBJECT (MTEXTATTRIBUTEOBJECTCONTEXTDATA) -CAST_DWG_OBJECT_TO_OBJECT (NAVISWORKSMODELDEF) -CAST_DWG_OBJECT_TO_OBJECT (ORDDIMOBJECTCONTEXTDATA) -CAST_DWG_OBJECT_TO_OBJECT (PERSUBENTMGR) -CAST_DWG_OBJECT_TO_OBJECT (POINTPATH) -CAST_DWG_OBJECT_TO_OBJECT (RADIMLGOBJECTCONTEXTDATA) -CAST_DWG_OBJECT_TO_OBJECT (RADIMOBJECTCONTEXTDATA) -CAST_DWG_OBJECT_TO_OBJECT (SUNSTUDY) -CAST_DWG_OBJECT_TO_OBJECT (TABLECONTENT) -CAST_DWG_OBJECT_TO_OBJECT (TVDEVICEPROPERTIES) -// CAST_DWG_OBJECT_TO_OBJECT (ACDSRECORD) -// CAST_DWG_OBJECT_TO_OBJECT (ACDSSCHEMA) -// CAST_DWG_OBJECT_TO_OBJECT (NPOCOLLECTION) -// CAST_DWG_OBJECT_TO_OBJECT (RAPIDRTRENDERENVIRONMENT) -// CAST_DWG_OBJECT_TO_OBJECT (XREFPANELOBJECT) + CAST_DWG_OBJECT_TO_OBJECT (ACMECOMMANDHISTORY) + CAST_DWG_OBJECT_TO_OBJECT (ACMESCOPE) + CAST_DWG_OBJECT_TO_OBJECT (ACMESTATEMGR) + CAST_DWG_OBJECT_TO_OBJECT (ACSH_EXTRUSION_CLASS) + CAST_DWG_OBJECT_TO_OBJECT (ACSH_LOFT_CLASS) + CAST_DWG_OBJECT_TO_OBJECT (ACSH_REVOLVE_CLASS) + CAST_DWG_OBJECT_TO_OBJECT (ACSH_SWEEP_CLASS) + CAST_DWG_OBJECT_TO_OBJECT (ANGDIMOBJECTCONTEXTDATA) + CAST_DWG_OBJECT_TO_OBJECT (ANNOTSCALEOBJECTCONTEXTDATA) + CAST_DWG_OBJECT_TO_OBJECT (ASSOC3POINTANGULARDIMACTIONBODY) + CAST_DWG_OBJECT_TO_OBJECT (ASSOCALIGNEDDIMACTIONBODY) + CAST_DWG_OBJECT_TO_OBJECT (ASSOCARRAYMODIFYACTIONBODY) + CAST_DWG_OBJECT_TO_OBJECT (ASSOCEDGEACTIONPARAM) + CAST_DWG_OBJECT_TO_OBJECT (ASSOCEDGECHAMFERACTIONBODY) + CAST_DWG_OBJECT_TO_OBJECT (ASSOCEDGEFILLETACTIONBODY) + CAST_DWG_OBJECT_TO_OBJECT (ASSOCMLEADERACTIONBODY) + CAST_DWG_OBJECT_TO_OBJECT (ASSOCORDINATEDIMACTIONBODY) + CAST_DWG_OBJECT_TO_OBJECT (ASSOCPERSSUBENTMANAGER) + CAST_DWG_OBJECT_TO_OBJECT (ASSOCRESTOREENTITYSTATEACTIONBODY) + CAST_DWG_OBJECT_TO_OBJECT (ASSOCROTATEDDIMACTIONBODY) + CAST_DWG_OBJECT_TO_OBJECT (ASSOCSWEPTSURFACEACTIONBODY) + CAST_DWG_OBJECT_TO_OBJECT (BLOCKPROPERTIESTABLE) + CAST_DWG_OBJECT_TO_OBJECT (BLOCKPROPERTIESTABLEGRIP) + CAST_DWG_OBJECT_TO_OBJECT (BREAKDATA) + CAST_DWG_OBJECT_TO_OBJECT (BREAKPOINTREF) + CAST_DWG_OBJECT_TO_OBJECT (CONTEXTDATAMANAGER) + CAST_DWG_OBJECT_TO_OBJECT (CSACDOCUMENTOPTIONS) + CAST_DWG_OBJECT_TO_OBJECT (CURVEPATH) + CAST_DWG_OBJECT_TO_OBJECT (DATATABLE) + CAST_DWG_OBJECT_TO_OBJECT (DIMASSOC) + CAST_DWG_OBJECT_TO_OBJECT (DMDIMOBJECTCONTEXTDATA) + CAST_DWG_OBJECT_TO_OBJECT (DYNAMICBLOCKPROXYNODE) + CAST_DWG_OBJECT_TO_OBJECT (GEOMAPIMAGE) + CAST_DWG_OBJECT_TO_OBJECT (LAYOUTPRINTCONFIG) + CAST_DWG_OBJECT_TO_OBJECT (MLEADEROBJECTCONTEXTDATA) + CAST_DWG_OBJECT_TO_OBJECT (MOTIONPATH) + CAST_DWG_OBJECT_TO_OBJECT (MTEXTATTRIBUTEOBJECTCONTEXTDATA) + CAST_DWG_OBJECT_TO_OBJECT (NAVISWORKSMODELDEF) + CAST_DWG_OBJECT_TO_OBJECT (ORDDIMOBJECTCONTEXTDATA) + CAST_DWG_OBJECT_TO_OBJECT (PERSUBENTMGR) + CAST_DWG_OBJECT_TO_OBJECT (POINTPATH) + CAST_DWG_OBJECT_TO_OBJECT (RADIMLGOBJECTCONTEXTDATA) + CAST_DWG_OBJECT_TO_OBJECT (RADIMOBJECTCONTEXTDATA) + CAST_DWG_OBJECT_TO_OBJECT (SUNSTUDY) + CAST_DWG_OBJECT_TO_OBJECT (TABLECONTENT) + CAST_DWG_OBJECT_TO_OBJECT (TVDEVICEPROPERTIES) + // CAST_DWG_OBJECT_TO_OBJECT (ACDSRECORD) + // CAST_DWG_OBJECT_TO_OBJECT (ACDSSCHEMA) + // CAST_DWG_OBJECT_TO_OBJECT (NPOCOLLECTION) + // CAST_DWG_OBJECT_TO_OBJECT (RAPIDRTRENDERENVIRONMENT) + // CAST_DWG_OBJECT_TO_OBJECT (XREFPANELOBJECT) # endif // clang-format: on /* End auto-generated content */ @@ -1962,7 +1947,7 @@ dwg_ent_circle_get_center (const dwg_ent_circle *restrict circle, } else { - LOG_ERROR ("%s: empty point or circle", __FUNCTION__) + LOG_ERROR ("%s: empty point or circle", "dwg_ent_circle_get_center") *error = 1; } } @@ -1988,7 +1973,7 @@ dwg_ent_circle_set_center (dwg_ent_circle *restrict circle, *error = 0; else { - LOG_ERROR ("%s: empty point or circle", __FUNCTION__) + LOG_ERROR ("%s: empty point or circle", "dwg_ent_circle_set_center") *error = 1; } } @@ -2011,7 +1996,7 @@ dwg_ent_circle_get_radius (const dwg_ent_circle *restrict circle, } else { - LOG_ERROR ("%s: empty circle", __FUNCTION__) + LOG_ERROR ("%s: empty circle", "dwg_ent_circle_get_radius") *error = 1; return bit_nan (); } @@ -2037,7 +2022,7 @@ dwg_ent_circle_set_radius (dwg_ent_circle *restrict circle, } else { - LOG_ERROR ("%s: empty circle", __FUNCTION__) + LOG_ERROR ("%s: empty circle", "dwg_ent_circle_set_radius") *error = 1; } } @@ -2060,7 +2045,7 @@ dwg_ent_circle_get_thickness (const dwg_ent_circle *restrict circle, } else { - LOG_ERROR ("%s: empty circle", __FUNCTION__) + LOG_ERROR ("%s: empty circle", "dwg_ent_circle_get_thickness") *error = 1; return bit_nan (); } @@ -2085,7 +2070,7 @@ dwg_ent_circle_set_thickness (dwg_ent_circle *restrict circle, } else { - LOG_ERROR ("%s: empty circle", __FUNCTION__) + LOG_ERROR ("%s: empty circle", "dwg_ent_circle_set_thickness") *error = 1; } } @@ -2114,7 +2099,7 @@ dwg_ent_circle_set_extrusion (dwg_ent_circle *restrict circle, } else { - LOG_ERROR ("%s: empty vector or circle", __FUNCTION__) + LOG_ERROR ("%s: empty vector or circle", "dwg_ent_circle_set_extrusion") *error = 1; } } @@ -2142,7 +2127,7 @@ dwg_ent_circle_get_extrusion (const dwg_ent_circle *restrict circle, } else { - LOG_ERROR ("%s: empty vector or circle", __FUNCTION__) + LOG_ERROR ("%s: empty vector or circle", "dwg_ent_circle_get_extrusion") *error = 1; } } @@ -2174,7 +2159,7 @@ dwg_ent_line_get_start_point (const dwg_ent_line *restrict line, } else { - LOG_ERROR ("%s: empty line", __FUNCTION__) + LOG_ERROR ("%s: empty line", "dwg_ent_line_get_start_point") *error = 1; } } @@ -2202,7 +2187,7 @@ dwg_ent_line_set_start_point (dwg_ent_line *restrict line, } else { - LOG_ERROR ("%s: empty line", __FUNCTION__) + LOG_ERROR ("%s: empty line", "dwg_ent_line_set_start_point") *error = 1; } } @@ -2232,7 +2217,7 @@ dwg_ent_line_get_end_point (const dwg_ent_line *restrict line, } else { - LOG_ERROR ("%s: empty line", __FUNCTION__) + LOG_ERROR ("%s: empty line", "dwg_ent_line_get_end_point") *error = 1; } } @@ -2263,7 +2248,7 @@ dwg_ent_line_set_end_point (dwg_ent_line *restrict line, } else { - LOG_ERROR ("%s: empty line", __FUNCTION__) + LOG_ERROR ("%s: empty line", "dwg_ent_line_set_end_point") *error = 1; } } @@ -2285,7 +2270,7 @@ dwg_ent_line_get_thickness (const dwg_ent_line *restrict line, } else { - LOG_ERROR ("%s: empty line", __FUNCTION__) + LOG_ERROR ("%s: empty line", "dwg_ent_line_get_thickness") *error = 1; return bit_nan (); } @@ -2310,7 +2295,7 @@ dwg_ent_line_set_thickness (dwg_ent_line *restrict line, } else { - LOG_ERROR ("%s: empty line", __FUNCTION__) + LOG_ERROR ("%s: empty line", "dwg_ent_line_set_thickness") *error = 1; } } @@ -2340,7 +2325,7 @@ dwg_ent_line_get_extrusion (const dwg_ent_line *restrict line, } else { - LOG_ERROR ("%s: empty vector or line", __FUNCTION__) + LOG_ERROR ("%s: empty vector or line", "dwg_ent_line_get_extrusion") *error = 1; } } @@ -2371,7 +2356,7 @@ dwg_ent_line_set_extrusion (dwg_ent_line *restrict line, } else { - LOG_ERROR ("%s: empty vector or line", __FUNCTION__) + LOG_ERROR ("%s: empty vector or line", "dwg_ent_line_set_extrusion") *error = 1; } } @@ -2405,7 +2390,7 @@ dwg_ent_arc_get_center (const dwg_ent_arc *restrict arc, } else { - LOG_ERROR ("%s: empty arc or point", __FUNCTION__) + LOG_ERROR ("%s: empty arc or point", "dwg_ent_arc_get_center") *error = 1; } } @@ -2436,7 +2421,7 @@ dwg_ent_arc_set_center (dwg_ent_arc *restrict arc, } else { - LOG_ERROR ("%s: empty arc or point", __FUNCTION__) + LOG_ERROR ("%s: empty arc or point", "dwg_ent_arc_set_center") *error = 1; } } @@ -2458,7 +2443,7 @@ dwg_ent_arc_get_radius (const dwg_ent_arc *restrict arc, int *restrict error) } else { - LOG_ERROR ("%s: empty arc", __FUNCTION__) + LOG_ERROR ("%s: empty arc", "dwg_ent_arc_get_radius") *error = 1; return bit_nan (); } @@ -2483,7 +2468,7 @@ dwg_ent_arc_set_radius (dwg_ent_arc *restrict arc, const double radius, } else { - LOG_ERROR ("%s: empty arc", __FUNCTION__) + LOG_ERROR ("%s: empty arc", "dwg_ent_arc_set_radius") *error = 1; } } @@ -2506,7 +2491,7 @@ dwg_ent_arc_get_thickness (const dwg_ent_arc *restrict arc, } else { - LOG_ERROR ("%s: empty arc", __FUNCTION__) + LOG_ERROR ("%s: empty arc", "dwg_ent_arc_get_thickness") *error = 1; return bit_nan (); } @@ -2531,7 +2516,7 @@ dwg_ent_arc_set_thickness (dwg_ent_arc *restrict arc, const double thickness, } else { - LOG_ERROR ("%s: empty arc", __FUNCTION__) + LOG_ERROR ("%s: empty arc", "dwg_ent_arc_set_thickness") *error = 1; } } @@ -2561,7 +2546,7 @@ dwg_ent_arc_get_extrusion (const dwg_ent_arc *restrict arc, } else { - LOG_ERROR ("%s: empty arc or vector", __FUNCTION__) + LOG_ERROR ("%s: empty arc or vector", "dwg_ent_arc_get_extrusion") *error = 1; } } @@ -2592,7 +2577,7 @@ dwg_ent_arc_set_extrusion (dwg_ent_arc *restrict arc, } else { - LOG_ERROR ("%s: empty arc or vector", __FUNCTION__) + LOG_ERROR ("%s: empty arc or vector", "dwg_ent_arc_set_extrusion") *error = 1; } } @@ -2615,7 +2600,7 @@ dwg_ent_arc_get_start_angle (const dwg_ent_arc *restrict arc, } else { - LOG_ERROR ("%s: empty arc", __FUNCTION__) + LOG_ERROR ("%s: empty arc", "dwg_ent_arc_get_start_angle") *error = 1; return bit_nan (); } @@ -2641,7 +2626,7 @@ dwg_ent_arc_set_start_angle (dwg_ent_arc *restrict arc, const double angle, } else { - LOG_ERROR ("%s: empty arc", __FUNCTION__) + LOG_ERROR ("%s: empty arc", "dwg_ent_arc_set_start_angle") *error = 1; } } @@ -2664,7 +2649,7 @@ dwg_ent_arc_get_end_angle (const dwg_ent_arc *restrict arc, } else { - LOG_ERROR ("%s: empty arc", __FUNCTION__) + LOG_ERROR ("%s: empty arc", "dwg_ent_arc_get_end_angle") *error = 1; return bit_nan (); } @@ -2690,7 +2675,7 @@ dwg_ent_arc_set_end_angle (dwg_ent_arc *restrict arc, const double angle, } else { - LOG_ERROR ("%s: empty arc", __FUNCTION__) + LOG_ERROR ("%s: empty arc", "dwg_ent_arc_set_end_angle") *error = 1; } } @@ -2724,7 +2709,7 @@ dwg_ent_ellipse_get_center (const dwg_ent_ellipse *restrict ellipse, } else { - LOG_ERROR ("%s: empty ellipse or point", __FUNCTION__) + LOG_ERROR ("%s: empty ellipse or point", "dwg_ent_ellipse_get_center") *error = 1; } } @@ -2755,7 +2740,7 @@ dwg_ent_ellipse_set_center (dwg_ent_ellipse *restrict ellipse, } else { - LOG_ERROR ("%s: empty ellipse or point", __FUNCTION__) + LOG_ERROR ("%s: empty ellipse or point", "dwg_ent_ellipse_set_center") *error = 1; } } @@ -2785,7 +2770,7 @@ dwg_ent_ellipse_get_sm_axis (const dwg_ent_ellipse *restrict ellipse, } else { - LOG_ERROR ("%s: empty ellipse or point", __FUNCTION__) + LOG_ERROR ("%s: empty ellipse or point", "dwg_ent_ellipse_get_sm_axis") *error = 1; } } @@ -2816,7 +2801,7 @@ dwg_ent_ellipse_set_sm_axis (dwg_ent_ellipse *restrict ellipse, } else { - LOG_ERROR ("%s: empty ellipse or point", __FUNCTION__) + LOG_ERROR ("%s: empty ellipse or point", "dwg_ent_ellipse_set_sm_axis") *error = 1; } } @@ -2847,7 +2832,7 @@ dwg_ent_ellipse_get_extrusion (const dwg_ent_ellipse *restrict ellipse, } else { - LOG_ERROR ("%s: empty ellipse or vector", __FUNCTION__) + LOG_ERROR ("%s: empty ellipse or vector", "dwg_ent_ellipse_get_extrusion") *error = 1; } } @@ -2878,7 +2863,7 @@ dwg_ent_ellipse_set_extrusion (dwg_ent_ellipse *restrict ellipse, } else { - LOG_ERROR ("%s: empty ellipse or vector", __FUNCTION__) + LOG_ERROR ("%s: empty ellipse or vector", "dwg_ent_ellipse_set_extrusion") *error = 1; } } @@ -2900,7 +2885,7 @@ dwg_ent_ellipse_get_axis_ratio (const dwg_ent_ellipse *restrict ellipse, else { *error = 1; - LOG_ERROR ("%s: empty ellipse", __FUNCTION__) + LOG_ERROR ("%s: empty ellipse", "dwg_ent_ellipse_get_axis_ratio") return bit_nan (); } } @@ -2924,7 +2909,7 @@ dwg_ent_ellipse_set_axis_ratio (dwg_ent_ellipse *restrict ellipse, } else { - LOG_ERROR ("%s: empty ellipse", __FUNCTION__) + LOG_ERROR ("%s: empty ellipse", "dwg_ent_ellipse_set_axis_ratio") *error = 1; } } @@ -2945,7 +2930,7 @@ dwg_ent_ellipse_get_start_angle (const dwg_ent_ellipse *restrict ellipse, } else { - LOG_ERROR ("%s: empty ellipse", __FUNCTION__) + LOG_ERROR ("%s: empty ellipse", "dwg_ent_ellipse_get_start_angle") *error = 1; return bit_nan (); } @@ -2970,7 +2955,7 @@ dwg_ent_ellipse_set_start_angle (dwg_ent_ellipse *restrict ellipse, } else { - LOG_ERROR ("%s: empty ellipse", __FUNCTION__) + LOG_ERROR ("%s: empty ellipse", "dwg_ent_ellipse_set_start_angle") *error = 1; } } @@ -2991,7 +2976,7 @@ dwg_ent_ellipse_get_end_angle (const dwg_ent_ellipse *restrict ellipse, } else { - LOG_ERROR ("%s: empty ellipse", __FUNCTION__) + LOG_ERROR ("%s: empty ellipse", "dwg_ent_ellipse_get_end_angle") *error = 1; return bit_nan (); } @@ -3016,7 +3001,7 @@ dwg_ent_ellipse_set_end_angle (dwg_ent_ellipse *restrict ellipse, } else { - LOG_ERROR ("%s: empty ellipse", __FUNCTION__) + LOG_ERROR ("%s: empty ellipse", "dwg_ent_ellipse_set_end_angle") *error = 1; } } @@ -3044,7 +3029,7 @@ dwg_ent_text_set_text (dwg_ent_text *restrict ent, } else { - LOG_ERROR ("%s: empty ent", __FUNCTION__) + LOG_ERROR ("%s: empty ent", "dwg_ent_text_set_text") *error = 1; } } @@ -3069,7 +3054,7 @@ dwg_ent_text_get_text (const dwg_ent_text *restrict ent, int *restrict error) } else { - LOG_ERROR ("%s: empty ent", __FUNCTION__) + LOG_ERROR ("%s: empty ent", "dwg_ent_text_get_text") *error = 1; return NULL; } @@ -3100,7 +3085,7 @@ dwg_ent_text_get_insertion_pt (const dwg_ent_text *restrict text, } else { - LOG_ERROR ("%s: empty text or point", __FUNCTION__) + LOG_ERROR ("%s: empty text or point", "dwg_ent_text_get_insertion_pt") *error = 1; } } @@ -3130,7 +3115,7 @@ dwg_ent_text_set_insertion_pt (dwg_ent_text *restrict text, } else { - LOG_ERROR ("%s: empty text or point", __FUNCTION__) + LOG_ERROR ("%s: empty text or point", "dwg_ent_text_set_insertion_pt") *error = 1; } } @@ -3154,7 +3139,7 @@ dwg_ent_text_get_height (const dwg_ent_text *restrict text, else { *error = 1; - LOG_ERROR ("%s: empty text", __FUNCTION__) + LOG_ERROR ("%s: empty text", "dwg_ent_text_get_height") return bit_nan (); } } @@ -3178,7 +3163,7 @@ dwg_ent_text_set_height (dwg_ent_text *restrict text, const double height, } else { - LOG_ERROR ("%s: empty text", __FUNCTION__) + LOG_ERROR ("%s: empty text", "dwg_ent_text_set_height") *error = 1; } } @@ -3208,7 +3193,7 @@ dwg_ent_text_get_extrusion (const dwg_ent_text *restrict text, } else { - LOG_ERROR ("%s: empty text or vector", __FUNCTION__) + LOG_ERROR ("%s: empty text or vector", "dwg_ent_text_get_extrusion") *error = 1; } } @@ -3239,7 +3224,7 @@ dwg_ent_text_set_extrusion (dwg_ent_text *restrict text, } else { - LOG_ERROR ("%s: empty text or vector", __FUNCTION__) + LOG_ERROR ("%s: empty text or vector", "dwg_ent_text_set_extrusion") *error = 1; } } @@ -3262,7 +3247,7 @@ dwg_ent_text_get_thickness (const dwg_ent_text *restrict text, } else { - LOG_ERROR ("%s: empty text", __FUNCTION__) + LOG_ERROR ("%s: empty text", "dwg_ent_text_get_thickness") *error = 1; return bit_nan (); } @@ -3287,7 +3272,7 @@ dwg_ent_text_set_thickness (dwg_ent_text *restrict text, } else { - LOG_ERROR ("%s: empty text", __FUNCTION__) + LOG_ERROR ("%s: empty text", "dwg_ent_text_set_thickness") *error = 1; } } @@ -3310,7 +3295,7 @@ dwg_ent_text_get_rotation (const dwg_ent_text *restrict text, } else { - LOG_ERROR ("%s: empty text", __FUNCTION__) + LOG_ERROR ("%s: empty text", "") *error = 1; return bit_nan (); } @@ -3335,7 +3320,7 @@ dwg_ent_text_set_rotation (dwg_ent_text *restrict text, const double angle, } else { - LOG_ERROR ("%s: empty text", __FUNCTION__) + LOG_ERROR ("%s: empty text", "") *error = 1; } } @@ -3358,7 +3343,7 @@ dwg_ent_text_get_vert_alignment (const dwg_ent_text *restrict text, } else { - LOG_ERROR ("%s: empty text", __FUNCTION__) + LOG_ERROR ("%s: empty text", "") *error = 1; return -1; } @@ -3385,7 +3370,7 @@ dwg_ent_text_set_vert_alignment (dwg_ent_text *restrict text, } else { - LOG_ERROR ("%s: empty text", __FUNCTION__) + LOG_ERROR ("%s: empty text", "") *error = 1; } } @@ -3408,7 +3393,7 @@ dwg_ent_text_get_horiz_alignment (const dwg_ent_text *restrict text, } else { - LOG_ERROR ("%s: empty text", __FUNCTION__) + LOG_ERROR ("%s: empty text", "") *error = 1; return 0; } @@ -3435,7 +3420,7 @@ dwg_ent_text_set_horiz_alignment (dwg_ent_text *restrict text, } else { - LOG_ERROR ("%s: empty text", __FUNCTION__) + LOG_ERROR ("%s: empty text", "") *error = 1; } } @@ -3463,7 +3448,7 @@ dwg_ent_attrib_set_text (dwg_ent_attrib *restrict ent, } else { - LOG_ERROR ("%s: empty attrib", __FUNCTION__) + LOG_ERROR ("%s: empty attrib", "") *error = 1; } } @@ -3489,7 +3474,7 @@ dwg_ent_attrib_get_text (const dwg_ent_attrib *restrict ent, } else { - LOG_ERROR ("%s: empty attrib", __FUNCTION__) + LOG_ERROR ("%s: empty attrib", "") *error = 1; return NULL; } @@ -3520,7 +3505,7 @@ dwg_ent_attrib_get_insertion_pt (const dwg_ent_attrib *restrict attrib, } else { - LOG_ERROR ("%s: empty attrib", __FUNCTION__) + LOG_ERROR ("%s: empty attrib", "") *error = 1; } } @@ -3550,7 +3535,7 @@ dwg_ent_attrib_set_insertion_pt (dwg_ent_attrib *restrict attrib, } else { - LOG_ERROR ("%s: empty attrib", __FUNCTION__) + LOG_ERROR ("%s: empty attrib", "") *error = 1; } } @@ -3573,7 +3558,7 @@ dwg_ent_attrib_get_height (const dwg_ent_attrib *restrict attrib, } else { - LOG_ERROR ("%s: empty attrib", __FUNCTION__) + LOG_ERROR ("%s: empty attrib", "") *error = 1; return bit_nan (); } @@ -3598,7 +3583,7 @@ dwg_ent_attrib_set_height (dwg_ent_attrib *restrict attrib, } else { - LOG_ERROR ("%s: empty attrib", __FUNCTION__) + LOG_ERROR ("%s: empty attrib", "") *error = 1; } } @@ -3629,7 +3614,7 @@ dwg_ent_attrib_get_extrusion (const dwg_ent_attrib *restrict attrib, } else { - LOG_ERROR ("%s: empty attrib or vector", __FUNCTION__) + LOG_ERROR ("%s: empty attrib or vector", "") *error = 1; } } @@ -3660,7 +3645,7 @@ dwg_ent_attrib_set_extrusion (dwg_ent_attrib *restrict attrib, } else { - LOG_ERROR ("%s: empty attrib or vector", __FUNCTION__) + LOG_ERROR ("%s: empty attrib or vector", "") *error = 1; } } @@ -3684,7 +3669,7 @@ dwg_ent_attrib_get_thickness (const dwg_ent_attrib *restrict attrib, else { *error = 1; - LOG_ERROR ("%s: empty attrib", __FUNCTION__) + LOG_ERROR ("%s: empty attrib", "") return bit_nan (); } } @@ -3709,7 +3694,7 @@ dwg_ent_attrib_set_thickness (dwg_ent_attrib *restrict attrib, else { *error = 1; - LOG_ERROR ("%s: empty attrib", __FUNCTION__) + LOG_ERROR ("%s: empty attrib", "") } } @@ -3731,7 +3716,7 @@ dwg_ent_attrib_get_rotation (const dwg_ent_attrib *restrict attrib, } else { - LOG_ERROR ("%s: empty attrib", __FUNCTION__) + LOG_ERROR ("%s: empty attrib", "") *error = 1; return bit_nan (); } @@ -3757,7 +3742,7 @@ dwg_ent_attrib_set_rotation (dwg_ent_attrib *restrict attrib, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -3777,7 +3762,7 @@ dwg_ent_attrib_get_vert_alignment (const dwg_ent_attrib *restrict attrib, } else { - LOG_ERROR ("%s: empty attrib", __FUNCTION__) + LOG_ERROR ("%s: empty attrib", "") *error = 1; return -1; } @@ -3802,7 +3787,7 @@ dwg_ent_attrib_set_vert_alignment (dwg_ent_attrib *restrict attrib, } else { - LOG_ERROR ("%s: empty attrib", __FUNCTION__) + LOG_ERROR ("%s: empty attrib", "") *error = 1; } } @@ -3824,7 +3809,7 @@ dwg_ent_attrib_get_horiz_alignment (const dwg_ent_attrib *restrict attrib, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return -1; } } @@ -3850,7 +3835,7 @@ dwg_ent_attrib_set_horiz_alignment (dwg_ent_attrib *restrict attrib, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -3879,7 +3864,7 @@ dwg_ent_attdef_set_default_value (dwg_ent_attdef *restrict ent, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -3904,7 +3889,7 @@ dwg_ent_attdef_get_default_value (const dwg_ent_attdef *restrict ent, } else { - LOG_ERROR ("%s: empty attdef", __FUNCTION__) + LOG_ERROR ("%s: empty attdef", "") *error = 1; return NULL; } @@ -3936,7 +3921,7 @@ dwg_ent_attdef_get_insertion_pt (const dwg_ent_attdef *restrict attdef, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -3966,7 +3951,7 @@ dwg_ent_attdef_set_insertion_pt (dwg_ent_attdef *restrict attdef, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -3989,7 +3974,7 @@ dwg_ent_attdef_get_height (const dwg_ent_attdef *restrict attdef, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -4014,7 +3999,7 @@ dwg_ent_attdef_set_height (dwg_ent_attdef *restrict attdef, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -4045,7 +4030,7 @@ dwg_ent_attdef_get_extrusion (const dwg_ent_attdef *restrict attdef, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -4076,7 +4061,7 @@ dwg_ent_attdef_set_extrusion (dwg_ent_attdef *restrict attdef, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -4099,7 +4084,7 @@ dwg_ent_attdef_get_thickness (const dwg_ent_attdef *restrict attdef, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -4124,7 +4109,7 @@ dwg_ent_attdef_set_thickness (dwg_ent_attdef *restrict attdef, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -4147,7 +4132,7 @@ dwg_ent_attdef_get_rotation (const dwg_ent_attdef *restrict attdef, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -4172,7 +4157,7 @@ dwg_ent_attdef_set_rotation (dwg_ent_attdef *restrict attdef, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -4193,7 +4178,7 @@ dwg_ent_attdef_get_vert_alignment (const dwg_ent_attdef *restrict attdef, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return -1; } } @@ -4219,7 +4204,7 @@ dwg_ent_attdef_set_vert_alignment (dwg_ent_attdef *restrict attdef, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -4240,7 +4225,7 @@ dwg_ent_attdef_get_horiz_alignment (const dwg_ent_attdef *restrict attdef, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return -1; } } @@ -4266,7 +4251,7 @@ dwg_ent_attdef_set_horiz_alignment (dwg_ent_attdef *restrict attdef, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -4301,7 +4286,7 @@ dwg_ent_point_set_point (dwg_ent_point *restrict point, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -4331,7 +4316,7 @@ dwg_ent_point_get_point (const dwg_ent_point *restrict point, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -4354,7 +4339,7 @@ dwg_ent_point_get_thickness (const dwg_ent_point *restrict point, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -4379,7 +4364,7 @@ dwg_ent_point_set_thickness (dwg_ent_point *restrict point, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -4410,7 +4395,7 @@ dwg_ent_point_set_extrusion (dwg_ent_point *restrict point, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -4441,7 +4426,7 @@ dwg_ent_point_get_extrusion (const dwg_ent_point *restrict point, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -4468,7 +4453,7 @@ dwg_ent_solid_get_thickness (const dwg_ent_solid *restrict solid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -4493,7 +4478,7 @@ dwg_ent_solid_set_thickness (dwg_ent_solid *restrict solid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -4516,7 +4501,7 @@ dwg_ent_solid_get_elevation (const dwg_ent_solid *restrict solid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -4541,7 +4526,7 @@ dwg_ent_solid_set_elevation (dwg_ent_solid *restrict solid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -4570,7 +4555,7 @@ dwg_ent_solid_get_corner1 (const dwg_ent_solid *restrict solid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -4600,7 +4585,7 @@ dwg_ent_solid_set_corner1 (dwg_ent_solid *restrict solid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -4629,7 +4614,7 @@ dwg_ent_solid_get_corner2 (const dwg_ent_solid *restrict solid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -4659,7 +4644,7 @@ dwg_ent_solid_set_corner2 (dwg_ent_solid *restrict solid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -4688,7 +4673,7 @@ dwg_ent_solid_get_corner3 (const dwg_ent_solid *restrict solid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -4718,7 +4703,7 @@ dwg_ent_solid_set_corner3 (dwg_ent_solid *restrict solid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -4747,7 +4732,7 @@ dwg_ent_solid_get_corner4 (const dwg_ent_solid *restrict solid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -4777,7 +4762,7 @@ dwg_ent_solid_set_corner4 (dwg_ent_solid *restrict solid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -4808,7 +4793,7 @@ dwg_ent_solid_get_extrusion (const dwg_ent_solid *restrict solid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -4839,7 +4824,7 @@ dwg_ent_solid_set_extrusion (dwg_ent_solid *restrict solid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -4867,7 +4852,7 @@ dwg_ent_block_set_name (dwg_ent_block *restrict ent, const char *name, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -4893,7 +4878,7 @@ dwg_ent_block_get_name (const dwg_ent_block *restrict block, } else { - LOG_ERROR ("%s: empty block", __FUNCTION__) + LOG_ERROR ("%s: empty block", "") *error = 1; return NULL; } @@ -4929,7 +4914,7 @@ dwg_ent_ray_get_point (const dwg_ent_ray *restrict ray, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -4959,7 +4944,7 @@ dwg_ent_ray_set_point (dwg_ent_ray *restrict ray, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -4989,7 +4974,7 @@ dwg_ent_ray_get_vector (const dwg_ent_ray *restrict ray, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -5020,7 +5005,7 @@ dwg_ent_ray_set_vector (dwg_ent_ray *restrict ray, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -5054,7 +5039,7 @@ dwg_ent_xline_get_point (const dwg_ent_xline *restrict xline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -5085,7 +5070,7 @@ dwg_ent_xline_set_point (dwg_ent_xline *restrict xline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -5115,7 +5100,7 @@ dwg_ent_xline_get_vector (const dwg_ent_xline *restrict xline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -5145,7 +5130,7 @@ dwg_ent_xline_set_vector (dwg_ent_xline *restrict xline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -5172,7 +5157,7 @@ dwg_ent_trace_get_thickness (const dwg_ent_trace *restrict trace, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -5197,7 +5182,7 @@ dwg_ent_trace_set_thickness (dwg_ent_trace *restrict trace, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -5220,7 +5205,7 @@ dwg_ent_trace_get_elevation (const dwg_ent_trace *restrict trace, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -5245,7 +5230,7 @@ dwg_ent_trace_set_elevation (dwg_ent_trace *restrict trace, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -5274,7 +5259,7 @@ dwg_ent_trace_get_corner1 (const dwg_ent_trace *restrict trace, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -5304,7 +5289,7 @@ dwg_ent_trace_set_corner1 (dwg_ent_trace *restrict trace, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -5333,7 +5318,7 @@ dwg_ent_trace_get_corner2 (const dwg_ent_trace *restrict trace, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -5363,7 +5348,7 @@ dwg_ent_trace_set_corner2 (dwg_ent_trace *restrict trace, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -5392,7 +5377,7 @@ dwg_ent_trace_get_corner3 (const dwg_ent_trace *restrict trace, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -5422,7 +5407,7 @@ dwg_ent_trace_set_corner3 (dwg_ent_trace *restrict trace, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -5451,7 +5436,7 @@ dwg_ent_trace_get_corner4 (const dwg_ent_trace *restrict trace, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -5481,7 +5466,7 @@ dwg_ent_trace_set_corner4 (dwg_ent_trace *restrict trace, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -5512,7 +5497,7 @@ dwg_ent_trace_get_extrusion (const dwg_ent_trace *restrict trace, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -5543,7 +5528,7 @@ dwg_ent_trace_set_extrusion (dwg_ent_trace *restrict trace, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -5570,7 +5555,7 @@ dwg_ent_vertex_3d_get_flag (const dwg_ent_vertex_3d *restrict vert, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -5595,7 +5580,7 @@ dwg_ent_vertex_3d_set_flag (dwg_ent_vertex_3d *restrict vert, const char flag, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -5625,7 +5610,7 @@ dwg_ent_vertex_3d_get_point (const dwg_ent_vertex_3d *restrict vert, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -5656,7 +5641,7 @@ dwg_ent_vertex_3d_set_point (dwg_ent_vertex_3d *restrict vert, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -5683,7 +5668,7 @@ dwg_ent_vertex_mesh_get_flag (const dwg_ent_vertex_mesh *restrict vert, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -5708,7 +5693,7 @@ dwg_ent_vertex_mesh_set_flag (dwg_ent_vertex_mesh *restrict vert, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -5739,7 +5724,7 @@ dwg_ent_vertex_mesh_get_point (const dwg_ent_vertex_mesh *restrict vert, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -5770,7 +5755,7 @@ dwg_ent_vertex_mesh_set_point (dwg_ent_vertex_mesh *restrict vert, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -5797,7 +5782,7 @@ dwg_ent_vertex_pface_get_flag (const dwg_ent_vertex_pface *restrict vert, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -5822,7 +5807,7 @@ dwg_ent_vertex_pface_set_flag (dwg_ent_vertex_pface *restrict vert, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -5853,7 +5838,7 @@ dwg_ent_vertex_pface_get_point (const dwg_ent_vertex_pface *restrict vert, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -5884,7 +5869,7 @@ dwg_ent_vertex_pface_set_point (dwg_ent_vertex_pface *restrict vert, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -5911,7 +5896,7 @@ dwg_ent_vertex_2d_get_flag (const dwg_ent_vertex_2d *restrict vert, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -5936,7 +5921,7 @@ dwg_ent_vertex_2d_set_flag (dwg_ent_vertex_2d *restrict vert, const char flag, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -5966,7 +5951,7 @@ dwg_ent_vertex_2d_get_point (const dwg_ent_vertex_2d *restrict vert, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -5997,7 +5982,7 @@ dwg_ent_vertex_2d_set_point (dwg_ent_vertex_2d *restrict vert, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -6020,7 +6005,7 @@ dwg_ent_vertex_2d_get_start_width (const dwg_ent_vertex_2d *restrict vert, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -6046,7 +6031,7 @@ dwg_ent_vertex_2d_set_start_width (dwg_ent_vertex_2d *restrict vert, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -6069,7 +6054,7 @@ dwg_ent_vertex_2d_get_end_width (const dwg_ent_vertex_2d *restrict vert, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -6094,7 +6079,7 @@ dwg_ent_vertex_2d_set_end_width (dwg_ent_vertex_2d *restrict vert, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -6117,7 +6102,7 @@ dwg_ent_vertex_2d_get_bulge (const dwg_ent_vertex_2d *restrict vert, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -6142,7 +6127,7 @@ dwg_ent_vertex_2d_set_bulge (dwg_ent_vertex_2d *restrict vert, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -6163,7 +6148,7 @@ dwg_ent_vertex_2d_get_tangent_dir (const dwg_ent_vertex_2d *restrict vert, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -6189,7 +6174,7 @@ dwg_ent_vertex_2d_set_tangent_dir (dwg_ent_vertex_2d *restrict vert, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -6222,7 +6207,7 @@ dwg_ent_insert_get_ins_pt (const dwg_ent_insert *restrict insert, } else { - LOG_ERROR ("%s: empty insert", __FUNCTION__) + LOG_ERROR ("%s: empty insert", "") *error = 1; } } @@ -6252,7 +6237,7 @@ dwg_ent_insert_set_ins_pt (dwg_ent_insert *restrict insert, } else { - LOG_ERROR ("%s: empty insert", __FUNCTION__) + LOG_ERROR ("%s: empty insert", "") *error = 1; } } @@ -6281,7 +6266,7 @@ dwg_ent_insert_get_scale (const dwg_ent_insert *restrict insert, } else { - LOG_ERROR ("%s: empty insert", __FUNCTION__) + LOG_ERROR ("%s: empty insert", "") *error = 1; } } @@ -6311,7 +6296,7 @@ dwg_ent_insert_set_scale (dwg_ent_insert *restrict insert, } else { - LOG_ERROR ("%s: empty insert", __FUNCTION__) + LOG_ERROR ("%s: empty insert", "") *error = 1; } } @@ -6334,7 +6319,7 @@ dwg_ent_insert_get_rotation (const dwg_ent_insert *restrict insert, } else { - LOG_ERROR ("%s: empty insert", __FUNCTION__) + LOG_ERROR ("%s: empty insert", "") *error = 1; return bit_nan (); } @@ -6359,7 +6344,7 @@ dwg_ent_insert_set_rotation (dwg_ent_insert *restrict insert, } else { - LOG_ERROR ("%s: empty insert", __FUNCTION__) + LOG_ERROR ("%s: empty insert", "") *error = 1; } } @@ -6390,7 +6375,7 @@ dwg_ent_insert_get_extrusion (const dwg_ent_insert *restrict insert, } else { - LOG_ERROR ("%s: empty insert", __FUNCTION__) + LOG_ERROR ("%s: empty insert", "") *error = 1; } } @@ -6421,7 +6406,7 @@ dwg_ent_insert_set_extrusion (dwg_ent_insert *restrict insert, } else { - LOG_ERROR ("%s: empty insert", __FUNCTION__) + LOG_ERROR ("%s: empty insert", "") *error = 1; } } @@ -6444,7 +6429,7 @@ dwg_ent_insert_has_attribs (dwg_ent_insert *restrict insert, } else { - LOG_ERROR ("%s: empty insert", __FUNCTION__) + LOG_ERROR ("%s: empty insert", "") *error = 1; return '\0'; } @@ -6468,7 +6453,7 @@ dwg_ent_insert_get_num_owned (const dwg_ent_insert *restrict insert, } else { - LOG_ERROR ("%s: empty insert", __FUNCTION__) + LOG_ERROR ("%s: empty insert", "") *error = 1; return 0L; } @@ -6495,7 +6480,7 @@ dwg_ent_insert_get_block_header (const dwg_ent_insert *restrict insert, } else { - LOG_ERROR ("%s: empty insert", __FUNCTION__) + LOG_ERROR ("%s: empty insert", "") *error = 1; return NULL; } @@ -6530,7 +6515,7 @@ dwg_ent_minsert_get_ins_pt (const dwg_ent_minsert *restrict minsert, } else { - LOG_ERROR ("%s: empty insert", __FUNCTION__) + LOG_ERROR ("%s: empty insert", "") *error = 1; } } @@ -6561,7 +6546,7 @@ dwg_ent_minsert_set_ins_pt (dwg_ent_minsert *restrict minsert, } else { - LOG_ERROR ("%s: empty minsert", __FUNCTION__) + LOG_ERROR ("%s: empty minsert", "") *error = 1; } } @@ -6590,7 +6575,7 @@ dwg_ent_minsert_get_scale (const dwg_ent_minsert *restrict minsert, } else { - LOG_ERROR ("%s: empty minsert", __FUNCTION__) + LOG_ERROR ("%s: empty minsert", "") *error = 1; } } @@ -6621,7 +6606,7 @@ dwg_ent_minsert_set_scale (dwg_ent_minsert *restrict minsert, } else { - LOG_ERROR ("%s: empty minsert", __FUNCTION__) + LOG_ERROR ("%s: empty minsert", "") *error = 1; } } @@ -6644,7 +6629,7 @@ dwg_ent_minsert_get_rotation (const dwg_ent_minsert *restrict minsert, } else { - LOG_ERROR ("%s: empty minsert", __FUNCTION__) + LOG_ERROR ("%s: empty minsert", "") *error = 1; return bit_nan (); } @@ -6669,7 +6654,7 @@ dwg_ent_minsert_set_rotation (dwg_ent_minsert *restrict minsert, } else { - LOG_ERROR ("%s: empty minsert", __FUNCTION__) + LOG_ERROR ("%s: empty minsert", "") *error = 1; } } @@ -6700,7 +6685,7 @@ dwg_ent_minsert_get_extrusion (const dwg_ent_minsert *restrict minsert, } else { - LOG_ERROR ("%s: empty minsert", __FUNCTION__) + LOG_ERROR ("%s: empty minsert", "") *error = 1; } } @@ -6731,7 +6716,7 @@ dwg_ent_minsert_set_extrusion (dwg_ent_minsert *restrict minsert, } else { - LOG_ERROR ("%s: empty minsert", __FUNCTION__) + LOG_ERROR ("%s: empty minsert", "") *error = 1; } } @@ -6754,7 +6739,7 @@ dwg_ent_minsert_has_attribs (dwg_ent_minsert *restrict minsert, } else { - LOG_ERROR ("%s: empty minsert", __FUNCTION__) + LOG_ERROR ("%s: empty minsert", "") *error = 1; return '\0'; } @@ -6777,7 +6762,7 @@ dwg_ent_minsert_get_num_owned (const dwg_ent_minsert *restrict minsert, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0L; } } @@ -6806,7 +6791,7 @@ dwg_ent_minsert_set_num_cols (dwg_ent_minsert *restrict minsert, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -6827,7 +6812,7 @@ dwg_ent_minsert_get_num_cols (const dwg_ent_minsert *restrict minsert, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0L; } } @@ -6852,7 +6837,7 @@ dwg_ent_minsert_set_num_rows (dwg_ent_minsert *restrict minsert, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -6873,7 +6858,7 @@ dwg_ent_minsert_get_num_rows (const dwg_ent_minsert *restrict minsert, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0L; } } @@ -6895,7 +6880,7 @@ dwg_ent_minsert_get_col_spacing (const dwg_ent_minsert *restrict minsert, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -6920,7 +6905,7 @@ dwg_ent_minsert_set_col_spacing (dwg_ent_minsert *restrict minsert, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -6941,7 +6926,7 @@ dwg_ent_minsert_get_row_spacing (const dwg_ent_minsert *restrict minsert, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -6966,7 +6951,7 @@ dwg_ent_minsert_set_row_spacing (dwg_ent_minsert *restrict minsert, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -6987,7 +6972,7 @@ dwg_ent_minsert_get_block_header (const dwg_ent_minsert *restrict minsert, } else { - LOG_ERROR ("%s: empty insert", __FUNCTION__) + LOG_ERROR ("%s: empty insert", "") *error = 1; return NULL; } @@ -7018,7 +7003,7 @@ dwg_obj_mlinestyle_get_name (const dwg_obj_mlinestyle *restrict mlinestyle, } else { - LOG_ERROR ("%s: empty mlinestyle", __FUNCTION__) + LOG_ERROR ("%s: empty mlinestyle", "") *error = 1; return NULL; } @@ -7044,7 +7029,7 @@ dwg_obj_mlinestyle_set_name (dwg_obj_mlinestyle *restrict mlinestyle, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -7069,7 +7054,7 @@ dwg_obj_mlinestyle_get_desc (const dwg_obj_mlinestyle *restrict mlinestyle, } else { - LOG_ERROR ("%s: empty mlinestyle", __FUNCTION__) + LOG_ERROR ("%s: empty mlinestyle", "") *error = 1; return NULL; } @@ -7095,7 +7080,7 @@ dwg_obj_mlinestyle_set_desc (dwg_obj_mlinestyle *restrict mlinestyle, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -7117,7 +7102,7 @@ dwg_obj_mlinestyle_get_flag (const dwg_obj_mlinestyle *restrict mlinestyle, } else { - LOG_ERROR ("%s: empty mlinestyle", __FUNCTION__) + LOG_ERROR ("%s: empty mlinestyle", "") *error = 1; return '\0'; } @@ -7143,7 +7128,7 @@ dwg_obj_mlinestyle_set_flag (dwg_obj_mlinestyle *restrict mlinestyle, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -7164,7 +7149,7 @@ dwg_obj_mlinestyle_get_start_angle ( } else { - LOG_ERROR ("%s: empty mlinestyle", __FUNCTION__) + LOG_ERROR ("%s: empty mlinestyle", "") *error = 1; return '\0'; } @@ -7190,7 +7175,7 @@ dwg_obj_mlinestyle_set_start_angle (dwg_obj_mlinestyle *restrict mlinestyle, } else { - LOG_ERROR ("%s: empty mlinestyle", __FUNCTION__) + LOG_ERROR ("%s: empty mlinestyle", "") *error = 1; } } @@ -7211,7 +7196,7 @@ dwg_obj_mlinestyle_get_end_angle ( } else { - LOG_ERROR ("%s: empty mlinestyle", __FUNCTION__) + LOG_ERROR ("%s: empty mlinestyle", "") *error = 1; return '\0'; } @@ -7236,7 +7221,7 @@ dwg_obj_mlinestyle_set_end_angle (dwg_obj_mlinestyle *restrict mlinestyle, } else { - LOG_ERROR ("%s: empty mlinestyle", __FUNCTION__) + LOG_ERROR ("%s: empty mlinestyle", "") *error = 1; } } @@ -7257,7 +7242,7 @@ dwg_obj_mlinestyle_get_num_lines ( } else { - LOG_ERROR ("%s: empty mlinestyle", __FUNCTION__) + LOG_ERROR ("%s: empty mlinestyle", "") *error = 1; return '\0'; } @@ -7283,7 +7268,7 @@ dwg_obj_appid_control_get_num_entries ( } else { - LOG_ERROR ("%s: empty appid", __FUNCTION__) + LOG_ERROR ("%s: empty appid", "") *error = 1; return 0; } @@ -7307,7 +7292,7 @@ dwg_obj_appid_control_get_appid (const dwg_obj_appid_control *restrict appid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return NULL; } } @@ -7337,7 +7322,7 @@ dwg_obj_appid_get_name (const dwg_obj_appid *restrict appid, } else { - LOG_ERROR ("%s: empty appid", __FUNCTION__) + LOG_ERROR ("%s: empty appid", "") *error = 1; return NULL; } @@ -7362,7 +7347,7 @@ dwg_obj_appid_get_flag (const dwg_obj_appid *restrict appid, } else { - LOG_ERROR ("%s: empty appid", __FUNCTION__) + LOG_ERROR ("%s: empty appid", "") *error = 1; return 0; } @@ -7390,7 +7375,7 @@ dwg_obj_appid_set_flag (dwg_obj_appid *restrict appid, const BITCODE_RC flag, } else { - LOG_ERROR ("%s: empty appid", __FUNCTION__) + LOG_ERROR ("%s: empty appid", "") *error = 1; } } @@ -7412,7 +7397,7 @@ dwg_obj_appid_get_appid_control (const dwg_obj_appid *restrict appid, } else { - LOG_ERROR ("%s: empty appid", __FUNCTION__) + LOG_ERROR ("%s: empty appid", "") *error = 1; return NULL; } @@ -7445,7 +7430,7 @@ dwg_ent_dim_get_block_name (const dwg_ent_dim *restrict dim, } else { - LOG_ERROR ("%s: empty dim", __FUNCTION__) + LOG_ERROR ("%s: empty dim", "") *error = 1; return NULL; } @@ -7468,7 +7453,7 @@ dwg_ent_dim_get_elevation (const dwg_ent_dim *restrict dim, } else { - LOG_ERROR ("%s: empty dim", __FUNCTION__) + LOG_ERROR ("%s: empty dim", "") *error = 1; return bit_nan (); } @@ -7493,7 +7478,7 @@ dwg_ent_dim_set_elevation (dwg_ent_dim *restrict dim, const double elevation, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -7515,7 +7500,7 @@ dwg_ent_dim_get_flag1 (const dwg_ent_dim *restrict dim, int *restrict error) else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -7540,7 +7525,7 @@ dwg_ent_dim_set_flag1 (dwg_ent_dim *restrict dim, const char flag, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -7563,7 +7548,7 @@ dwg_ent_dim_get_act_measurement (const dwg_ent_dim *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -7588,7 +7573,7 @@ dwg_ent_dim_set_act_measurement (dwg_ent_dim *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -7611,7 +7596,7 @@ dwg_ent_dim_get_horiz_dir (const dwg_ent_dim *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -7636,7 +7621,7 @@ dwg_ent_dim_set_horiz_dir (dwg_ent_dim *restrict dim, const double horiz_dir, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -7657,7 +7642,7 @@ dwg_ent_dim_get_lspace_factor (const dwg_ent_dim *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -7682,7 +7667,7 @@ dwg_ent_dim_set_lspace_factor (dwg_ent_dim *restrict dim, const double factor, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -7703,7 +7688,7 @@ dwg_ent_dim_get_lspace_style (const dwg_ent_dim *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -7728,7 +7713,7 @@ dwg_ent_dim_set_lspace_style (dwg_ent_dim *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -7751,7 +7736,7 @@ dwg_ent_dim_get_attachment (const dwg_ent_dim *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -7776,7 +7761,7 @@ dwg_ent_dim_set_attachment (dwg_ent_dim *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -7807,7 +7792,7 @@ dwg_ent_dim_set_extrusion (dwg_ent_dim *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -7837,7 +7822,7 @@ dwg_ent_dim_get_extrusion (const dwg_ent_dim *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -7862,7 +7847,7 @@ dwg_ent_dim_get_user_text (const dwg_ent_dim *restrict dim, } else { - LOG_ERROR ("%s: empty dim", __FUNCTION__) + LOG_ERROR ("%s: empty dim", "") *error = 1; return NULL; } @@ -7888,7 +7873,7 @@ dwg_ent_dim_set_user_text (dwg_ent_dim *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -7911,7 +7896,7 @@ dwg_ent_dim_get_text_rotation (const dwg_ent_dim *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -7936,7 +7921,7 @@ dwg_ent_dim_set_text_rotation (dwg_ent_dim *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -7959,7 +7944,7 @@ dwg_ent_dim_get_ins_rotation (const dwg_ent_dim *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -7984,7 +7969,7 @@ dwg_ent_dim_set_ins_rotation (dwg_ent_dim *restrict dim, const double rotation, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -8007,7 +7992,7 @@ dwg_ent_dim_get_flip_arrow1 (const dwg_ent_dim *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -8032,7 +8017,7 @@ dwg_ent_dim_set_flip_arrow1 (dwg_ent_dim *restrict dim, const char flip_arrow, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -8055,7 +8040,7 @@ dwg_ent_dim_get_flip_arrow2 (const dwg_ent_dim *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -8080,7 +8065,7 @@ dwg_ent_dim_set_flip_arrow2 (dwg_ent_dim *restrict dim, const char flip_arrow, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -8110,7 +8095,7 @@ dwg_ent_dim_set_text_midpt (dwg_ent_dim *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -8139,7 +8124,7 @@ dwg_ent_dim_get_text_midpt (const dwg_ent_dim *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -8169,7 +8154,7 @@ dwg_ent_dim_set_ins_scale (dwg_ent_dim *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -8198,7 +8183,7 @@ dwg_ent_dim_get_ins_scale (const dwg_ent_dim *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -8228,7 +8213,7 @@ dwg_ent_dim_set_clone_ins_pt (dwg_ent_dim *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -8258,7 +8243,7 @@ dwg_ent_dim_get_clone_ins_pt (const dwg_ent_dim *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -8285,7 +8270,7 @@ dwg_ent_dim_ordinate_get_flag2 (const dwg_ent_dim_ordinate *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -8310,7 +8295,7 @@ dwg_ent_dim_ordinate_set_flag2 (dwg_ent_dim_ordinate *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -8341,7 +8326,7 @@ dwg_ent_dim_ordinate_set_def_pt (dwg_ent_dim_ordinate *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -8372,7 +8357,7 @@ dwg_ent_dim_ordinate_get_def_pt (const dwg_ent_dim_ordinate *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -8401,7 +8386,7 @@ dwg_ent_dim_ordinate_set_feature_location_pt ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -8430,7 +8415,7 @@ dwg_ent_dim_ordinate_get_feature_location_pt ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -8461,7 +8446,7 @@ dwg_ent_dim_ordinate_set_leader_endpt (dwg_ent_dim_ordinate *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -8492,7 +8477,7 @@ dwg_ent_dim_ordinate_get_leader_endpt ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -8527,7 +8512,7 @@ dwg_ent_dim_linear_set_def_pt (dwg_ent_dim_linear *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -8558,7 +8543,7 @@ dwg_ent_dim_linear_get_def_pt (const dwg_ent_dim_linear *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -8589,7 +8574,7 @@ dwg_ent_dim_linear_set_13_pt (dwg_ent_dim_linear *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -8620,7 +8605,7 @@ dwg_ent_dim_linear_get_13_pt (const dwg_ent_dim_linear *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -8651,7 +8636,7 @@ dwg_ent_dim_linear_set_14_pt (dwg_ent_dim_linear *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -8682,7 +8667,7 @@ dwg_ent_dim_linear_get_14_pt (const dwg_ent_dim_linear *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -8703,7 +8688,7 @@ dwg_ent_dim_linear_get_ext_line_rotation ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -8729,7 +8714,7 @@ dwg_ent_dim_linear_set_ext_line_rotation (dwg_ent_dim_linear *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -8752,7 +8737,7 @@ dwg_ent_dim_linear_get_dim_rotation (const dwg_ent_dim_linear *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -8778,7 +8763,7 @@ dwg_ent_dim_linear_set_dim_rotation (dwg_ent_dim_linear *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -8813,7 +8798,7 @@ dwg_ent_dim_aligned_set_def_pt (dwg_ent_dim_aligned *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -8844,7 +8829,7 @@ dwg_ent_dim_aligned_get_def_pt (const dwg_ent_dim_aligned *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -8875,7 +8860,7 @@ dwg_ent_dim_aligned_set_13_pt (dwg_ent_dim_aligned *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -8906,7 +8891,7 @@ dwg_ent_dim_aligned_get_13_pt (const dwg_ent_dim_aligned *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -8937,7 +8922,7 @@ dwg_ent_dim_aligned_set_14_pt (dwg_ent_dim_aligned *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -8964,7 +8949,7 @@ dwg_ent_dim_aligned_get_14_pt (const dwg_ent_dim_aligned *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -8985,7 +8970,7 @@ dwg_ent_dim_aligned_get_ext_line_rotation ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -9011,7 +8996,7 @@ dwg_ent_dim_aligned_set_ext_line_rotation (dwg_ent_dim_aligned *restrict dim, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -9046,7 +9031,7 @@ dwg_ent_dim_ang3pt_set_def_pt (dwg_ent_dim_ang3pt *restrict ang, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -9073,7 +9058,7 @@ dwg_ent_dim_ang3pt_get_def_pt (const dwg_ent_dim_ang3pt *restrict ang, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -9104,7 +9089,7 @@ dwg_ent_dim_ang3pt_set_13_pt (dwg_ent_dim_ang3pt *restrict ang, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -9135,7 +9120,7 @@ dwg_ent_dim_ang3pt_get_13_pt (const dwg_ent_dim_ang3pt *restrict ang, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -9166,7 +9151,7 @@ dwg_ent_dim_ang3pt_set_14_pt (dwg_ent_dim_ang3pt *restrict ang, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -9197,7 +9182,7 @@ dwg_ent_dim_ang3pt_get_14_pt (const dwg_ent_dim_ang3pt *restrict ang, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -9228,7 +9213,7 @@ dwg_ent_dim_ang3pt_set_first_arc_pt (dwg_ent_dim_ang3pt *restrict ang, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -9259,7 +9244,7 @@ dwg_ent_dim_ang3pt_get_first_arc_pt (const dwg_ent_dim_ang3pt *restrict ang, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -9287,7 +9272,7 @@ dwg_ent_dim_ang2ln_set_def_pt (dwg_ent_dim_ang2ln *restrict ang, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -9312,7 +9297,7 @@ dwg_ent_dim_ang2ln_get_def_pt (const dwg_ent_dim_ang2ln *restrict ang, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -9337,7 +9322,7 @@ dwg_ent_dim_ang2ln_set_13_pt (dwg_ent_dim_ang2ln *restrict ang, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -9362,7 +9347,7 @@ dwg_ent_dim_ang2ln_get_13_pt (const dwg_ent_dim_ang2ln *restrict ang, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -9387,7 +9372,7 @@ dwg_ent_dim_ang2ln_set_14_pt (dwg_ent_dim_ang2ln *restrict ang, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -9412,7 +9397,7 @@ dwg_ent_dim_ang2ln_get_14_pt (const dwg_ent_dim_ang2ln *restrict ang, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -9437,7 +9422,7 @@ dwg_ent_dim_ang2ln_set_first_arc_pt (dwg_ent_dim_ang2ln *restrict ang, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -9462,7 +9447,7 @@ dwg_ent_dim_ang2ln_get_first_arc_pt (const dwg_ent_dim_ang2ln *restrict ang, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -9487,7 +9472,7 @@ dwg_ent_dim_ang2ln_set_16_pt (dwg_ent_dim_ang2ln *restrict ang, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -9512,7 +9497,7 @@ dwg_ent_dim_ang2ln_get_16_pt (const dwg_ent_dim_ang2ln *restrict ang, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -9540,7 +9525,7 @@ dwg_ent_dim_radius_set_def_pt (dwg_ent_dim_radius *restrict radius, } else { - LOG_ERROR ("%s: empty radius", __FUNCTION__) + LOG_ERROR ("%s: empty radius", "") *error = 1; } } @@ -9565,7 +9550,7 @@ dwg_ent_dim_radius_get_def_pt (const dwg_ent_dim_radius *restrict radius, } else { - LOG_ERROR ("%s: empty radius", __FUNCTION__) + LOG_ERROR ("%s: empty radius", "") *error = 1; } } @@ -9590,7 +9575,7 @@ dwg_ent_dim_radius_set_first_arc_pt (dwg_ent_dim_radius *restrict radius, } else { - LOG_ERROR ("%s: empty radius", __FUNCTION__) + LOG_ERROR ("%s: empty radius", "") *error = 1; } } @@ -9615,7 +9600,7 @@ dwg_ent_dim_radius_get_first_arc_pt (const dwg_ent_dim_radius *restrict radius, } else { - LOG_ERROR ("%s: empty radius", __FUNCTION__) + LOG_ERROR ("%s: empty radius", "") *error = 1; } } @@ -9633,7 +9618,7 @@ dwg_ent_dim_radius_get_leader_length ( } else { - LOG_ERROR ("%s: empty radius", __FUNCTION__) + LOG_ERROR ("%s: empty radius", "") *error = 1; return bit_nan (); } @@ -9652,7 +9637,7 @@ dwg_ent_dim_radius_set_leader_length (dwg_ent_dim_radius *restrict radius, } else { - LOG_ERROR ("%s: empty radius", __FUNCTION__) + LOG_ERROR ("%s: empty radius", "") *error = 1; } } @@ -9682,7 +9667,7 @@ dwg_ent_dim_diameter_set_def_pt (dwg_ent_dim_diameter *restrict dia, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -9707,7 +9692,7 @@ dwg_ent_dim_diameter_get_def_pt (const dwg_ent_dim_diameter *restrict dia, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -9732,7 +9717,7 @@ dwg_ent_dim_diameter_set_first_arc_pt (dwg_ent_dim_diameter *restrict dia, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -9757,7 +9742,7 @@ dwg_ent_dim_diameter_get_first_arc_pt ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -9774,7 +9759,7 @@ dwg_ent_dim_diameter_get_leader_length ( } else { - LOG_ERROR ("%s: empty dia", __FUNCTION__) + LOG_ERROR ("%s: empty dia", "") *error = 1; return bit_nan (); } @@ -9794,7 +9779,7 @@ dwg_ent_dim_diameter_set_leader_length (dwg_ent_dim_diameter *restrict dia, } else { - LOG_ERROR ("%s: empty dia", __FUNCTION__) + LOG_ERROR ("%s: empty dia", "") *error = 1; } } @@ -9822,7 +9807,7 @@ dwg_ent_shape_get_ins_pt (const dwg_ent_shape *restrict shape, } else { - LOG_ERROR ("%s: empty shape or point", __FUNCTION__) + LOG_ERROR ("%s: empty shape or point", "") *error = 1; } } @@ -9847,7 +9832,7 @@ dwg_ent_shape_set_ins_pt (dwg_ent_shape *restrict shape, } else { - LOG_ERROR ("%s: empty shape or point", __FUNCTION__) + LOG_ERROR ("%s: empty shape or point", "") *error = 1; } } @@ -9865,7 +9850,7 @@ dwg_ent_shape_get_scale (const dwg_ent_shape *restrict shape, } else { - LOG_ERROR ("%s: empty shape", __FUNCTION__) + LOG_ERROR ("%s: empty shape", "") *error = 1; return bit_nan (); } @@ -9884,7 +9869,7 @@ dwg_ent_shape_set_scale (dwg_ent_shape *restrict shape, const double scale, } else { - LOG_ERROR ("%s: empty shape", __FUNCTION__) + LOG_ERROR ("%s: empty shape", "") *error = 1; } } @@ -9902,7 +9887,7 @@ dwg_ent_shape_get_rotation (const dwg_ent_shape *restrict shape, } else { - LOG_ERROR ("%s: empty shape", __FUNCTION__) + LOG_ERROR ("%s: empty shape", "") *error = 1; return bit_nan (); } @@ -9921,7 +9906,7 @@ dwg_ent_shape_set_rotation (dwg_ent_shape *restrict shape, } else { - LOG_ERROR ("%s: empty shape", __FUNCTION__) + LOG_ERROR ("%s: empty shape", "") *error = 1; } } @@ -9939,7 +9924,7 @@ dwg_ent_shape_get_width_factor (const dwg_ent_shape *restrict shape, } else { - LOG_ERROR ("%s: empty shape", __FUNCTION__) + LOG_ERROR ("%s: empty shape", "") *error = 1; return bit_nan (); } @@ -9958,7 +9943,7 @@ dwg_ent_shape_set_width_factor (dwg_ent_shape *restrict shape, } else { - LOG_ERROR ("%s: empty shape", __FUNCTION__) + LOG_ERROR ("%s: empty shape", "") *error = 1; } } @@ -9976,7 +9961,7 @@ dwg_ent_shape_get_oblique (const dwg_ent_shape *restrict shape, } else { - LOG_ERROR ("%s: empty shape", __FUNCTION__) + LOG_ERROR ("%s: empty shape", "") *error = 1; return bit_nan (); } @@ -9995,7 +9980,7 @@ dwg_ent_shape_set_oblique (dwg_ent_shape *restrict shape, const double oblique, } else { - LOG_ERROR ("%s: empty shape", __FUNCTION__) + LOG_ERROR ("%s: empty shape", "") *error = 1; } } @@ -10013,7 +9998,7 @@ dwg_ent_shape_get_thickness (const dwg_ent_shape *restrict shape, } else { - LOG_ERROR ("%s: empty shape", __FUNCTION__) + LOG_ERROR ("%s: empty shape", "") *error = 1; return bit_nan (); } @@ -10032,7 +10017,7 @@ dwg_ent_shape_set_thickness (dwg_ent_shape *restrict shape, } else { - LOG_ERROR ("%s: empty shape", __FUNCTION__) + LOG_ERROR ("%s: empty shape", "") *error = 1; } } @@ -10051,7 +10036,7 @@ dwg_ent_shape_get_shape_no (const dwg_ent_shape *restrict shape, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -10071,7 +10056,7 @@ dwg_ent_shape_set_shape_no (dwg_ent_shape *restrict shape, const BITCODE_BS id, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -10089,7 +10074,7 @@ dwg_ent_shape_get_style_id (const dwg_ent_shape *restrict shape, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -10109,7 +10094,7 @@ dwg_ent_shape_set_style_id (dwg_ent_shape *restrict shape, const BITCODE_BS id, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -10133,7 +10118,7 @@ dwg_ent_shape_get_extrusion (const dwg_ent_shape *restrict shape, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -10158,7 +10143,7 @@ dwg_ent_shape_set_extrusion (dwg_ent_shape *restrict shape, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -10187,7 +10172,7 @@ dwg_ent_mtext_set_insertion_pt (dwg_ent_mtext *restrict mtext, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -10212,7 +10197,7 @@ dwg_ent_mtext_get_insertion_pt (const dwg_ent_mtext *restrict mtext, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -10237,7 +10222,7 @@ dwg_ent_mtext_set_extrusion (dwg_ent_mtext *restrict mtext, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -10261,7 +10246,7 @@ dwg_ent_mtext_get_extrusion (const dwg_ent_mtext *restrict mtext, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -10286,7 +10271,7 @@ dwg_ent_mtext_set_x_axis_dir (dwg_ent_mtext *restrict mtext, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -10311,7 +10296,7 @@ dwg_ent_mtext_get_x_axis_dir (const dwg_ent_mtext *restrict mtext, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -10329,7 +10314,7 @@ dwg_ent_mtext_set_rect_height (dwg_ent_mtext *restrict mtext, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -10347,7 +10332,7 @@ dwg_ent_mtext_get_rect_height (const dwg_ent_mtext *restrict mtext, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -10366,7 +10351,7 @@ dwg_ent_mtext_set_rect_width (dwg_ent_mtext *restrict mtext, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -10384,7 +10369,7 @@ dwg_ent_mtext_get_rect_width (const dwg_ent_mtext *restrict mtext, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -10403,7 +10388,7 @@ dwg_ent_mtext_set_text_height (dwg_ent_mtext *restrict mtext, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -10421,7 +10406,7 @@ dwg_ent_mtext_get_text_height (const dwg_ent_mtext *restrict mtext, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -10440,7 +10425,7 @@ dwg_ent_mtext_get_attachment (const dwg_ent_mtext *restrict mtext, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -10459,7 +10444,7 @@ dwg_ent_mtext_set_attachment (dwg_ent_mtext *restrict mtext, else { *error = 1; - LOG_ERROR ("%s: empty or wrong arg", __FUNCTION__) + LOG_ERROR ("%s: empty or wrong arg", "") } } @@ -10477,7 +10462,7 @@ dwg_ent_mtext_get_drawing_dir (const dwg_ent_mtext *restrict mtext, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -10496,7 +10481,7 @@ dwg_ent_mtext_set_drawing_dir (dwg_ent_mtext *restrict mtext, else { *error = 1; - LOG_ERROR ("%s: empty or wrong arg", __FUNCTION__) + LOG_ERROR ("%s: empty or wrong arg", "") } } @@ -10514,7 +10499,7 @@ dwg_ent_mtext_get_extents_height (const dwg_ent_mtext *restrict mtext, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -10533,7 +10518,7 @@ dwg_ent_mtext_set_extents_height (dwg_ent_mtext *restrict mtext, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -10551,7 +10536,7 @@ dwg_ent_mtext_get_extents_width (const dwg_ent_mtext *restrict mtext, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -10570,7 +10555,7 @@ dwg_ent_mtext_set_extents_width (dwg_ent_mtext *restrict mtext, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -10590,7 +10575,7 @@ dwg_ent_mtext_get_text (const dwg_ent_mtext *restrict ent, int *restrict error) else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return NULL; } } @@ -10609,7 +10594,7 @@ dwg_ent_mtext_set_text (dwg_ent_mtext *restrict ent, char *text, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -10627,7 +10612,7 @@ dwg_ent_mtext_get_linespace_style (const dwg_ent_mtext *restrict mtext, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -10646,7 +10631,7 @@ dwg_ent_mtext_set_linespace_style (dwg_ent_mtext *restrict mtext, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -10664,7 +10649,7 @@ dwg_ent_mtext_get_linespace_factor (const dwg_ent_mtext *restrict mtext, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -10683,7 +10668,7 @@ dwg_ent_mtext_set_linespace_factor (dwg_ent_mtext *restrict mtext, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -10705,7 +10690,7 @@ dwg_ent_leader_set_annot_type (dwg_ent_leader *restrict leader, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -10723,7 +10708,7 @@ dwg_ent_leader_get_annot_type (const dwg_ent_leader *restrict leader, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -10742,7 +10727,7 @@ dwg_ent_leader_set_path_type (dwg_ent_leader *restrict leader, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -10760,7 +10745,7 @@ dwg_ent_leader_get_path_type (const dwg_ent_leader *restrict leader, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -10779,7 +10764,7 @@ dwg_ent_leader_get_num_points (const dwg_ent_leader *restrict leader, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0L; } } @@ -10807,7 +10792,7 @@ dwg_ent_leader_set_origin (dwg_ent_leader *restrict leader, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -10831,7 +10816,7 @@ dwg_ent_leader_get_origin (const dwg_ent_leader *restrict leader, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -10856,7 +10841,7 @@ dwg_ent_leader_set_extrusion (dwg_ent_leader *restrict leader, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -10881,7 +10866,7 @@ dwg_ent_leader_get_extrusion (const dwg_ent_leader *restrict leader, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -10906,7 +10891,7 @@ dwg_ent_leader_set_x_direction (dwg_ent_leader *restrict leader, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -10931,7 +10916,7 @@ dwg_ent_leader_get_x_direction (const dwg_ent_leader *restrict leader, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -10956,7 +10941,7 @@ dwg_ent_leader_set_inspt_offset (dwg_ent_leader *restrict leader, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -10981,7 +10966,7 @@ dwg_ent_leader_get_inspt_offset (const dwg_ent_leader *restrict leader, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -10999,7 +10984,7 @@ dwg_ent_leader_set_dimgap (dwg_ent_leader *restrict leader, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -11017,7 +11002,7 @@ dwg_ent_leader_get_dimgap (const dwg_ent_leader *restrict leader, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -11036,7 +11021,7 @@ dwg_ent_leader_set_box_height (dwg_ent_leader *restrict leader, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -11054,7 +11039,7 @@ dwg_ent_leader_get_box_height (const dwg_ent_leader *restrict leader, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -11073,7 +11058,7 @@ dwg_ent_leader_set_box_width (dwg_ent_leader *restrict leader, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -11091,7 +11076,7 @@ dwg_ent_leader_get_box_width (const dwg_ent_leader *restrict leader, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -11110,7 +11095,7 @@ dwg_ent_leader_set_hookline_dir (dwg_ent_leader *restrict leader, char dir, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -11128,7 +11113,7 @@ dwg_ent_leader_get_hookline_dir (const dwg_ent_leader *restrict leader, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -11147,7 +11132,7 @@ dwg_ent_leader_set_arrowhead_on (dwg_ent_leader *restrict leader, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -11165,7 +11150,7 @@ dwg_ent_leader_get_arrowhead_on (const dwg_ent_leader *restrict leader, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -11184,7 +11169,7 @@ dwg_ent_leader_set_arrowhead_type (dwg_ent_leader *restrict leader, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -11202,7 +11187,7 @@ dwg_ent_leader_get_arrowhead_type (const dwg_ent_leader *restrict leader, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -11221,7 +11206,7 @@ dwg_ent_leader_set_dimasz (dwg_ent_leader *restrict leader, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -11239,7 +11224,7 @@ dwg_ent_leader_get_dimasz (const dwg_ent_leader *restrict leader, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -11258,7 +11243,7 @@ dwg_ent_leader_set_byblock_color (dwg_ent_leader *restrict leader, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -11276,7 +11261,7 @@ dwg_ent_leader_get_byblock_color (const dwg_ent_leader *restrict leader, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -11299,7 +11284,7 @@ dwg_ent_tolerance_set_height (dwg_ent_tolerance *restrict tol, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -11317,7 +11302,7 @@ dwg_ent_tolerance_get_height (const dwg_ent_tolerance *restrict tol, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -11336,7 +11321,7 @@ dwg_ent_tolerance_set_dimgap (dwg_ent_tolerance *restrict tol, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -11354,7 +11339,7 @@ dwg_ent_tolerance_get_dimgap (const dwg_ent_tolerance *restrict tol, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -11380,7 +11365,7 @@ dwg_ent_tolerance_set_ins_pt (dwg_ent_tolerance *restrict tol, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -11405,7 +11390,7 @@ dwg_ent_tolerance_get_ins_pt (const dwg_ent_tolerance *restrict tol, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -11430,7 +11415,7 @@ dwg_ent_tolerance_set_x_direction (dwg_ent_tolerance *restrict tol, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -11455,7 +11440,7 @@ dwg_ent_tolerance_get_x_direction (const dwg_ent_tolerance *restrict tol, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -11480,7 +11465,7 @@ dwg_ent_tolerance_set_extrusion (dwg_ent_tolerance *restrict tol, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -11505,7 +11490,7 @@ dwg_ent_tolerance_get_extrusion (const dwg_ent_tolerance *restrict tol, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -11524,7 +11509,7 @@ dwg_ent_tolerance_set_text_string (dwg_ent_tolerance *restrict tol, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -11545,7 +11530,7 @@ dwg_ent_tolerance_get_text_string (const dwg_ent_tolerance *restrict tol, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return NULL; } } @@ -11567,7 +11552,7 @@ dwg_ent_lwpline_get_flag (const dwg_ent_lwpline *restrict lwpline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -11586,7 +11571,7 @@ dwg_ent_lwpline_set_flag (dwg_ent_lwpline *restrict lwpline, char flags, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -11604,7 +11589,7 @@ dwg_ent_lwpline_get_const_width (const dwg_ent_lwpline *restrict lwpline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -11623,7 +11608,7 @@ dwg_ent_lwpline_set_const_width (dwg_ent_lwpline *restrict lwpline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } /** Returns lwpline elevation @@ -11640,7 +11625,7 @@ dwg_ent_lwpline_get_elevation (const dwg_ent_lwpline *restrict lwpline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -11659,7 +11644,7 @@ dwg_ent_lwpline_set_elevation (dwg_ent_lwpline *restrict lwpline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } /** Returns lwpline thickness @@ -11676,7 +11661,7 @@ dwg_ent_lwpline_get_thickness (const dwg_ent_lwpline *restrict lwpline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -11695,7 +11680,7 @@ dwg_ent_lwpline_set_thickness (dwg_ent_lwpline *restrict lwpline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -11713,7 +11698,7 @@ dwg_ent_lwpline_get_numbulges (const dwg_ent_lwpline *restrict lwpline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0L; } } @@ -11732,7 +11717,7 @@ dwg_ent_lwpline_get_numwidths (const dwg_ent_lwpline *restrict lwpline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0L; } } @@ -11758,7 +11743,7 @@ dwg_ent_lwpline_get_extrusion (const dwg_ent_lwpline *restrict lwpline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -11783,7 +11768,7 @@ dwg_ent_lwpline_set_extrusion (dwg_ent_lwpline *restrict lwpline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -11805,7 +11790,7 @@ dwg_ent_ole2frame_get_type (const dwg_ent_ole2frame *restrict frame, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return (BITCODE_BS)-1; } } @@ -11824,7 +11809,7 @@ dwg_ent_ole2frame_set_type (dwg_ent_ole2frame *restrict frame, else { *error = 1; - LOG_ERROR ("%s: empty or wrong arg", __FUNCTION__) + LOG_ERROR ("%s: empty or wrong arg", "") } } @@ -11842,7 +11827,7 @@ dwg_ent_ole2frame_get_mode (const dwg_ent_ole2frame *restrict frame, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return (BITCODE_BS)-1; } } @@ -11861,7 +11846,7 @@ dwg_ent_ole2frame_set_mode (dwg_ent_ole2frame *restrict frame, else { *error = 1; - LOG_ERROR ("%s: empty or wrong arg", __FUNCTION__) + LOG_ERROR ("%s: empty or wrong arg", "") } } @@ -11879,7 +11864,7 @@ dwg_ent_ole2frame_get_data_size (const dwg_ent_ole2frame *restrict frame, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0L; } } @@ -11898,7 +11883,7 @@ dwg_ent_ole2frame_get_data (const dwg_ent_ole2frame *restrict frame, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return NULL; } } @@ -11919,7 +11904,7 @@ dwg_ent_ole2frame_set_data (dwg_ent_ole2frame *restrict frame, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -11939,7 +11924,7 @@ dwg_obj_proxy_get_class_id (const dwg_obj_proxy *restrict proxy, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0L; } } @@ -11956,7 +11941,7 @@ dwg_obj_proxy_set_class_id (dwg_obj_proxy *restrict proxy, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -11972,7 +11957,7 @@ dwg_obj_proxy_get_version (const dwg_obj_proxy *restrict proxy, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0L; } } @@ -11989,7 +11974,7 @@ dwg_obj_proxy_set_version (dwg_obj_proxy *restrict proxy, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -12005,7 +11990,7 @@ dwg_obj_proxy_get_from_dxf (const dwg_obj_proxy *restrict proxy, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0L; } } @@ -12022,7 +12007,7 @@ dwg_obj_proxy_set_from_dxf (dwg_obj_proxy *restrict proxy, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -12038,7 +12023,7 @@ dwg_obj_proxy_get_data (const dwg_obj_proxy *restrict proxy, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return NULL; } } @@ -12055,7 +12040,7 @@ dwg_obj_proxy_set_data (dwg_obj_proxy *restrict proxy, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -12071,7 +12056,7 @@ dwg_obj_proxy_get_objids (const dwg_obj_proxy *restrict proxy, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return NULL; } } @@ -12092,7 +12077,7 @@ dwg_obj_xrecord_get_xdata_size (const dwg_obj_xrecord *restrict xrecord, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0L; } } @@ -12109,7 +12094,7 @@ dwg_obj_xrecord_get_cloning_flags (const dwg_obj_xrecord *restrict xrecord, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0L; } } @@ -12127,7 +12112,7 @@ dwg_obj_xrecord_set_cloning_flags (dwg_obj_xrecord *restrict xrecord, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -12143,7 +12128,7 @@ dwg_obj_xrecord_get_num_xdata (const dwg_obj_xrecord *restrict xrecord, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0U; } } @@ -12160,7 +12145,7 @@ dwg_obj_xrecord_get_xdata (const dwg_obj_xrecord *restrict xrecord, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return NULL; } } @@ -12177,7 +12162,7 @@ dwg_obj_xrecord_set_xdata (dwg_obj_xrecord *restrict xrecord, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -12193,7 +12178,7 @@ dwg_obj_xrecord_get_num_objid_handles (const dwg_obj_xrecord *restrict xrecord, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -12210,7 +12195,7 @@ dwg_obj_xrecord_get_objid_handles (const dwg_obj_xrecord *restrict xrecord, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return NULL; } } @@ -12233,7 +12218,7 @@ dwg_ent_spline_get_scenario (const dwg_ent_spline *restrict spline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -12252,7 +12237,7 @@ dwg_ent_spline_set_scenario (dwg_ent_spline *restrict spline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -12270,7 +12255,7 @@ dwg_ent_spline_get_degree (const dwg_ent_spline *restrict spline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -12289,7 +12274,7 @@ dwg_ent_spline_set_degree (dwg_ent_spline *restrict spline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -12307,7 +12292,7 @@ dwg_ent_spline_get_fit_tol (const dwg_ent_spline *restrict spline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -12326,7 +12311,7 @@ dwg_ent_spline_set_fit_tol (dwg_ent_spline *restrict spline, int fit_tol, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -12351,7 +12336,7 @@ dwg_ent_spline_get_begin_tan_vector (const dwg_ent_spline *restrict spline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -12376,7 +12361,7 @@ dwg_ent_spline_set_begin_tan_vector (dwg_ent_spline *restrict spline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -12401,7 +12386,7 @@ dwg_ent_spline_get_end_tan_vector (const dwg_ent_spline *restrict spline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -12426,7 +12411,7 @@ dwg_ent_spline_set_end_tan_vector (dwg_ent_spline *restrict spline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -12444,7 +12429,7 @@ dwg_ent_spline_get_knot_tol (const dwg_ent_spline *restrict spline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -12463,7 +12448,7 @@ dwg_ent_spline_set_knot_tol (dwg_ent_spline *restrict spline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -12481,7 +12466,7 @@ dwg_ent_spline_get_ctrl_tol (const dwg_ent_spline *restrict spline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -12500,7 +12485,7 @@ dwg_ent_spline_set_ctrl_tol (dwg_ent_spline *restrict spline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -12518,7 +12503,7 @@ dwg_ent_spline_get_num_fit_pts (const dwg_ent_spline *restrict spline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -12537,7 +12522,7 @@ dwg_ent_spline_get_rational (const dwg_ent_spline *restrict spline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -12556,7 +12541,7 @@ dwg_ent_spline_set_rational (dwg_ent_spline *restrict spline, char rational, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -12574,7 +12559,7 @@ dwg_ent_spline_get_closed_b (const dwg_ent_spline *restrict spline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -12593,7 +12578,7 @@ dwg_ent_spline_set_closed_b (dwg_ent_spline *restrict spline, char closed_b, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -12611,7 +12596,7 @@ dwg_ent_spline_get_weighted (const dwg_ent_spline *restrict spline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -12630,7 +12615,7 @@ dwg_ent_spline_set_weighted (dwg_ent_spline *restrict spline, char weighted, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -12648,7 +12633,7 @@ dwg_ent_spline_get_periodic (const dwg_ent_spline *restrict spline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -12667,7 +12652,7 @@ dwg_ent_spline_set_periodic (dwg_ent_spline *restrict spline, char periodic, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -12685,7 +12670,7 @@ dwg_ent_spline_get_num_knots (const dwg_ent_spline *restrict spline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0L; } } @@ -12708,7 +12693,7 @@ dwg_ent_spline_get_num_ctrl_pts (const dwg_ent_spline *restrict spline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0L; } } @@ -12733,7 +12718,7 @@ dwg_ent_spline_get_fit_pts (const dwg_ent_spline *restrict spline, else { *error = 1; - LOG_ERROR ("%s: Out of memory", __FUNCTION__) + LOG_ERROR ("%s: Out of memory", "") return NULL; } } @@ -12759,7 +12744,7 @@ dwg_ent_spline_get_ctrl_pts (const dwg_ent_spline *restrict spline, else { *error = 1; - LOG_ERROR ("%s: Out of memory", __FUNCTION__) + LOG_ERROR ("%s: Out of memory", "") return NULL; } } @@ -12784,7 +12769,7 @@ dwg_ent_spline_get_knots (const dwg_ent_spline *restrict spline, else { *error = 1; - LOG_ERROR ("%s: Out of memory", __FUNCTION__) + LOG_ERROR ("%s: Out of memory", "") return NULL; } } @@ -12813,7 +12798,7 @@ dwg_ent_viewport_get_center (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -12838,7 +12823,7 @@ dwg_ent_viewport_set_center (dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -12856,7 +12841,7 @@ dwg_ent_viewport_get_width (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -12875,7 +12860,7 @@ dwg_ent_viewport_set_width (dwg_ent_viewport *restrict vp, const double width, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -12893,7 +12878,7 @@ dwg_ent_viewport_get_height (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -12912,7 +12897,7 @@ dwg_ent_viewport_set_height (dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -12930,7 +12915,7 @@ dwg_ent_viewport_get_grid_major (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -12949,7 +12934,7 @@ dwg_ent_viewport_set_grid_major (dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -12967,7 +12952,7 @@ dwg_ent_viewport_get_num_frozen_layers (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0L; } } @@ -12987,7 +12972,7 @@ dwg_ent_viewport_set_num_frozen_layers (dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13008,7 +12993,7 @@ dwg_ent_viewport_get_style_sheet (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return NULL; } } @@ -13027,7 +13012,7 @@ dwg_ent_viewport_set_style_sheet (dwg_ent_viewport *restrict ent, char *sheet, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13045,7 +13030,7 @@ dwg_ent_viewport_set_circle_zoom (dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13063,7 +13048,7 @@ dwg_ent_viewport_get_circle_zoom (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -13082,7 +13067,7 @@ dwg_ent_viewport_set_status_flag (dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13100,7 +13085,7 @@ dwg_ent_viewport_get_status_flag (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0L; } } @@ -13119,7 +13104,7 @@ dwg_ent_viewport_get_render_mode (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -13138,7 +13123,7 @@ dwg_ent_viewport_set_render_mode (dwg_ent_viewport *restrict vp, char mode, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13156,7 +13141,7 @@ dwg_ent_viewport_set_ucs_at_origin (dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13174,7 +13159,7 @@ dwg_ent_viewport_get_ucs_at_origin (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -13193,7 +13178,7 @@ dwg_ent_viewport_set_UCSVP (dwg_ent_viewport *restrict vp, unsigned char ucsvp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13211,7 +13196,7 @@ dwg_ent_viewport_get_UCSVP (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -13237,7 +13222,7 @@ dwg_ent_viewport_set_view_target (dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13262,7 +13247,7 @@ dwg_ent_viewport_get_view_target (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13287,7 +13272,7 @@ dwg_ent_viewport_set_VIEWDIR (dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13312,7 +13297,7 @@ dwg_ent_viewport_get_VIEWDIR (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13330,7 +13315,7 @@ dwg_ent_viewport_set_twist_angle (dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13348,7 +13333,7 @@ dwg_ent_viewport_get_twist_angle (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -13367,7 +13352,7 @@ dwg_ent_viewport_set_VIEWSIZE (dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13385,7 +13370,7 @@ dwg_ent_viewport_get_VIEWSIZE (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -13404,7 +13389,7 @@ dwg_ent_viewport_set_lens_length (dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13422,7 +13407,7 @@ dwg_ent_viewport_get_lens_length (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -13441,7 +13426,7 @@ dwg_ent_viewport_set_front_clip_z (dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13459,7 +13444,7 @@ dwg_ent_viewport_get_front_clip_z (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -13478,7 +13463,7 @@ dwg_ent_viewport_set_back_clip_z (dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13496,7 +13481,7 @@ dwg_ent_viewport_get_back_clip_z (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -13515,7 +13500,7 @@ dwg_ent_viewport_set_SNAPANG (dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13533,7 +13518,7 @@ dwg_ent_viewport_get_SNAPANG (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -13558,7 +13543,7 @@ dwg_ent_viewport_get_VIEWCTR (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13578,7 +13563,7 @@ dwg_ent_viewport_set_VIEWCTR (dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13602,7 +13587,7 @@ dwg_ent_viewport_get_GRIDUNIT (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13626,7 +13611,7 @@ dwg_ent_viewport_set_GRIDUNIT (dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13650,7 +13635,7 @@ dwg_ent_viewport_get_SNAPBASE (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13674,7 +13659,7 @@ dwg_ent_viewport_set_SNAPBASE (dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13698,7 +13683,7 @@ dwg_ent_viewport_get_SNAPUNIT (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13722,7 +13707,7 @@ dwg_ent_viewport_set_SNAPUNIT (dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13747,7 +13732,7 @@ dwg_ent_viewport_set_ucsorg (dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13771,7 +13756,7 @@ dwg_ent_viewport_get_ucsorg (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13796,7 +13781,7 @@ dwg_ent_viewport_set_ucsxdir (dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13821,7 +13806,7 @@ dwg_ent_viewport_get_ucsxdir (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13846,7 +13831,7 @@ dwg_ent_viewport_set_ucsydir (dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13871,7 +13856,7 @@ dwg_ent_viewport_get_ucsydir (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13890,7 +13875,7 @@ dwg_ent_viewport_set_ucs_elevation (dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13908,7 +13893,7 @@ dwg_ent_viewport_get_ucs_elevation (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -13927,7 +13912,7 @@ dwg_ent_viewport_set_UCSORTHOVIEW (dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13945,7 +13930,7 @@ dwg_ent_viewport_get_UCSORTHOVIEW (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -13965,7 +13950,7 @@ dwg_ent_viewport_set_shadeplot_mode (dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -13983,7 +13968,7 @@ dwg_ent_viewport_get_shadeplot_mode (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -14003,7 +13988,7 @@ dwg_ent_viewport_set_use_default_lights (dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -14021,7 +14006,7 @@ dwg_ent_viewport_get_use_default_lights (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -14041,7 +14026,7 @@ dwg_ent_viewport_set_default_lighting_type (dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -14059,7 +14044,7 @@ dwg_ent_viewport_get_default_lighting_type ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -14078,7 +14063,7 @@ dwg_ent_viewport_set_brightness (dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -14096,7 +14081,7 @@ dwg_ent_viewport_get_brightness (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -14115,7 +14100,7 @@ dwg_ent_viewport_set_contrast (dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -14133,7 +14118,7 @@ dwg_ent_viewport_get_contrast (const dwg_ent_viewport *restrict vp, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -14155,7 +14140,7 @@ dwg_ent_polyline_pface_get_numpoints ( } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") *error = 1; return 0; } @@ -14174,7 +14159,7 @@ dwg_ent_polyline_pface_get_numfaces ( } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") *error = 1; return 0; } @@ -14187,12 +14172,12 @@ dwg_ent_polyline_pface_get_points (const dwg_object *restrict obj, if (obj && obj->fixedtype == DWG_TYPE_POLYLINE_PFACE) { *error = 0; - LOG_ERROR ("%s: nyi", __FUNCTION__); + LOG_ERROR ("%s: nyi", ""); return NULL; // TODO } else { - LOG_ERROR ("%s: empty or wrong arg", __FUNCTION__) + LOG_ERROR ("%s: empty or wrong arg", "") *error = 1; return NULL; } @@ -14215,7 +14200,7 @@ dwg_ent_polyline_mesh_get_flag (const dwg_ent_polyline_mesh *restrict mesh, } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") *error = 1; return 0; } @@ -14234,7 +14219,7 @@ dwg_ent_polyline_mesh_set_flag (dwg_ent_polyline_mesh *restrict mesh, } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") *error = 1; } } @@ -14252,7 +14237,7 @@ dwg_ent_polyline_mesh_get_curve_type ( } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") *error = 1; return 0; } @@ -14272,7 +14257,7 @@ dwg_ent_polyline_mesh_set_curve_type (dwg_ent_polyline_mesh *restrict mesh, } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") *error = 1; } } @@ -14290,7 +14275,7 @@ dwg_ent_polyline_mesh_get_num_m_verts ( } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") *error = 1; return 0; } @@ -14312,7 +14297,7 @@ dwg_ent_polyline_mesh_get_num_n_verts ( } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") *error = 1; return 0; } @@ -14331,7 +14316,7 @@ dwg_ent_polyline_mesh_get_m_density ( } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") *error = 1; return 0; } @@ -14351,7 +14336,7 @@ dwg_ent_polyline_mesh_set_m_density (dwg_ent_polyline_mesh *restrict mesh, } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") *error = 1; } } @@ -14369,7 +14354,7 @@ dwg_ent_polyline_mesh_get_n_density ( } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") *error = 1; return 0; } @@ -14389,7 +14374,7 @@ dwg_ent_polyline_mesh_set_n_density (dwg_ent_polyline_mesh *restrict mesh, } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") *error = 1; } } @@ -14407,7 +14392,7 @@ dwg_ent_polyline_mesh_get_num_owned ( } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") *error = 1; return 0L; } @@ -14441,7 +14426,7 @@ dwg_ent_polyline_2d_get_extrusion (const dwg_ent_polyline_2d *restrict pline2d, } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") *error = 1; } } @@ -14470,7 +14455,7 @@ dwg_ent_polyline_2d_set_extrusion (dwg_ent_polyline_2d *restrict pline2d, } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") *error = 1; } } @@ -14492,7 +14477,7 @@ dwg_ent_polyline_2d_get_start_width ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -14515,7 +14500,7 @@ dwg_ent_polyline_2d_set_start_width (dwg_ent_polyline_2d *restrict pline2d, } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") *error = 1; } } @@ -14534,7 +14519,7 @@ dwg_ent_polyline_2d_get_end_width (const dwg_ent_polyline_2d *restrict pline2d, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -14552,7 +14537,7 @@ dwg_ent_polyline_2d_set_end_width (dwg_ent_polyline_2d *restrict pline2d, } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") *error = 1; } } @@ -14571,7 +14556,7 @@ dwg_ent_polyline_2d_get_thickness (const dwg_ent_polyline_2d *restrict pline2d, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -14589,7 +14574,7 @@ dwg_ent_polyline_2d_set_thickness (dwg_ent_polyline_2d *restrict pline2d, } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") *error = 1; } } @@ -14608,7 +14593,7 @@ dwg_ent_polyline_2d_get_elevation (const dwg_ent_polyline_2d *restrict pline2d, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -14626,7 +14611,7 @@ dwg_ent_polyline_2d_set_elevation (dwg_ent_polyline_2d *restrict pline2d, } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") *error = 1; } } @@ -14647,7 +14632,7 @@ dwg_ent_polyline_2d_get_flag (const dwg_ent_polyline_2d *restrict pline2d, } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") *error = 1; return 0; } @@ -14670,7 +14655,7 @@ dwg_ent_polyline_2d_set_flag (dwg_ent_polyline_2d *restrict pline2d, } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") *error = 1; } } @@ -14688,7 +14673,7 @@ dwg_ent_polyline_2d_get_curve_type ( } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") *error = 1; return 0; } @@ -14708,7 +14693,7 @@ dwg_ent_polyline_2d_set_curve_type (dwg_ent_polyline_2d *restrict pline2d, } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") *error = 1; } } @@ -14733,7 +14718,7 @@ dwg_ent_polyline_3d_get_flag (const dwg_ent_polyline_3d *restrict pline3d, } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") *error = 1; return '\0'; } @@ -14756,7 +14741,7 @@ dwg_ent_polyline_3d_set_flag (dwg_ent_polyline_3d *restrict pline3d, } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") *error = 1; } } @@ -14774,7 +14759,7 @@ dwg_ent_polyline_3d_get_curve_type ( } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") *error = 1; return '\0'; } @@ -14794,7 +14779,7 @@ dwg_ent_polyline_3d_set_curve_type (dwg_ent_polyline_3d *restrict pline3d, } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") *error = 1; } } @@ -14820,7 +14805,7 @@ dwg_ent_3dface_get_invis_flags (const dwg_ent_3dface *restrict _3dface, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -14846,7 +14831,7 @@ dwg_ent_3dface_set_invis_flags (dwg_ent_3dface *restrict _3dface, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -14876,7 +14861,7 @@ dwg_ent_3dface_get_corner1 (const dwg_ent_3dface *restrict _3dface, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -14907,7 +14892,7 @@ dwg_ent_3dface_set_corner1 (dwg_ent_3dface *restrict _3dface, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -14937,7 +14922,7 @@ dwg_ent_3dface_get_corner2 (const dwg_ent_3dface *restrict _3dface, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -14968,7 +14953,7 @@ dwg_ent_3dface_set_corner2 (dwg_ent_3dface *restrict _3dface, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -14998,7 +14983,7 @@ dwg_ent_3dface_get_corner3 (const dwg_ent_3dface *restrict _3dface, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -15029,7 +15014,7 @@ dwg_ent_3dface_set_corner3 (dwg_ent_3dface *restrict _3dface, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -15059,7 +15044,7 @@ dwg_ent_3dface_get_corner4 (const dwg_ent_3dface *restrict _3dface, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -15090,7 +15075,7 @@ dwg_ent_3dface_set_corner4 (dwg_ent_3dface *restrict _3dface, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -15112,7 +15097,7 @@ dwg_ent_image_get_class_version (const dwg_ent_image *restrict image, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0L; } } @@ -15132,7 +15117,7 @@ dwg_ent_image_set_class_version (dwg_ent_image *restrict image, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -15156,7 +15141,7 @@ dwg_ent_image_get_pt0 (const dwg_ent_image *restrict image, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -15180,7 +15165,7 @@ dwg_ent_image_set_pt0 (dwg_ent_image *restrict image, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -15204,7 +15189,7 @@ dwg_ent_image_get_u_vector (const dwg_ent_image *restrict image, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -15229,7 +15214,7 @@ dwg_ent_image_set_u_vector (dwg_ent_image *restrict image, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -15253,7 +15238,7 @@ dwg_ent_image_get_v_vector (const dwg_ent_image *restrict image, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -15278,7 +15263,7 @@ dwg_ent_image_set_v_vector (dwg_ent_image *restrict image, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -15296,7 +15281,7 @@ dwg_ent_image_get_size_height (const dwg_ent_image *restrict image, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -15315,7 +15300,7 @@ dwg_ent_image_set_size_height (dwg_ent_image *restrict image, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -15333,7 +15318,7 @@ dwg_ent_image_get_size_width (const dwg_ent_image *restrict image, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -15352,7 +15337,7 @@ dwg_ent_image_set_size_width (dwg_ent_image *restrict image, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -15370,7 +15355,7 @@ dwg_ent_image_get_display_props (const dwg_ent_image *restrict image, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -15390,7 +15375,7 @@ dwg_ent_image_set_display_props (dwg_ent_image *restrict image, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -15408,7 +15393,7 @@ dwg_ent_image_get_clipping (const dwg_ent_image *restrict image, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -15427,7 +15412,7 @@ dwg_ent_image_set_clipping (dwg_ent_image *restrict image, BITCODE_B clipping, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -15445,7 +15430,7 @@ dwg_ent_image_get_brightness (const dwg_ent_image *restrict image, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -15464,7 +15449,7 @@ dwg_ent_image_set_brightness (dwg_ent_image *restrict image, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -15481,7 +15466,7 @@ dwg_ent_image_get_contrast (const dwg_ent_image *restrict image, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -15500,7 +15485,7 @@ dwg_ent_image_set_contrast (dwg_ent_image *restrict image, const char contrast, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -15518,7 +15503,7 @@ dwg_ent_image_get_fade (const dwg_ent_image *restrict image, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -15537,7 +15522,7 @@ dwg_ent_image_set_fade (dwg_ent_image *restrict image, const char fade, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -15555,7 +15540,7 @@ dwg_ent_image_get_clip_boundary_type (const dwg_ent_image *restrict image, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -15575,7 +15560,7 @@ dwg_ent_image_set_clip_boundary_type (dwg_ent_image *restrict image, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -15599,7 +15584,7 @@ dwg_ent_image_get_boundary_pt0 (const dwg_ent_image *restrict image, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -15623,7 +15608,7 @@ dwg_ent_image_set_boundary_pt0 (dwg_ent_image *restrict image, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -15647,7 +15632,7 @@ dwg_ent_image_get_boundary_pt1 (const dwg_ent_image *restrict image, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -15671,7 +15656,7 @@ dwg_ent_image_set_boundary_pt1 (dwg_ent_image *restrict image, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -15688,7 +15673,7 @@ dwg_ent_image_get_num_clip_verts (const dwg_ent_image *restrict image, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -15714,7 +15699,7 @@ dwg_ent_image_get_clip_verts (const dwg_ent_image *restrict image, else { *error = 1; - LOG_ERROR ("%s: Out of memory", __FUNCTION__) + LOG_ERROR ("%s: Out of memory", "") return NULL; } } @@ -15737,7 +15722,7 @@ dwg_ent_mline_set_scale (dwg_ent_mline *restrict mline, const double scale, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -15755,7 +15740,7 @@ dwg_ent_mline_get_scale (const dwg_ent_mline *restrict mline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -15775,7 +15760,7 @@ dwg_ent_mline_set_justification (dwg_ent_mline *restrict mline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -15793,7 +15778,7 @@ dwg_ent_mline_get_justification (const dwg_ent_mline *restrict mline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -15819,7 +15804,7 @@ dwg_ent_mline_set_base_point (dwg_ent_mline *restrict mline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -15844,7 +15829,7 @@ dwg_ent_mline_get_base_point (const dwg_ent_mline *restrict mline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -15869,7 +15854,7 @@ dwg_ent_mline_set_extrusion (dwg_ent_mline *restrict mline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -15893,7 +15878,7 @@ dwg_ent_mline_get_extrusion (const dwg_ent_mline *restrict mline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -15911,7 +15896,7 @@ dwg_ent_mline_set_flags (dwg_ent_mline *restrict mline, const BITCODE_BS oc, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -15929,7 +15914,7 @@ dwg_ent_mline_get_flags (const dwg_ent_mline *restrict mline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -15948,7 +15933,7 @@ dwg_ent_mline_get_num_lines (const dwg_ent_mline *restrict mline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -15974,7 +15959,7 @@ dwg_mline_vertex_get_lines (const dwg_mline_vertex *restrict vertex, else { *error = 1; - LOG_ERROR ("%s: Out of memory", __FUNCTION__) + LOG_ERROR ("%s: Out of memory", "") return NULL; } } @@ -15993,7 +15978,7 @@ dwg_ent_mline_get_num_verts (const dwg_ent_mline *restrict mline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -16019,7 +16004,7 @@ dwg_ent_mline_get_verts (const dwg_ent_mline *restrict mline, else { *error = 1; - LOG_ERROR ("%s: Out of memory", __FUNCTION__) + LOG_ERROR ("%s: Out of memory", "") return NULL; } } @@ -16039,7 +16024,7 @@ dwg_ent_vertex_pface_face_get_vertind (const dwg_ent_vert_pface_face *face) } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return (BITCODE_BS)-1; } } @@ -16063,7 +16048,7 @@ dwg_ent_vertex_pface_face_set_vertind (dwg_ent_vert_pface_face *restrict face, } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -16085,7 +16070,7 @@ dwg_ent_3dsolid_get_acis_empty (const dwg_ent_3dsolid *restrict _3dsolid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -16104,7 +16089,7 @@ dwg_ent_3dsolid_set_acis_empty (dwg_ent_3dsolid *restrict _3dsolid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -16124,7 +16109,7 @@ dwg_ent_3dsolid_get_version (const dwg_ent_3dsolid *restrict _3dsolid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -16143,7 +16128,7 @@ dwg_ent_3dsolid_get_acis_data (const dwg_ent_3dsolid *restrict _3dsolid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return NULL; } } @@ -16163,7 +16148,7 @@ dwg_ent_3dsolid_set_acis_data (dwg_ent_3dsolid *restrict _3dsolid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -16181,7 +16166,7 @@ dwg_ent_3dsolid_get_wireframe_data_present ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -16201,7 +16186,7 @@ dwg_ent_3dsolid_set_wireframe_data_present (dwg_ent_3dsolid *restrict _3dsolid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -16219,7 +16204,7 @@ dwg_ent_3dsolid_get_point_present (const dwg_ent_3dsolid *restrict _3dsolid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -16238,7 +16223,7 @@ dwg_ent_3dsolid_set_point_present (dwg_ent_3dsolid *restrict _3dsolid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -16262,7 +16247,7 @@ dwg_ent_3dsolid_get_point (const dwg_ent_3dsolid *restrict _3dsolid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -16287,7 +16272,7 @@ dwg_ent_3dsolid_set_point (dwg_ent_3dsolid *restrict _3dsolid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -16305,7 +16290,7 @@ dwg_ent_3dsolid_get_isolines (const dwg_ent_3dsolid *restrict _3dsolid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0L; } } @@ -16325,7 +16310,7 @@ dwg_ent_3dsolid_set_isolines (dwg_ent_3dsolid *restrict _3dsolid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -16344,7 +16329,7 @@ dwg_ent_3dsolid_get_isoline_present (const dwg_ent_3dsolid *restrict _3dsolid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -16364,7 +16349,7 @@ dwg_ent_3dsolid_set_isoline_present (dwg_ent_3dsolid *restrict _3dsolid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -16382,7 +16367,7 @@ dwg_ent_3dsolid_get_num_wires (const dwg_ent_3dsolid *restrict _3dsolid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0L; } } @@ -16409,7 +16394,7 @@ dwg_ent_3dsolid_get_wires (const dwg_ent_3dsolid *restrict _3dsolid, else { *error = 1; - LOG_ERROR ("%s: Out of memory", __FUNCTION__) + LOG_ERROR ("%s: Out of memory", "") return NULL; } } @@ -16428,7 +16413,7 @@ dwg_ent_3dsolid_get_num_silhouettes (const dwg_ent_3dsolid *restrict _3dsolid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0L; } } @@ -16455,7 +16440,7 @@ dwg_ent_3dsolid_get_silhouettes (const dwg_ent_3dsolid *restrict _3dsolid, else { *error = 1; - LOG_ERROR ("%s: Out of memory", __FUNCTION__) + LOG_ERROR ("%s: Out of memory", "") return NULL; } } @@ -16474,7 +16459,7 @@ dwg_ent_3dsolid_get_acis_empty2 (const dwg_ent_3dsolid *restrict _3dsolid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -16493,7 +16478,7 @@ dwg_ent_3dsolid_set_acis_empty2 (dwg_ent_3dsolid *restrict _3dsolid, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -16956,7 +16941,7 @@ dwg_ent_table_set_insertion_pt (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -16985,7 +16970,7 @@ dwg_ent_table_get_insertion_pt (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -17027,7 +17012,7 @@ dwg_ent_table_set_scale (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -17055,7 +17040,7 @@ dwg_ent_table_get_scale (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -17077,7 +17062,7 @@ dwg_ent_table_set_rotation (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -17098,7 +17083,7 @@ dwg_ent_table_get_rotation (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -17128,7 +17113,7 @@ dwg_ent_table_set_extrusion (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -17157,7 +17142,7 @@ dwg_ent_table_get_extrusion (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -17177,7 +17162,7 @@ dwg_ent_table_has_attribs (dwg_ent_table *restrict table, int *restrict error) else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -17202,7 +17187,7 @@ dwg_ent_table_get_num_owned (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0L; } } @@ -17235,7 +17220,7 @@ dwg_ent_table_set_flag_for_table_value (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -17257,7 +17242,7 @@ dwg_ent_table_get_flag_for_table_value (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -17287,7 +17272,7 @@ dwg_ent_table_set_horiz_direction (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -17316,7 +17301,7 @@ dwg_ent_table_get_horiz_direction (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -17337,7 +17322,7 @@ dwg_ent_table_get_num_cols (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0L; } } @@ -17359,7 +17344,7 @@ dwg_ent_table_get_num_rows (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0L; } } @@ -17384,7 +17369,7 @@ dwg_ent_table_get_col_widths (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return NULL; } } @@ -17406,7 +17391,7 @@ dwg_ent_table_get_row_heights (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return NULL; } } @@ -17428,7 +17413,7 @@ dwg_ent_table_has_table_overrides (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -17452,7 +17437,7 @@ dwg_ent_table_set_table_flag_override (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -17473,7 +17458,7 @@ dwg_ent_table_get_table_flag_override (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0L; } } @@ -17499,7 +17484,7 @@ dwg_ent_table_set_title_suppressed (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -17520,7 +17505,7 @@ dwg_ent_table_get_title_suppressed (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -17544,7 +17529,7 @@ dwg_ent_table_set_header_suppressed (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -17565,7 +17550,7 @@ dwg_ent_table_get_header_suppressed (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -17590,7 +17575,7 @@ dwg_ent_table_set_flow_direction (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -17611,7 +17596,7 @@ dwg_ent_table_get_flow_direction (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -17638,7 +17623,7 @@ dwg_ent_table_set_horiz_cell_margin (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -17659,7 +17644,7 @@ dwg_ent_table_get_horiz_cell_margin (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -17686,7 +17671,7 @@ dwg_ent_table_set_vert_cell_margin (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -17707,7 +17692,7 @@ dwg_ent_table_get_vert_cell_margin (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -17733,7 +17718,7 @@ dwg_ent_table_set_title_row_fill_none (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -17754,7 +17739,7 @@ dwg_ent_table_get_title_row_fill_none (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -17780,7 +17765,7 @@ dwg_ent_table_set_header_row_fill_none (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -17801,7 +17786,7 @@ dwg_ent_table_get_header_row_fill_none (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -17827,7 +17812,7 @@ dwg_ent_table_set_data_row_fill_none (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -17848,7 +17833,7 @@ dwg_ent_table_get_data_row_fill_none (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -17876,7 +17861,7 @@ dwg_ent_table_set_title_row_alignment (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -17897,7 +17882,7 @@ dwg_ent_table_get_title_row_alignment (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -17923,7 +17908,7 @@ dwg_ent_table_set_header_row_alignment (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -17945,7 +17930,7 @@ dwg_ent_table_get_header_row_alignment (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -17974,7 +17959,7 @@ dwg_ent_table_set_data_row_alignment (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -17995,7 +17980,7 @@ dwg_ent_table_get_data_row_alignment (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -18022,7 +18007,7 @@ dwg_ent_table_set_title_row_height (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -18043,7 +18028,7 @@ dwg_ent_table_get_title_row_height (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -18070,7 +18055,7 @@ dwg_ent_table_set_header_row_height (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -18091,7 +18076,7 @@ dwg_ent_table_get_header_row_height (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -18118,7 +18103,7 @@ dwg_ent_table_set_data_row_height (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -18139,7 +18124,7 @@ dwg_ent_table_get_data_row_height (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return bit_nan (); } } @@ -18161,7 +18146,7 @@ dwg_ent_table_has_border_color_overrides (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -18185,7 +18170,7 @@ dwg_ent_table_set_border_color_overrides_flag (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty or invalid arg", __FUNCTION__) + LOG_ERROR ("%s: empty or invalid arg", "") } } @@ -18213,7 +18198,7 @@ dwg_ent_table_get_border_color_overrides_flag ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0L; } } @@ -18235,7 +18220,7 @@ dwg_ent_table_has_border_lineweight_overrides (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -18259,7 +18244,7 @@ dwg_ent_table_set_border_lineweight_overrides_flag ( else { *error = 1; - LOG_ERROR ("%s: empty or invalid arg", __FUNCTION__) + LOG_ERROR ("%s: empty or invalid arg", "") } } @@ -18280,7 +18265,7 @@ dwg_ent_table_get_border_lineweight_overrides_flag ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0L; } } @@ -18304,7 +18289,7 @@ dwg_ent_table_set_title_horiz_top_linewt (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -18326,7 +18311,7 @@ dwg_ent_table_get_title_horiz_top_linewt (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -18350,7 +18335,7 @@ dwg_ent_table_set_title_horiz_ins_linewt (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -18372,7 +18357,7 @@ dwg_ent_table_get_title_horiz_ins_linewt (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -18396,7 +18381,7 @@ dwg_ent_table_set_title_horiz_bottom_linewt (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -18418,7 +18403,7 @@ dwg_ent_table_get_title_horiz_bottom_linewt ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -18442,7 +18427,7 @@ dwg_ent_table_set_title_vert_left_linewt (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -18464,7 +18449,7 @@ dwg_ent_table_get_title_vert_left_linewt (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -18488,7 +18473,7 @@ dwg_ent_table_set_title_vert_ins_linewt (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -18510,7 +18495,7 @@ dwg_ent_table_get_title_vert_ins_linewt (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -18534,7 +18519,7 @@ dwg_ent_table_set_title_vert_right_linewt (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -18556,7 +18541,7 @@ dwg_ent_table_get_title_vert_right_linewt (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -18580,7 +18565,7 @@ dwg_ent_table_set_header_horiz_top_linewt (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -18602,7 +18587,7 @@ dwg_ent_table_get_header_horiz_top_linewt (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -18626,7 +18611,7 @@ dwg_ent_table_set_header_horiz_ins_linewt (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -18648,7 +18633,7 @@ dwg_ent_table_get_header_horiz_ins_linewt (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -18672,7 +18657,7 @@ dwg_ent_table_set_header_horiz_bottom_linewt (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -18694,7 +18679,7 @@ dwg_ent_table_get_header_horiz_bottom_linewt ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -18718,7 +18703,7 @@ dwg_ent_table_set_header_vert_left_linewt (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -18740,7 +18725,7 @@ dwg_ent_table_get_header_vert_left_linewt (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -18764,7 +18749,7 @@ dwg_ent_table_set_header_vert_ins_linewt (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -18785,7 +18770,7 @@ dwg_ent_table_get_header_vert_ins_linewt (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -18809,7 +18794,7 @@ dwg_ent_table_set_header_vert_right_linewt (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -18830,7 +18815,7 @@ dwg_ent_table_get_header_vert_right_linewt ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -18854,7 +18839,7 @@ dwg_ent_table_set_data_horiz_top_linewt (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -18876,7 +18861,7 @@ dwg_ent_table_get_data_horiz_top_linewt (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -18900,7 +18885,7 @@ dwg_ent_table_set_data_horiz_ins_linewt (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -18922,7 +18907,7 @@ dwg_ent_table_get_data_horiz_ins_linewt (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -18946,7 +18931,7 @@ dwg_ent_table_set_data_horiz_bottom_linewt (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -18967,7 +18952,7 @@ dwg_ent_table_get_data_horiz_bottom_linewt ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -18991,7 +18976,7 @@ dwg_ent_table_set_data_vert_ins_linewt (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -19012,7 +18997,7 @@ dwg_ent_table_get_data_vert_ins_linewt (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -19036,7 +19021,7 @@ dwg_ent_table_set_data_vert_right_linewt (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -19057,7 +19042,7 @@ dwg_ent_table_get_data_vert_right_linewt (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -19081,7 +19066,7 @@ dwg_ent_table_set_data_vert_left_linewt (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") } } @@ -19102,7 +19087,7 @@ dwg_ent_table_get_data_vert_left_linewt (const dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -19124,7 +19109,7 @@ dwg_ent_table_has_border_visibility_overrides (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return '\0'; } } @@ -19148,7 +19133,7 @@ dwg_ent_table_set_border_visibility_overrides_flag ( else { *error = 1; - LOG_ERROR ("%s: empty or invalid arg", __FUNCTION__) + LOG_ERROR ("%s: empty or invalid arg", "") } } @@ -19169,7 +19154,7 @@ dwg_ent_table_get_border_visibility_overrides_flag ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0L; } } @@ -19195,7 +19180,7 @@ dwg_ent_table_set_title_horiz_top_visibility (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty or invalid arg", __FUNCTION__) + LOG_ERROR ("%s: empty or invalid arg", "") } } @@ -19216,7 +19201,7 @@ dwg_ent_table_get_title_horiz_top_visibility ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -19242,7 +19227,7 @@ dwg_ent_table_set_title_horiz_ins_visibility (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty or invalid arg", __FUNCTION__) + LOG_ERROR ("%s: empty or invalid arg", "") } } @@ -19263,7 +19248,7 @@ dwg_ent_table_get_title_horiz_ins_visibility ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -19289,7 +19274,7 @@ dwg_ent_table_set_title_horiz_bottom_visibility (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty or invalid arg", __FUNCTION__) + LOG_ERROR ("%s: empty or invalid arg", "") } } @@ -19310,7 +19295,7 @@ dwg_ent_table_get_title_horiz_bottom_visibility ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -19336,7 +19321,7 @@ dwg_ent_table_set_title_vert_left_visibility (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty or invalid arg", __FUNCTION__) + LOG_ERROR ("%s: empty or invalid arg", "") } } @@ -19357,7 +19342,7 @@ dwg_ent_table_get_title_vert_left_visibility ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -19383,7 +19368,7 @@ dwg_ent_table_set_title_vert_ins_visibility (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty or invalid arg", __FUNCTION__) + LOG_ERROR ("%s: empty or invalid arg", "") } } @@ -19404,7 +19389,7 @@ dwg_ent_table_get_title_vert_ins_visibility ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -19430,7 +19415,7 @@ dwg_ent_table_set_title_vert_right_visibility (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty or invalid arg", __FUNCTION__) + LOG_ERROR ("%s: empty or invalid arg", "") } } @@ -19451,7 +19436,7 @@ dwg_ent_table_get_title_vert_right_visibility ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -19477,7 +19462,7 @@ dwg_ent_table_set_header_horiz_top_visibility (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty or invalid arg", __FUNCTION__) + LOG_ERROR ("%s: empty or invalid arg", "") } } @@ -19498,7 +19483,7 @@ dwg_ent_table_get_header_horiz_top_visibility ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -19524,7 +19509,7 @@ dwg_ent_table_set_header_horiz_ins_visibility (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty or invalid arg", __FUNCTION__) + LOG_ERROR ("%s: empty or invalid arg", "") } } @@ -19545,7 +19530,7 @@ dwg_ent_table_get_header_horiz_ins_visibility ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -19571,7 +19556,7 @@ dwg_ent_table_set_header_horiz_bottom_visibility ( else { *error = 1; - LOG_ERROR ("%s: empty or invalid arg", __FUNCTION__) + LOG_ERROR ("%s: empty or invalid arg", "") } } @@ -19592,7 +19577,7 @@ dwg_ent_table_get_header_horiz_bottom_visibility ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -19618,7 +19603,7 @@ dwg_ent_table_set_header_vert_left_visibility (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty or invalid arg", __FUNCTION__) + LOG_ERROR ("%s: empty or invalid arg", "") } } @@ -19639,7 +19624,7 @@ dwg_ent_table_get_header_vert_left_visibility ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -19665,7 +19650,7 @@ dwg_ent_table_set_header_vert_ins_visibility (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty or invalid arg", __FUNCTION__) + LOG_ERROR ("%s: empty or invalid arg", "") } } @@ -19686,7 +19671,7 @@ dwg_ent_table_get_header_vert_ins_visibility ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -19712,7 +19697,7 @@ dwg_ent_table_set_header_vert_right_visibility (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty or invalid arg", __FUNCTION__) + LOG_ERROR ("%s: empty or invalid arg", "") } } @@ -19733,7 +19718,7 @@ dwg_ent_table_get_header_vert_right_visibility ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -19759,7 +19744,7 @@ dwg_ent_table_set_data_horiz_top_visibility (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty or invalid arg", __FUNCTION__) + LOG_ERROR ("%s: empty or invalid arg", "") } } @@ -19780,7 +19765,7 @@ dwg_ent_table_get_data_horiz_top_visibility ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -19806,7 +19791,7 @@ dwg_ent_table_set_data_horiz_ins_visibility (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty or invalid arg", __FUNCTION__) + LOG_ERROR ("%s: empty or invalid arg", "") } } @@ -19827,7 +19812,7 @@ dwg_ent_table_get_data_horiz_ins_visibility ( else { *error = 1; - LOG_ERROR ("%s: empty or invalid arg", __FUNCTION__) + LOG_ERROR ("%s: empty or invalid arg", "") return 0; } } @@ -19853,7 +19838,7 @@ dwg_ent_table_set_data_horiz_bottom_visibility (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty or invalid arg", __FUNCTION__) + LOG_ERROR ("%s: empty or invalid arg", "") } } @@ -19874,7 +19859,7 @@ dwg_ent_table_get_data_horiz_bottom_visibility ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -19900,7 +19885,7 @@ dwg_ent_table_set_data_vert_left_visibility (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty or invalid arg", __FUNCTION__) + LOG_ERROR ("%s: empty or invalid arg", "") } } @@ -19921,7 +19906,7 @@ dwg_ent_table_get_data_vert_left_visibility ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -19947,7 +19932,7 @@ dwg_ent_table_set_data_vert_ins_visibility (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty or invalid arg", __FUNCTION__) + LOG_ERROR ("%s: empty or invalid arg", "") } } @@ -19968,7 +19953,7 @@ dwg_ent_table_get_data_vert_ins_visibility ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -19995,7 +19980,7 @@ dwg_ent_table_set_data_vert_right_visibility (dwg_ent_table *restrict table, else { *error = 1; - LOG_ERROR ("%s: empty or invalid arg", __FUNCTION__) + LOG_ERROR ("%s: empty or invalid arg", "") } } @@ -20017,7 +20002,7 @@ dwg_ent_table_get_data_vert_right_visibility ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "") return 0; } } @@ -20077,7 +20062,8 @@ dwg_object_polyline_2d_get_numpoints (const dwg_object *restrict obj, } else { - LOG_ERROR ("%s: empty or wrong arg", __FUNCTION__) + LOG_ERROR ("%s: empty or wrong arg", + "dwg_object_polyline_2d_get_numpoints") *error = 1; return 0L; } @@ -20105,7 +20091,7 @@ dwg_object_polyline_2d_get_points (const dwg_object *restrict obj, ptx = (dwg_point_2d *)calloc (num_points, sizeof (dwg_point_2d)); if (!ptx) { - LOG_ERROR ("%s: Out of memory", __FUNCTION__); + LOG_ERROR ("%s: Out of memory", "dwg_object_polyline_2d_get_points"); *error = 1; return NULL; } @@ -20185,7 +20171,7 @@ dwg_object_polyline_2d_get_points (const dwg_object *restrict obj, } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "dwg_object_polyline_2d_get_points") *error = 1; return NULL; } @@ -20249,7 +20235,8 @@ dwg_object_polyline_3d_get_numpoints (const dwg_object *restrict obj, } else { - LOG_ERROR ("%s: empty or wrong arg", __FUNCTION__) + LOG_ERROR ("%s: empty or wrong arg", + "dwg_object_polyline_3d_get_numpoints") *error = 1; return 0L; } @@ -20278,7 +20265,7 @@ dwg_object_polyline_3d_get_points (const dwg_object *restrict obj, ptx = (dwg_point_3d *)calloc (num_points, sizeof (dwg_point_3d)); if (!ptx) { - LOG_ERROR ("%s: Out of memory", __FUNCTION__); + LOG_ERROR ("%s: Out of memory", "dwg_object_polyline_3d_get_points"); *error = 1; return NULL; } @@ -20362,7 +20349,7 @@ dwg_object_polyline_3d_get_points (const dwg_object *restrict obj, } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "dwg_object_polyline_3d_get_points") *error = 1; return NULL; } @@ -20389,7 +20376,7 @@ dwg_ent_lwpline_get_bulges (const dwg_ent_lwpline *restrict lwpline, else { *error = 1; - LOG_ERROR ("%s: Out of memory", __FUNCTION__) + LOG_ERROR ("%s: Out of memory", "dwg_ent_lwpline_get_bulges") return NULL; } } @@ -20408,7 +20395,7 @@ dwg_ent_lwpline_get_numpoints (const dwg_ent_lwpline *restrict lwpline, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "dwg_ent_lwpline_get_numpoints") return 0L; } } @@ -20435,7 +20422,7 @@ dwg_ent_lwpline_get_points (const dwg_ent_lwpline *restrict lwpline, else { *error = 1; - LOG_ERROR ("%s: Out of memory", __FUNCTION__) + LOG_ERROR ("%s: Out of memory", "dwg_ent_lwpline_get_points") return NULL; } } @@ -20461,11 +20448,11 @@ dwg_ent_lwpline_set_points (dwg_ent_lwpline *restrict lwpline, } else { - LOG_ERROR ("%s: Out of memory", __FUNCTION__) + LOG_ERROR ("%s: Out of memory", "dwg_ent_lwpline_set_points") return 1; } isnan: - LOG_ERROR ("%s: Invalid vertex nan", __FUNCTION__); + LOG_ERROR ("%s: Invalid vertex nan", "dwg_ent_lwpline_set_points"); return 2; } @@ -20491,7 +20478,7 @@ dwg_ent_lwpline_get_widths (const dwg_ent_lwpline *restrict lwpline, else { *error = 1; - LOG_ERROR ("%s: Out of memory", __FUNCTION__) + LOG_ERROR ("%s: Out of memory", "dwg_ent_lwpline_get_widths") return NULL; } } @@ -20528,7 +20515,8 @@ dwg_block_header_get_block_control (const dwg_obj_block_header *block_header, else { *error = 1; - LOG_ERROR ("%s: empty or invalid arg", __FUNCTION__) + LOG_ERROR ("%s: empty or invalid arg", + "dwg_block_header_get_block_control") return NULL; } } @@ -20546,7 +20534,8 @@ dwg_obj_block_control_get_block_headers ( if (!ctrl || (ctrl->num_entries && !ctrl->entries)) { *error = 1; - LOG_ERROR ("%s: null block_headers", __FUNCTION__); + LOG_ERROR ("%s: null block_headers", + "dwg_obj_block_control_get_block_headers"); return NULL; } @@ -20565,7 +20554,8 @@ dwg_obj_block_control_get_block_headers ( else { *error = 1; - LOG_ERROR ("%s: Out of memory", __FUNCTION__) + LOG_ERROR ("%s: Out of memory", + "dwg_obj_block_control_get_block_headers") return NULL; } } @@ -20586,7 +20576,7 @@ dwg_obj_block_control_get_num_entries ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "dwg_obj_block_control_get_num_entries") return 0L; } } @@ -20607,7 +20597,7 @@ dwg_obj_block_control_get_model_space ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "dwg_obj_block_control_get_model_space") return NULL; } } @@ -20628,7 +20618,7 @@ dwg_obj_block_control_get_paper_space ( else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "dwg_obj_block_control_get_paper_space") return NULL; } } @@ -20658,7 +20648,7 @@ dwg_obj_block_header_get_name (const dwg_obj_block_header *restrict hdr, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "dwg_obj_block_header_get_name") return NULL; } } @@ -20712,7 +20702,7 @@ dwg_get_block_header (dwg_data *restrict dwg, int *restrict error) else { *error = 3; - LOG_ERROR ("%s: BLOCK_HEADER not found", __FUNCTION__) + LOG_ERROR ("%s: BLOCK_HEADER not found", "dwg_get_block_header") return NULL; } } @@ -20737,7 +20727,7 @@ dwg_obj_layer_get_name (const dwg_obj_layer *restrict layer, if (*error || obj->fixedtype != DWG_TYPE_LAYER) { *error = 1; - LOG_ERROR ("%s: arg not a LAYER", __FUNCTION__) + LOG_ERROR ("%s: arg not a LAYER", "dwg_obj_layer_get_name") return NULL; } *error = 0; @@ -20749,7 +20739,7 @@ dwg_obj_layer_get_name (const dwg_obj_layer *restrict layer, else { *error = 1; - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "dwg_obj_layer_get_name") return NULL; } } @@ -20772,7 +20762,7 @@ dwg_obj_layer_set_name (dwg_obj_layer *restrict layer, const Dwg_Object *obj = dwg_obj_generic_to_object (layer, error); if (*error || obj->fixedtype != DWG_TYPE_LAYER) { - LOG_ERROR ("%s: arg not a LAYER", __FUNCTION__) + LOG_ERROR ("%s: arg not a LAYER", "dwg_obj_layer_set_name") *error = 1; return; } @@ -20785,7 +20775,7 @@ dwg_obj_layer_set_name (dwg_obj_layer *restrict layer, } else { - LOG_ERROR ("%s: empty arg", __FUNCTION__) + LOG_ERROR ("%s: empty arg", "dwg_obj_layer_set_name") *error = 1; return; } @@ -20817,7 +20807,8 @@ dwg_object_tablectrl_get_num_entries (const dwg_object *restrict obj, { *error = 1; LOG_ERROR ("%s: empty or invalid table control arg %p, type: 0x%x", - __FUNCTION__, obj, obj ? obj->type : 0) + "dwg_object_tablectrl_get_num_entries", obj, + obj ? obj->type : 0) return 0; } } @@ -20842,7 +20833,7 @@ dwg_object_tablectrl_get_entries (const dwg_object *restrict obj, { *error = 1; LOG_ERROR ("%s: empty or invalid table control arg %p, type: 0x%x", - __FUNCTION__, obj, obj ? obj->type : 0) + "dwg_object_tablectrl_get_entries", obj, obj ? obj->type : 0) return NULL; } } @@ -20870,7 +20861,8 @@ dwg_object_tablectrl_get_entry (const dwg_object *restrict obj, else { *error = 2; - LOG_ERROR ("%s: idx %d out of bounds %d", __FUNCTION__, idx, count); + LOG_ERROR ("%s: idx %d out of bounds %d", + "dwg_object_tablectrl_get_entry", idx, count); return NULL; } } @@ -20878,7 +20870,7 @@ dwg_object_tablectrl_get_entry (const dwg_object *restrict obj, { *error = 1; LOG_ERROR ("%s: empty or invalid table control arg %p, type: 0x%x", - __FUNCTION__, obj, obj ? obj->type : 0) + "dwg_object_tablectrl_get_entry", obj, obj ? obj->type : 0) return NULL; } } @@ -20901,7 +20893,7 @@ dwg_object_tablectrl_get_ownerhandle (const dwg_object *restrict obj, { *error = 1; LOG_ERROR ("%s: empty or invalid table control arg %p, type: 0x%x", - __FUNCTION__, obj, obj ? obj->type : 0) + "", obj, obj ? obj->type : 0) return NULL; } } @@ -20925,7 +20917,7 @@ dwg_object_tablectrl_get_xdicobjhandle (const dwg_object *restrict obj, { *error = 1; LOG_ERROR ("%s: empty or invalid table control arg %p, type: 0x%x", - __FUNCTION__, obj, obj ? obj->type : 0) + "", obj, obj ? obj->type : 0) return NULL; } } @@ -20949,7 +20941,7 @@ dwg_object_tablectrl_get_objid (const dwg_object *restrict obj, { *error = 1; LOG_ERROR ("%s: empty or invalid table control arg %p, type: 0x%x", - __FUNCTION__, obj, obj ? obj->type : 0) + "", obj, obj ? obj->type : 0) return 0; } } @@ -21007,7 +20999,7 @@ dwg_obj_table_get_name (const dwg_object *restrict obj, int *restrict error) else { *error = 1; - LOG_ERROR ("%s: empty or invalid table arg %p, type: 0x%x", __FUNCTION__, + LOG_ERROR ("%s: empty or invalid table arg %p, type: 0x%x", "", obj, obj ? obj->type : 0) return NULL; } @@ -21114,7 +21106,7 @@ dwg_ent_get_eed (const dwg_obj_ent *restrict ent, const BITCODE_BL idx, if (!ent) { *error = 1; - LOG_ERROR ("%s: empty or invalid ent", __FUNCTION__) + LOG_ERROR ("%s: empty or invalid ent", "") return NULL; } else if (idx >= ent->num_eed) @@ -21144,7 +21136,7 @@ dwg_ent_get_eed_data (const dwg_obj_ent *restrict ent, const BITCODE_BL idx, if (!ent) { *error = 1; - LOG_ERROR ("%s: empty or invalid ent", __FUNCTION__) + LOG_ERROR ("%s: empty or invalid ent", "") return NULL; } else if (idx >= ent->num_eed) @@ -21402,7 +21394,7 @@ dwg_ent_to_object (const dwg_obj_ent *restrict obj, int *restrict error) if (!obj) { *error = 1; - LOG_ERROR ("%s: Empty or invalid obj", __FUNCTION__); + LOG_ERROR ("%s: Empty or invalid obj", ""); return NULL; } dwg = obj->dwg; @@ -21464,7 +21456,7 @@ dwg_ent_generic_parent (const void *restrict ent, int *restrict error) else { *error = 1; - LOG_ERROR ("%s: Empty or invalid obj", __FUNCTION__) + LOG_ERROR ("%s: Empty or invalid obj", "") return NULL; } } @@ -21488,7 +21480,7 @@ dwg_object_to_entity (dwg_object *restrict obj, int *restrict error) else { *error = 1; - LOG_ERROR ("%s: Empty or invalid obj", __FUNCTION__) + LOG_ERROR ("%s: Empty or invalid obj", "") return NULL; } } @@ -21596,7 +21588,7 @@ dwg_object_get_index (const dwg_object *restrict obj, int *restrict error) else { *error = 1; - LOG_ERROR ("%s: empty obj", __FUNCTION__) + LOG_ERROR ("%s: empty obj", "") return 0; } } @@ -21620,7 +21612,7 @@ dwg_object_get_handle (dwg_object *restrict obj, int *restrict error) else { *error = 1; - LOG_ERROR ("%s: empty obj", __FUNCTION__) + LOG_ERROR ("%s: empty obj", "") return NULL; } } @@ -21642,7 +21634,7 @@ dwg_object_get_type (const dwg_object *obj) } else { - LOG_ERROR ("%s: empty ref", __FUNCTION__) + LOG_ERROR ("%s: empty ref", "") return -1; } } @@ -21661,7 +21653,7 @@ dwg_object_get_fixedtype (const dwg_object *obj) } else { - LOG_ERROR ("%s: empty ref", __FUNCTION__) + LOG_ERROR ("%s: empty ref", "") return -1; } } @@ -21683,7 +21675,7 @@ dwg_object_get_dxfname (const dwg_object *obj) } else { - LOG_ERROR ("%s: empty ref", __FUNCTION__) + LOG_ERROR ("%s: empty ref", "") return NULL; } } @@ -21731,7 +21723,7 @@ dwg_obj_get_eed (const dwg_obj_obj *restrict obj, const BITCODE_BL idx, if (!obj) { *error = 1; - LOG_ERROR ("%s: empty or invalid obj", __FUNCTION__) + LOG_ERROR ("%s: empty or invalid obj", "") return NULL; } else if (idx >= obj->num_eed) @@ -21761,7 +21753,7 @@ dwg_obj_get_eed_data (const dwg_obj_obj *restrict obj, const BITCODE_BL idx, if (!obj) { *error = 1; - LOG_ERROR ("%s: empty or invalid obj", __FUNCTION__) + LOG_ERROR ("%s: empty or invalid obj", "dwg_obj_get_eed_data") return NULL; } else if (idx >= obj->num_eed) @@ -21836,7 +21828,7 @@ dwg_object_to_object (dwg_object *restrict obj, int *restrict error) else { *error = 1; - LOG_ERROR ("%s: Empty or invalid obj", __FUNCTION__) + LOG_ERROR ("%s: Empty or invalid obj", "dwg_object_to_object") return NULL; } } @@ -21856,7 +21848,7 @@ dwg_obj_obj_to_object (const dwg_obj_obj *restrict obj, int *restrict error) if (!obj) { *error = 1; - // LOG_ERROR("%s: Empty or invalid obj", __FUNCTION__) + // LOG_ERROR("%s: Empty or invalid obj", "dwg_obj_obj_to_object") return NULL; } dwg = obj->dwg; @@ -21903,7 +21895,7 @@ dwg_obj_generic_to_object (const void *restrict _vobj, int *restrict error) || dwg->header.version > R_AFTER) { *error = 1; - LOG_ERROR ("%s: Invalid obj", __FUNCTION__) + LOG_ERROR ("%s: Invalid obj", "dwg_obj_generic_to_object") return NULL; } *error = 0; @@ -21915,7 +21907,7 @@ dwg_obj_generic_to_object (const void *restrict _vobj, int *restrict error) else { *error = 1; - // LOG_ERROR("%s: Empty or invalid obj", __FUNCTION__) + // LOG_ERROR("%s: Empty or invalid obj", "dwg_obj_generic_to_object") return NULL; } } @@ -21958,7 +21950,7 @@ dwg_obj_generic_parent (const void *restrict _vobj, int *restrict error) else { *error = 1; - LOG_ERROR ("%s: Empty or invalid obj", __FUNCTION__) + LOG_ERROR ("%s: Empty or invalid obj", "dwg_obj_generic_parent") return NULL; } } @@ -21987,7 +21979,7 @@ dwg_ref_get_object (const dwg_object_ref *restrict ref, int *restrict error) if (!ref->obj) { */ *error = 2; - // LOG_ERROR ("%s: empty ref", __FUNCTION__) + // LOG_ERROR ("%s: empty ref", "dwg_ref_get_object") // } } *error = 0; @@ -21996,7 +21988,7 @@ dwg_ref_get_object (const dwg_object_ref *restrict ref, int *restrict error) else { *error = 1; - LOG_ERROR ("%s: empty ref", __FUNCTION__) + LOG_ERROR ("%s: empty ref", "dwg_ref_get_object") return NULL; } } @@ -22018,7 +22010,7 @@ dwg_ref_get_absref (const dwg_object_ref *restrict ref, int *restrict error) } else { - LOG_ERROR ("%s: empty ref", __FUNCTION__) + LOG_ERROR ("%s: empty ref", "dwg_ref_get_absref") *error = 1; return (BITCODE_BL)-1; } @@ -27265,7 +27257,7 @@ dwg_add_PYRAMID (Dwg_Object_BLOCK_HEADER *restrict blkhdr, // */ const double major_radius, const double // minor_radius, const double height) //{ -// LOG_ERROR ("%s not yet implemented", __FUNCTION__) +// LOG_ERROR ("%s not yet implemented", "dwg_add_ELLIPTICAL_CONE") // return NULL; // } // @@ -27276,7 +27268,7 @@ dwg_add_PYRAMID (Dwg_Object_BLOCK_HEADER *restrict blkhdr, // NULL */ const double major_radius, const double // minor_radius, const double height) //{ -// LOG_ERROR ("%s not yet implemented", __FUNCTION__) +// LOG_ERROR ("%s not yet implemented", "dwg_add_ELLIPTICAL_CYLINDER") // return NULL; // } @@ -27285,7 +27277,7 @@ dwg_add_EXTRUDED_SOLID (Dwg_Object_BLOCK_HEADER *restrict blkhdr, const Dwg_Object *restrict profile, const double height, const double taper_angle) { - LOG_ERROR ("%s not yet implemented", __FUNCTION__) + LOG_ERROR ("%s not yet implemented", "dwg_add_EXTRUDED_SOLID") return NULL; } EXPORT Dwg_Entity_3DSOLID * @@ -27293,7 +27285,7 @@ dwg_add_EXTRUDED_PATH (Dwg_Object_BLOCK_HEADER *restrict blkhdr, const Dwg_Object *restrict profile, const double height, const double taper_angle) { - LOG_ERROR ("%s not yet implemented", __FUNCTION__) + LOG_ERROR ("%s not yet implemented", "dwg_add_EXTRUDED_PATH") return NULL; } @@ -27304,7 +27296,7 @@ dwg_add_REVOLVED_SOLID (Dwg_Object_BLOCK_HEADER *restrict blkhdr, const dwg_point_3d *restrict axis_dir, const double angle) { - LOG_ERROR ("%s not yet implemented", __FUNCTION__) + LOG_ERROR ("%s not yet implemented", "dwg_add_REVOLVED_SOLID") return NULL; } diff --git a/src/dynapi.c b/src/dynapi.c index dda0ed2409..8c9dc716d6 100644 --- a/src/dynapi.c +++ b/src/dynapi.c @@ -14047,7 +14047,7 @@ dwg_dynapi_entity_value (void *restrict _obj, const char *restrict name, if (obj && strNE (obj->name, name)) // objid may be 0 { const int loglevel = obj->parent->opts & DWG_OPTS_LOGLEVEL; - LOG_ERROR ("%s: Invalid entity type %s, wanted %s", __FUNCTION__, + LOG_ERROR ("%s: Invalid entity type %s, wanted %s", "dwg_dynapi_entity_value", obj->name, name); return false; } @@ -14057,7 +14057,8 @@ dwg_dynapi_entity_value (void *restrict _obj, const char *restrict name, { int loglevel = (obj && obj->parent) ? obj->parent->opts & DWG_OPTS_LOGLEVEL : DWG_LOGLEVEL_ERROR; - LOG_ERROR ("%s: Invalid %s field %s", __FUNCTION__, name, fieldname); + LOG_ERROR ("%s: Invalid %s field %s", "dwg_dynapi_entity_value", name, + fieldname); return false; } if (fp) @@ -14088,7 +14089,7 @@ dwg_dynapi_entity_utf8text (void *restrict _obj, const char *restrict name, if (obj && strNE (obj->name, name)) // objid may be 0 { const int loglevel = obj->parent->opts & DWG_OPTS_LOGLEVEL; - LOG_ERROR ("%s: Invalid entity type %s, wanted %s", __FUNCTION__, + LOG_ERROR ("%s: Invalid entity type %s, wanted %s", "dwg_dynapi_entity_utf8text", obj->name, name); return false; } @@ -14100,7 +14101,8 @@ dwg_dynapi_entity_utf8text (void *restrict _obj, const char *restrict name, if (!f || !f->is_string) { int loglevel = dwg ? dwg->opts & DWG_OPTS_LOGLEVEL : DWG_LOGLEVEL_ERROR; - LOG_ERROR ("%s: Invalid %s text field %s", __FUNCTION__, name, fieldname); + LOG_ERROR ("%s: Invalid %s text field %s", "dwg_dynapi_entity_utf8text", + name, fieldname); return false; } if (fp) @@ -14149,7 +14151,8 @@ dwg_dynapi_header_value (const Dwg_Data *restrict dwg, else { const int loglevel = dwg->opts & DWG_OPTS_LOGLEVEL; - LOG_ERROR ("%s: Invalid header field %s", __FUNCTION__, fieldname); + LOG_ERROR ("%s: Invalid header field %s", "dwg_dynapi_header_value", + fieldname); return false; } } @@ -14199,15 +14202,16 @@ dwg_dynapi_header_utf8text (const Dwg_Data *restrict dwg, else { const int loglevel = dwg->opts & DWG_OPTS_LOGLEVEL; - LOG_ERROR ("%s: Invalid header text field %s", __FUNCTION__, fieldname); + LOG_ERROR ("%s: Invalid header text field %s", "dwg_dynapi_header_utf8text", + fieldname); return false; } } } EXPORT bool -dwg_dynapi_common_value(void *restrict _obj, const char *restrict fieldname, - void *restrict out, Dwg_DYNAPI_field *restrict fp) +dwg_dynapi_common_value (void *restrict _obj, const char *restrict fieldname, + void *restrict out, Dwg_DYNAPI_field *restrict fp) { #ifndef HAVE_NONNULL if (!_obj || !fieldname || !out) @@ -14220,7 +14224,7 @@ dwg_dynapi_common_value(void *restrict _obj, const char *restrict fieldname, if (!obj || error) { const int loglevel = DWG_LOGLEVEL_ERROR; - LOG_ERROR ("%s: dwg_obj_generic_to_object failed", __FUNCTION__); + LOG_ERROR ("%s: dwg_obj_generic_to_object failed", "dwg_dynapi_common_value"); return false; } @@ -14237,7 +14241,7 @@ dwg_dynapi_common_value(void *restrict _obj, const char *restrict fieldname, else { const int loglevel = obj->parent->opts & DWG_OPTS_LOGLEVEL; // DWG_LOGLEVEL_ERROR; - LOG_ERROR ("%s: Unhandled %s.supertype ", __FUNCTION__, obj->name); + LOG_ERROR ("%s: Unhandled %s.supertype ", "dwg_dynapi_common_value", obj->name); return false; } @@ -14255,15 +14259,17 @@ dwg_dynapi_common_value(void *restrict _obj, const char *restrict fieldname, else { const int loglevel = obj->parent->opts & DWG_OPTS_LOGLEVEL; - LOG_ERROR ("%s: Invalid common field %s", __FUNCTION__, fieldname); + LOG_ERROR ("%s: Invalid common field %s", "dwg_dynapi_common_value", + fieldname); return false; } } } EXPORT bool -dwg_dynapi_common_utf8text(void *restrict _obj, const char *restrict fieldname, - char **restrict out, int *isnew, Dwg_DYNAPI_field *restrict fp) +dwg_dynapi_common_utf8text (void *restrict _obj, const char *restrict fieldname, + char **restrict out, int *isnew, + Dwg_DYNAPI_field *restrict fp) { if (isnew) *isnew = 0; @@ -14280,7 +14286,7 @@ dwg_dynapi_common_utf8text(void *restrict _obj, const char *restrict fieldname, if (!obj || error) { const int loglevel = DWG_LOGLEVEL_ERROR; - LOG_ERROR ("%s: dwg_obj_generic_to_object failed", __FUNCTION__); + LOG_ERROR ("%s: dwg_obj_generic_to_object failed", "dwg_dynapi_common_utf8text"); return false; } if (obj->supertype == DWG_SUPERTYPE_ENTITY) @@ -14304,7 +14310,8 @@ dwg_dynapi_common_utf8text(void *restrict _obj, const char *restrict fieldname, else { const int loglevel = DWG_LOGLEVEL_ERROR; - LOG_ERROR ("%s: Unhandled %s.supertype ", __FUNCTION__, obj->name); + LOG_ERROR ("%s: Unhandled %s.supertype ", "dwg_dynapi_common_utf8text", + obj->name); return false; } @@ -14336,7 +14343,8 @@ dwg_dynapi_common_utf8text(void *restrict _obj, const char *restrict fieldname, else { const int loglevel = dwg ? dwg->opts & DWG_OPTS_LOGLEVEL : DWG_LOGLEVEL_ERROR; - LOG_ERROR ("%s: Invalid common text field %s", __FUNCTION__, fieldname); + LOG_ERROR ("%s: Invalid common text field %s", "dwg_dynapi_common_utf8text", + fieldname); return false; } } @@ -14423,14 +14431,15 @@ dwg_dynapi_entity_set_value (void *restrict _obj, const char *restrict name, if (error) { const int loglevel = DWG_LOGLEVEL_ERROR; - LOG_ERROR ("%s: dwg_obj_generic_to_object failed", __FUNCTION__); + LOG_ERROR ("%s: dwg_obj_generic_to_object failed", + "dwg_dynapi_entity_set_value"); return false; } if (obj && strNE (obj->name, name)) { const int loglevel = obj->parent->opts & DWG_OPTS_LOGLEVEL; - LOG_ERROR ("%s: Invalid entity type %s, wanted %s", __FUNCTION__, - obj->name, name); + LOG_ERROR ("%s: Invalid entity type %s, wanted %s", + "dwg_dynapi_entity_set_value", obj->name, name); return false; } { @@ -14452,7 +14461,8 @@ dwg_dynapi_entity_set_value (void *restrict _obj, const char *restrict name, if (!f) { const int loglevel = dwg ? dwg->opts & DWG_OPTS_LOGLEVEL : 0; - LOG_ERROR ("%s: Invalid %s field %s", __FUNCTION__, name, fieldname); + LOG_ERROR ("%s: Invalid %s field %s", "dwg_dynapi_entity_set_value", + name, fieldname); return false; } if (f->is_string && dwg->header.from_version < R_13b1 && @@ -14555,7 +14565,8 @@ dwg_dynapi_header_set_value (Dwg_Data *restrict dwg, else { const int loglevel = dwg->opts & DWG_OPTS_LOGLEVEL; - LOG_ERROR ("%s: Invalid header field %s", __FUNCTION__, fieldname); + LOG_ERROR ("%s: Invalid header field %s", "dwg_dynapi_entity_set_value", + fieldname); return false; } } @@ -14579,7 +14590,8 @@ dwg_dynapi_common_set_value (void *restrict _obj, if (!obj || error) { const int loglevel = DWG_LOGLEVEL_ERROR; - LOG_ERROR ("%s: dwg_obj_generic_to_object failed", __FUNCTION__); + LOG_ERROR ("%s: dwg_obj_generic_to_object failed", + "dwg_dynapi_common_set_value"); return false; } dwg = obj->parent; @@ -14602,14 +14614,16 @@ dwg_dynapi_common_set_value (void *restrict _obj, else { const int loglevel = DWG_LOGLEVEL_ERROR; - LOG_ERROR ("%s: Unhandled %s.supertype ", __FUNCTION__, obj->name); + LOG_ERROR ("%s: Unhandled %s.supertype ", "dwg_dynapi_common_set_value", + obj->name); return false; } if (!f) { const int loglevel = obj->parent->opts & DWG_OPTS_LOGLEVEL; - LOG_ERROR ("%s: Invalid %s common field %s", __FUNCTION__, obj->name, fieldname); + LOG_ERROR ("%s: Invalid %s common field %s", "dwg_dynapi_common_set_value", + obj->name, fieldname); return false; } diff --git a/src/gen-dynapi.pl b/src/gen-dynapi.pl index d4aed3f9fb..ce90314b0d 100755 --- a/src/gen-dynapi.pl +++ b/src/gen-dynapi.pl @@ -2802,7 +2802,7 @@ sub out_classes { if (obj && strNE (obj->name, name)) // objid may be 0 { const int loglevel = obj->parent->opts & DWG_OPTS_LOGLEVEL; - LOG_ERROR ("%s: Invalid entity type %s, wanted %s", __FUNCTION__, + LOG_ERROR ("%s: Invalid entity type %s, wanted %s", "dwg_dynapi_entity_value", obj->name, name); return false; } @@ -2812,7 +2812,8 @@ sub out_classes { { int loglevel = (obj && obj->parent) ? obj->parent->opts & DWG_OPTS_LOGLEVEL : DWG_LOGLEVEL_ERROR; - LOG_ERROR ("%s: Invalid %s field %s", __FUNCTION__, name, fieldname); + LOG_ERROR ("%s: Invalid %s field %s", "dwg_dynapi_entity_value", name, + fieldname); return false; } if (fp) @@ -2843,7 +2844,7 @@ sub out_classes { if (obj && strNE (obj->name, name)) // objid may be 0 { const int loglevel = obj->parent->opts & DWG_OPTS_LOGLEVEL; - LOG_ERROR ("%s: Invalid entity type %s, wanted %s", __FUNCTION__, + LOG_ERROR ("%s: Invalid entity type %s, wanted %s", "dwg_dynapi_entity_utf8text", obj->name, name); return false; } @@ -2855,7 +2856,8 @@ sub out_classes { if (!f || !f->is_string) { int loglevel = dwg ? dwg->opts & DWG_OPTS_LOGLEVEL : DWG_LOGLEVEL_ERROR; - LOG_ERROR ("%s: Invalid %s text field %s", __FUNCTION__, name, fieldname); + LOG_ERROR ("%s: Invalid %s text field %s", "dwg_dynapi_entity_utf8text", + name, fieldname); return false; } if (fp) @@ -2904,7 +2906,8 @@ sub out_classes { else { const int loglevel = dwg->opts & DWG_OPTS_LOGLEVEL; - LOG_ERROR ("%s: Invalid header field %s", __FUNCTION__, fieldname); + LOG_ERROR ("%s: Invalid header field %s", "dwg_dynapi_header_value", + fieldname); return false; } } @@ -2954,15 +2957,16 @@ sub out_classes { else { const int loglevel = dwg->opts & DWG_OPTS_LOGLEVEL; - LOG_ERROR ("%s: Invalid header text field %s", __FUNCTION__, fieldname); + LOG_ERROR ("%s: Invalid header text field %s", "dwg_dynapi_header_utf8text", + fieldname); return false; } } } EXPORT bool -dwg_dynapi_common_value(void *restrict _obj, const char *restrict fieldname, - void *restrict out, Dwg_DYNAPI_field *restrict fp) +dwg_dynapi_common_value (void *restrict _obj, const char *restrict fieldname, + void *restrict out, Dwg_DYNAPI_field *restrict fp) { #ifndef HAVE_NONNULL if (!_obj || !fieldname || !out) @@ -2975,7 +2979,7 @@ sub out_classes { if (!obj || error) { const int loglevel = DWG_LOGLEVEL_ERROR; - LOG_ERROR ("%s: dwg_obj_generic_to_object failed", __FUNCTION__); + LOG_ERROR ("%s: dwg_obj_generic_to_object failed", "dwg_dynapi_common_value"); return false; } @@ -2992,7 +2996,7 @@ sub out_classes { else { const int loglevel = obj->parent->opts & DWG_OPTS_LOGLEVEL; // DWG_LOGLEVEL_ERROR; - LOG_ERROR ("%s: Unhandled %s.supertype ", __FUNCTION__, obj->name); + LOG_ERROR ("%s: Unhandled %s.supertype ", "dwg_dynapi_common_value", obj->name); return false; } @@ -3010,15 +3014,17 @@ sub out_classes { else { const int loglevel = obj->parent->opts & DWG_OPTS_LOGLEVEL; - LOG_ERROR ("%s: Invalid common field %s", __FUNCTION__, fieldname); + LOG_ERROR ("%s: Invalid common field %s", "dwg_dynapi_common_value", + fieldname); return false; } } } EXPORT bool -dwg_dynapi_common_utf8text(void *restrict _obj, const char *restrict fieldname, - char **restrict out, int *isnew, Dwg_DYNAPI_field *restrict fp) +dwg_dynapi_common_utf8text (void *restrict _obj, const char *restrict fieldname, + char **restrict out, int *isnew, + Dwg_DYNAPI_field *restrict fp) { if (isnew) *isnew = 0; @@ -3035,7 +3041,7 @@ sub out_classes { if (!obj || error) { const int loglevel = DWG_LOGLEVEL_ERROR; - LOG_ERROR ("%s: dwg_obj_generic_to_object failed", __FUNCTION__); + LOG_ERROR ("%s: dwg_obj_generic_to_object failed", "dwg_dynapi_common_utf8text"); return false; } if (obj->supertype == DWG_SUPERTYPE_ENTITY) @@ -3059,7 +3065,8 @@ sub out_classes { else { const int loglevel = DWG_LOGLEVEL_ERROR; - LOG_ERROR ("%s: Unhandled %s.supertype ", __FUNCTION__, obj->name); + LOG_ERROR ("%s: Unhandled %s.supertype ", "dwg_dynapi_common_utf8text", + obj->name); return false; } @@ -3091,7 +3098,8 @@ sub out_classes { else { const int loglevel = dwg ? dwg->opts & DWG_OPTS_LOGLEVEL : DWG_LOGLEVEL_ERROR; - LOG_ERROR ("%s: Invalid common text field %s", __FUNCTION__, fieldname); + LOG_ERROR ("%s: Invalid common text field %s", "dwg_dynapi_common_utf8text", + fieldname); return false; } } @@ -3178,14 +3186,15 @@ sub out_classes { if (error) { const int loglevel = DWG_LOGLEVEL_ERROR; - LOG_ERROR ("%s: dwg_obj_generic_to_object failed", __FUNCTION__); + LOG_ERROR ("%s: dwg_obj_generic_to_object failed", + "dwg_dynapi_entity_set_value"); return false; } if (obj && strNE (obj->name, name)) { const int loglevel = obj->parent->opts & DWG_OPTS_LOGLEVEL; - LOG_ERROR ("%s: Invalid entity type %s, wanted %s", __FUNCTION__, - obj->name, name); + LOG_ERROR ("%s: Invalid entity type %s, wanted %s", + "dwg_dynapi_entity_set_value", obj->name, name); return false; } { @@ -3207,7 +3216,8 @@ sub out_classes { if (!f) { const int loglevel = dwg ? dwg->opts & DWG_OPTS_LOGLEVEL : 0; - LOG_ERROR ("%s: Invalid %s field %s", __FUNCTION__, name, fieldname); + LOG_ERROR ("%s: Invalid %s field %s", "dwg_dynapi_entity_set_value", + name, fieldname); return false; } if (f->is_string && dwg->header.from_version < R_13b1 && @@ -3310,7 +3320,8 @@ sub out_classes { else { const int loglevel = dwg->opts & DWG_OPTS_LOGLEVEL; - LOG_ERROR ("%s: Invalid header field %s", __FUNCTION__, fieldname); + LOG_ERROR ("%s: Invalid header field %s", "dwg_dynapi_entity_set_value", + fieldname); return false; } } @@ -3334,7 +3345,8 @@ sub out_classes { if (!obj || error) { const int loglevel = DWG_LOGLEVEL_ERROR; - LOG_ERROR ("%s: dwg_obj_generic_to_object failed", __FUNCTION__); + LOG_ERROR ("%s: dwg_obj_generic_to_object failed", + "dwg_dynapi_common_set_value"); return false; } dwg = obj->parent; @@ -3357,14 +3369,16 @@ sub out_classes { else { const int loglevel = DWG_LOGLEVEL_ERROR; - LOG_ERROR ("%s: Unhandled %s.supertype ", __FUNCTION__, obj->name); + LOG_ERROR ("%s: Unhandled %s.supertype ", "dwg_dynapi_common_set_value", + obj->name); return false; } if (!f) { const int loglevel = obj->parent->opts & DWG_OPTS_LOGLEVEL; - LOG_ERROR ("%s: Invalid %s common field %s", __FUNCTION__, obj->name, fieldname); + LOG_ERROR ("%s: Invalid %s common field %s", "dwg_dynapi_common_set_value", + obj->name, fieldname); return false; } diff --git a/src/in_dxf.c b/src/in_dxf.c index dad065ee3d..36f81d9472 100644 --- a/src/in_dxf.c +++ b/src/in_dxf.c @@ -311,8 +311,8 @@ dxf_read_rc (Bit_Chain *dat) if (dat->chain[dat->byte] == '\n') dat->byte++; if (num > UINT8_MAX) - LOG_ERROR ("%s: RC overflow %ld (at %" PRIuSIZE ")", __FUNCTION__, num, - dat->byte); + LOG_ERROR ("%s: RC overflow %ld (at %" PRIuSIZE ")", + "dxf_read_rc", num, dat->byte); return (BITCODE_RC)num; } } @@ -335,8 +335,8 @@ dxf_read_rs (Bit_Chain *dat) if (dat->chain[dat->byte] == '\n') dat->byte++; if (num > UINT16_MAX) - LOG_ERROR ("%s: RS overflow %ld (at %" PRIuSIZE ")", __FUNCTION__, num, - dat->byte); + LOG_ERROR ("%s: RS overflow %ld (at %" PRIuSIZE ")", + "dxf_read_rs", num, dat->byte); return (BITCODE_RS)num; } } @@ -361,7 +361,7 @@ dxf_read_rl (Bit_Chain *dat) dat->byte++; /* if (num > (long)0xffffffff) - LOG_ERROR ("%s: RL overflow %ld (at %" PRIuSIZE ")", __FUNCTION__, num, + LOG_ERROR ("%s: RL overflow %ld (at %" PRIuSIZE ")", "dxf_read_rl", num, dat->byte); */ return (BITCODE_RL)num; diff --git a/src/in_json.c b/src/in_json.c index 961baf4587..fd82648c49 100644 --- a/src/in_json.c +++ b/src/in_json.c @@ -1369,7 +1369,7 @@ json_CLASSES (Bit_Chain *restrict dat, Dwg_Data *restrict dwg, LOG_ERROR ( "Unexpected %s at %u of %ld tokens, expected %s OBJECT. %s:%d", t_typename[t->type], tokens->index, tokens->num_tokens, section, - __FUNCTION__, __LINE__); + "json_CLASSES", 1372); json_advance_unknown (dat, tokens, t->type, 0); return DWG_ERR_INVALIDTYPE; } @@ -2670,8 +2670,8 @@ _set_struct_field (Bit_Chain *restrict dat, const Dwg_Object *restrict obj, LOG_ERROR ("Unexpected %s at %u of %ld tokens, expected " "%s OBJECT. %s:%d", t_typename[t->type], tokens->index, - tokens->num_tokens, subclass, __FUNCTION__, - __LINE__); + tokens->num_tokens, subclass, "_set_struct_field", + 2674); free (subclass); json_advance_unknown (dat, tokens, t->type, 0); JSON_TOKENS_CHECK_OVERFLOW_ERR @@ -3047,7 +3047,7 @@ json_OBJECTS (Bit_Chain *restrict dat, Dwg_Data *restrict dwg, LOG_ERROR ( "Unexpected %s at %u of %ld tokens, expected %s OBJECT. %s:%d", t_typename[t->type], tokens->index, tokens->num_tokens, section, - __FUNCTION__, __LINE__); + "json_OBJECTS", 3050); json_advance_unknown (dat, tokens, t->type, 0); JSON_TOKENS_CHECK_OVERFLOW (goto typeerr) } @@ -5168,8 +5168,13 @@ dwg_read_json (Bit_Chain *restrict dat, Dwg_Data *restrict dwg) error |= json_HANDLES (dat, dwg, &tokens); else { +#ifdef __LINE__ LOG_ERROR ("Unexpected JSON key %s at %u of %ld tokens. %s:%d", key, - tokens.index, tokens.num_tokens, __FUNCTION__, __LINE__); + tokens.index, tokens.num_tokens, "dwg_read_json", __LINE__); +#else + LOG_ERROR ("Unexpected JSON key %s at %u of %ld tokens. %s:%d", key, + tokens.index, tokens.num_tokens, "dwg_read_json", 5176); +#endif LOG_TRACE ("\n") json_free_globals (&tokens); return error | DWG_ERR_INVALIDTYPE;