Develop and Download Open Source Software

Browse CVS Repository

Contents of /xoonips/AL/common.h

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


Revision 1.16 - (show annotations) (download) (as text)
Mon Mar 14 06:12:11 2005 UTC (19 years, 1 month ago) by tani
Branch: MAIN
Changes since 1.15: +2 -2 lines
File MIME type: text/x-chdr
__BORLANDC__対応.

1 /*
2 * $Revision: 1.15 $
3 */
4 #if !defined( COMMON_H )
5 #define COMMON_H
6
7
8 #if defined(__BORLANDC__)
9 #define PROTOTYPES 1
10 #include "md5/global.h"
11 #include "md5/md5.h"
12
13 #define MD5_Init MD5Init
14 #define MD5_Update MD5Update
15 #define MD5_Final MD5Final
16
17 #define snprintf _snprintf
18
19 #else
20 #include <openssl/md5.h>
21 #endif
22 #include<string>
23
24 using namespace std;
25 typedef enum {
26 RES_OK = 0,
27 RES_ERROR,
28 RES_DB_NOT_INITIALIZED,
29 RES_LOGIN_FAILURE,
30 RES_NO_SUCH_SESSION,
31 RES_NO_SUCH_USER,
32 RES_NO_SUCH_GROUP,
33 RES_DB_QUERY_ERROR,
34 RES_DB_CONNECT_ERROR,
35 RES_DB_INITIALIZE_ERROR,
36 RES_NO_SUCH_ITEM,
37 RES_NO_WRITE_ACCESS_RIGHT,
38 RES_NO_READ_ACCESS_RIGHT,
39
40 RES_PHP_NONREF=1000
41 } result_t;
42
43 typedef enum {
44 DBTYPE_MYSQL = 1,
45 DBTYPE_SQLITE = 2
46 } dbtype_t;
47
48 char* str_dup( const char* );
49 char* setValue( char** , const char* );
50 string intToString( int i );
51 string unsignedIntToString( unsigned int i );
52 string doubleToString( double d );
53
54 #define MD5_DIGEST_STRING_LENGTH (MD5_DIGEST_LENGTH*2+1)
55
56 char* md5str( char str[MD5_DIGEST_STRING_LENGTH], unsigned char* data, int len );
57
58 #endif
59
60

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