Browse CVS Repository
Diff of /xoonips/AL/commonal.cc
Parent Directory
| Revision Log
| Revision Graph
| Patch
| 2 |
* |
* |
| 3 |
* $Revision$ |
* $Revision$ |
| 4 |
* $Log$ |
* $Log$ |
| 5 |
|
* Revision 1.3 2004/11/25 11:13:59 youi |
| 6 |
|
* getLastErrorString/setLastErrorStringを定義. |
| 7 |
|
* |
| 8 |
* Revision 1.2 2004/11/25 08:55:19 youi |
* Revision 1.2 2004/11/25 08:55:19 youi |
| 9 |
* 引数の型を修正. |
* 引数の型を修正. |
| 10 |
* freeResultを追加. |
* freeResultを追加. |
| 11 |
* |
* |
| 12 |
* Revision 1.1 2004/11/25 05:14:58 youi |
* Revision 1.1 2004/11/25 05:14:58 youi |
| 18 |
#include <stdio.h> |
#include <stdio.h> |
| 19 |
#include <string.h> |
#include <string.h> |
| 20 |
#include <mysql.h> |
#include <mysql.h> |
| 21 |
|
#include <string> |
| 22 |
|
|
| 23 |
#include "common.h" |
#include "common.h" |
| 24 |
#include "account.h" |
#include "account.h" |
| 434 |
|
|
| 435 |
void freeResult( int* ptr ){ delete[] ptr; } |
void freeResult( int* ptr ){ delete[] ptr; } |
| 436 |
|
|
| 437 |
|
using namespace std; |
| 438 |
|
static string errstr; |
| 439 |
|
const char* getLastErrorString() |
| 440 |
|
{ |
| 441 |
|
return errstr.c_str( ); |
| 442 |
|
} |
| 443 |
|
|
| 444 |
|
void setLastErrorString( const char* str ) |
| 445 |
|
{ |
| 446 |
|
errstr = str; |
| 447 |
|
} |
|
|
Legend:
| Removed from v.1.2 |
|
| changed lines |
| |
Added in v.1.3 |
|
|
|