Develop and Download Open Source Software

Browse CVS Repository

Diff of /xoonips/AL/commonal.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2 by youi, Thu Nov 25 08:55:19 2004 UTC revision 1.3 by youi, Thu Nov 25 11:13:59 2004 UTC
# Line 2  Line 2 
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
# Line 15  Line 18 
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"
# Line 430  void freeResult( session_t* ptr ){ delet Line 434  void freeResult( session_t* ptr ){ delet
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

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26