8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 19:23:03 +01:00

one more form of ERR_cstring()

This commit is contained in:
alexpeshkoff 2004-03-31 17:52:50 +00:00
parent e2c29be532
commit 42e9456d27
2 changed files with 8 additions and 1 deletions

View File

@ -127,6 +127,10 @@ void ERR_corrupt(int number)
} }
#endif #endif
const TEXT* ERR_cstring(const Firebird::string& in_string)
{
return ERR_cstring(in_string.c_str());
}
const TEXT* ERR_cstring(const TEXT* in_string) const TEXT* ERR_cstring(const TEXT* in_string)
{ {

View File

@ -24,6 +24,8 @@
#ifndef JRD_ERR_PROTO_H #ifndef JRD_ERR_PROTO_H
#define JRD_ERR_PROTO_H #define JRD_ERR_PROTO_H
#include "fb_string.h"
#ifndef REQUESTER #ifndef REQUESTER
namespace Jrd { namespace Jrd {
@ -38,7 +40,7 @@ typedef enum idx_e {
idx_e_foreign idx_e_foreign
} IDX_E; } IDX_E;
class jrd_rel; class jrd_rel;
} //namespace Jrd } //namespace Jrd
bool ERR_post_warning(ISC_STATUS, ...); bool ERR_post_warning(ISC_STATUS, ...);
@ -57,6 +59,7 @@ void ERR_log(int, int, const TEXT*);
#endif /* REQUESTER */ #endif /* REQUESTER */
const TEXT* ERR_cstring(const TEXT*); const TEXT* ERR_cstring(const TEXT*);
const TEXT* ERR_cstring(const Firebird::string&);
const TEXT* ERR_string(const TEXT*, int); const TEXT* ERR_string(const TEXT*, int);
#endif /* JRD_ERR_PROTO_H */ #endif /* JRD_ERR_PROTO_H */