diff options
author | unknown <tim@cane.mysql.fi> | 2001-01-16 22:51:45 +0200 |
---|---|---|
committer | unknown <tim@cane.mysql.fi> | 2001-01-16 22:51:45 +0200 |
commit | bc09074b557ff7c453e6d21bf7892f902e53353c (patch) | |
tree | 4269d663dd48316b6f741e3ab5be911f946703ba /include | |
parent | 86b58e29471cfba2d5f7f3f7adfb6e448cc0018f (diff) | |
parent | 8c7841bca25a07f36b75584a9e60b6143e90024a (diff) | |
download | mariadb-git-bc09074b557ff7c453e6d21bf7892f902e53353c.tar.gz |
Merge work.mysql.com:/home/bk/mysql
into cane.mysql.fi:/usr/home/tim/my/work
Diffstat (limited to 'include')
-rw-r--r-- | include/global.h | 4 | ||||
-rw-r--r-- | include/my_pthread.h | 6 | ||||
-rw-r--r-- | include/raid.h | 28 | ||||
-rw-r--r-- | include/sslopt-case.h | 10 |
4 files changed, 24 insertions, 24 deletions
diff --git a/include/global.h b/include/global.h index ce3fc80770f..04b8ddea257 100644 --- a/include/global.h +++ b/include/global.h @@ -22,11 +22,11 @@ #define _global_h #if defined( __EMX__) && !defined( MYSQL_SERVER) -// moved here to use below VOID macro redefinition +/* moved here to use below VOID macro redefinition */ #define INCL_BASE #define INCL_NOPMAPI #include <os2.h> -#endif // __EMX__ +#endif /* __EMX__ */ #if defined(_WIN32) || defined(_WIN64) || defined(__WIN32__) || defined(WIN32) #include <config-win.h> diff --git a/include/my_pthread.h b/include/my_pthread.h index da4e104064e..6a5b8dcf5eb 100644 --- a/include/my_pthread.h +++ b/include/my_pthread.h @@ -22,7 +22,7 @@ #include <errno.h> #ifndef ETIME -#define ETIME ETIMEDOUT // For FreeBSD +#define ETIME ETIMEDOUT /* For FreeBSD */ #endif #if defined(__WIN__) @@ -119,8 +119,8 @@ void pthread_exit(void *a); /* was #define pthread_exit(A) ExitThread(A)*/ #define pthread_condattr_init(A) #define pthread_condattr_destroy(A) -//Irena: compiler does not like this: -//#define my_pthread_getprio(pthread_t thread_id) pthread_dummy(0) +/*Irena: compiler does not like this: */ +/*#define my_pthread_getprio(pthread_t thread_id) pthread_dummy(0) */ #define my_pthread_getprio(thread_id) pthread_dummy(0) #elif defined(HAVE_UNIXWARE7_THREADS) diff --git a/include/raid.h b/include/raid.h index d5c130f6060..e7261bb4998 100644 --- a/include/raid.h +++ b/include/raid.h @@ -16,9 +16,9 @@ MA 02111-1307, USA */ /* Parser needs these defines always, even if USE_RAID is not defined */ -#define RAID_TYPE_0 1 // Striping -#define RAID_TYPE_x 2 // Some new modes -#define RAID_TYPE_y 3 // +#define RAID_TYPE_0 1 /* Striping */ +#define RAID_TYPE_x 2 /* Some new modes */ +#define RAID_TYPE_y 3 #define RAID_DEFAULT_CHUNKS 4 #define RAID_DEFAULT_CHUNKSIZE 256*1024 /* 256kB */ @@ -102,9 +102,9 @@ class RaidName { bool IsRaid(); int Rename(const char * from, const char * to, myf MyFlags); private: - uint _raid_type; // RAID_TYPE_0 or RAID_TYPE_1 or RAID_TYPE_5 - uint _raid_chunks; // 1..n - ulong _raid_chunksize; // 1..n in bytes + uint _raid_type; /* RAID_TYPE_0 or RAID_TYPE_1 or RAID_TYPE_5 */ + uint _raid_chunks; /* 1..n */ + ulong _raid_chunksize; /* 1..n in bytes */ }; class RaidFd { @@ -126,16 +126,16 @@ class RaidFd { static DYNAMIC_ARRAY _raid_map; /* Map of RaidFD* */ private: - uint _raid_type; // RAID_TYPE_0 or RAID_TYPE_1 or RAID_TYPE_5 - uint _raid_chunks; // 1..n - ulong _raid_chunksize; // 1..n in bytes + uint _raid_type; /* RAID_TYPE_0 or RAID_TYPE_1 or RAID_TYPE_5 */ + uint _raid_chunks; /* 1..n */ + ulong _raid_chunksize; /* 1..n in bytes */ - ulong _total_block; // We are operating with block no x (can be 0..many). - uint _this_block; // can be 0.._raid_chunks - uint _remaining_bytes; // Maximum bytes that can be written in this block + ulong _total_block; /* We are operating with block no x (can be 0..many). */ + uint _this_block; /* can be 0.._raid_chunks */ + uint _remaining_bytes; /* Maximum bytes that can be written in this block */ my_off_t _position; - my_off_t _size; // Cached file size for faster seek(SEEK_END) + my_off_t _size; /* Cached file size for faster seek(SEEK_END) */ File _fd; File *_fd_vector; /* Array of File */ off_t *_seek_vector; /* Array of cached seek positions */ @@ -147,7 +147,7 @@ class RaidFd { (ulong) _position, _raid_chunksize, (ulong) _size)); _total_block = (ulong) (_position / _raid_chunksize); - _this_block = _total_block % _raid_chunks; // can be 0.._raid_chunks + _this_block = _total_block % _raid_chunks; /* can be 0.._raid_chunks */ _remaining_bytes = (uint) (_raid_chunksize - (_position - _total_block * _raid_chunksize)); DBUG_PRINT("info", diff --git a/include/sslopt-case.h b/include/sslopt-case.h index db636176b5c..d995e31044e 100644 --- a/include/sslopt-case.h +++ b/include/sslopt-case.h @@ -17,25 +17,25 @@ #ifdef HAVE_OPENSSL case OPT_SSL_SSL: - opt_use_ssl = 1; //true + opt_use_ssl = 1; /* true */ break; case OPT_SSL_KEY: - opt_use_ssl = 1; //true + opt_use_ssl = 1; /* true */ my_free(opt_ssl_key, MYF(MY_ALLOW_ZERO_PTR)); opt_ssl_key = my_strdup(optarg, MYF(0)); break; case OPT_SSL_CERT: - opt_use_ssl = 1; //true + opt_use_ssl = 1; /* true */ my_free(opt_ssl_cert, MYF(MY_ALLOW_ZERO_PTR)); opt_ssl_cert = my_strdup(optarg, MYF(0)); break; case OPT_SSL_CA: - opt_use_ssl = 1; //true + opt_use_ssl = 1; /* true */ my_free(opt_ssl_ca, MYF(MY_ALLOW_ZERO_PTR)); opt_ssl_ca = my_strdup(optarg, MYF(0)); break; case OPT_SSL_CAPATH: - opt_use_ssl = 1; //true + opt_use_ssl = 1; /* true */ my_free(opt_ssl_ca, MYF(MY_ALLOW_ZERO_PTR)); opt_ssl_ca = my_strdup(optarg, MYF(0)); break; |