added qse_awk_backuperrmsg() and qse_awk_rtx_backuperrmsg().
enhanced the module loading code to emit more comprehensive error message in awk/parse.c removed dynamic exception specification from some methods. added mysql::affected_rows() fixed wrong parameter handling in mysql::autocommit(). changed mysql::esacpe_string() to return the result via the second parameter
This commit is contained in:
@ -1667,6 +1667,11 @@ QSE_EXPORT const qse_char_t* qse_awk_geterrmsg (
|
||||
const qse_awk_t* awk /**< awk */
|
||||
);
|
||||
|
||||
QSE_EXPORT const qse_char_t* qse_awk_backuperrmsg (
|
||||
qse_awk_t* awk /**< awk */
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* The qse_awk_geterrinf() function copies error information into memory
|
||||
* pointed to by \a errinf from \a awk.
|
||||
@ -2344,6 +2349,10 @@ QSE_EXPORT const qse_char_t* qse_awk_rtx_geterrmsg (
|
||||
const qse_awk_rtx_t* rtx /**< runtime context */
|
||||
);
|
||||
|
||||
QSE_EXPORT const qse_char_t* qse_awk_rtx_backuperrmsg (
|
||||
qse_awk_rtx_t* rtx /**< runtime context */
|
||||
);
|
||||
|
||||
/**
|
||||
* The qse_awk_rtx_geterrinf() function copies error information into memory
|
||||
* pointed to by \a errinf from a runtime context \a rtx.
|
||||
|
@ -81,7 +81,7 @@ public:
|
||||
/// allocation. if it fails, it raise an exception if it's
|
||||
/// configured to do so.
|
||||
///
|
||||
void* allocate (qse_size_t n, bool raise_exception = true) QSE_CPP_THREXCEPT1(MemoryError)
|
||||
void* allocate (qse_size_t n, bool raise_exception = true) /*QSE_CPP_THREXCEPT1(MemoryError)*/
|
||||
{
|
||||
void* xptr = this->allocMem (n);
|
||||
if (!xptr && raise_exception) QSE_THROW (MemoryError);
|
||||
@ -92,14 +92,14 @@ public:
|
||||
/// The callocate() function allocates memory like allocate() and
|
||||
/// clears the memory before returning.
|
||||
///
|
||||
void* callocate (qse_size_t n, bool raise_exception = true) QSE_CPP_THREXCEPT1(MemoryError);
|
||||
void* callocate (qse_size_t n, bool raise_exception = true) /*QSE_CPP_THREXCEPT1(MemoryError)*/;
|
||||
|
||||
///
|
||||
/// The reallocate() function calls reallocMem() for memory
|
||||
/// reallocation. if it fails, it raise an exception if it's
|
||||
/// configured to do so.
|
||||
///
|
||||
void* reallocate (void* ptr, qse_size_t n, bool raise_exception = true) QSE_CPP_THREXCEPT1(MemoryError)
|
||||
void* reallocate (void* ptr, qse_size_t n, bool raise_exception = true) /*QSE_CPP_THREXCEPT1(MemoryError)*/
|
||||
{
|
||||
void* xptr = this->reallocMem (ptr, n);
|
||||
if (!xptr && raise_exception) QSE_THROW (MemoryError);
|
||||
@ -171,7 +171,7 @@ protected:
|
||||
QSE_END_NAMESPACE(QSE)
|
||||
/////////////////////////////////
|
||||
|
||||
QSE_EXPORT void* operator new (qse_size_t size, QSE::Mmgr* mmgr) QSE_CPP_THREXCEPT1(QSE::Mmgr::MemoryError);
|
||||
QSE_EXPORT void* operator new (qse_size_t size, QSE::Mmgr* mmgr) /*QSE_CPP_THREXCEPT1(QSE::Mmgr::MemoryError)*/;
|
||||
|
||||
#if defined(QSE_CPP_NO_OPERATOR_DELETE_OVERLOADING)
|
||||
QSE_EXPORT void qse_operator_delete (void* ptr, QSE::Mmgr* mmgr);
|
||||
@ -179,7 +179,7 @@ QSE_EXPORT void qse_operator_delete (void* ptr, QSE::Mmgr* mmgr);
|
||||
QSE_EXPORT void operator delete (void* ptr, QSE::Mmgr* mmgr);
|
||||
#endif
|
||||
|
||||
QSE_EXPORT void* operator new (qse_size_t size, QSE::Mmgr* mmgr, void* existing_ptr) QSE_CPP_THREXCEPT1(QSE::Mmgr::MemoryError);
|
||||
QSE_EXPORT void* operator new (qse_size_t size, QSE::Mmgr* mmgr, void* existing_ptr) /*QSE_CPP_THREXCEPT1(QSE::Mmgr::MemoryError)*/;
|
||||
|
||||
#if 0
|
||||
// i found no way to delete an array allocated with
|
||||
|
Reference in New Issue
Block a user