summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChad MILLER <chad@mysql.com>2009-02-10 10:07:54 -0500
committerChad MILLER <chad@mysql.com>2009-02-10 10:07:54 -0500
commitb4b7e0fb65b211b23254481efe08889156092279 (patch)
treea67460caf38416ff560e0c9d877ad73b54d378c0 /include
parent87cb3247565201631c65414a135d87484381c94c (diff)
parent6387fe92ea1ed88b64c6124e1afdd17ccef184ab (diff)
downloadmariadb-git-b4b7e0fb65b211b23254481efe08889156092279.tar.gz
Merge from bugteam team tree.
Diffstat (limited to 'include')
-rw-r--r--include/my_global.h4
-rw-r--r--include/my_sys.h3
-rw-r--r--include/thr_lock.h3
3 files changed, 5 insertions, 5 deletions
diff --git a/include/my_global.h b/include/my_global.h
index feabb714004..8c25cbf802e 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -723,7 +723,6 @@ typedef SOCKET_SIZE_TYPE size_socket;
#define UNSINT32 /* unsigned int32 */
/* General constants */
-#define SC_MAXWIDTH 256 /* Max width of screen (for error messages) */
#define FN_LEN 256 /* Max file name len */
#define FN_HEADLEN 253 /* Max length of filepart of file name */
#define FN_EXTLEN 20 /* Max length of extension (part of FN_LEN) */
@@ -1132,6 +1131,9 @@ typedef char bool; /* Ordinary boolean values 0 1 */
#define dbug_volatile
#endif
+/* Some helper macros */
+#define YESNO(X) ((X) ? "yes" : "no")
+
/* Defines for time function */
#define SCALE_SEC 100
#define SCALE_USEC 10000
diff --git a/include/my_sys.h b/include/my_sys.h
index 60122eab94e..5335b65822f 100644
--- a/include/my_sys.h
+++ b/include/my_sys.h
@@ -39,8 +39,6 @@ extern int NEAR my_errno; /* Last error in mysys */
#define MYSYS_PROGRAM_DONT_USE_CURSES() { error_handler_hook = my_message_no_curses; mysys_uses_curses=0;}
#define MY_INIT(name); { my_progname= name; my_init(); }
-#define ERRMSGSIZE (SC_MAXWIDTH) /* Max length of a error message */
-#define NRERRBUFFS (2) /* Buffers for parameters */
#define MY_FILE_ERROR ((size_t) -1)
/* General bitmaps for my_func's */
@@ -208,7 +206,6 @@ extern void my_large_free(uchar * ptr, myf my_flags);
extern int errno; /* declare errno */
#endif
#endif /* #ifndef errno */
-extern char NEAR errbuff[NRERRBUFFS][ERRMSGSIZE];
extern char *home_dir; /* Home directory for user */
extern const char *my_progname; /* program-name (printed in errors) */
extern char NEAR curr_dir[]; /* Current directory for user */
diff --git a/include/thr_lock.h b/include/thr_lock.h
index c7754ada299..e409df30972 100644
--- a/include/thr_lock.h
+++ b/include/thr_lock.h
@@ -159,7 +159,8 @@ void thr_multi_unlock(THR_LOCK_DATA **data,uint count);
void thr_abort_locks(THR_LOCK *lock, my_bool upgrade_lock);
my_bool thr_abort_locks_for_thread(THR_LOCK *lock, my_thread_id thread);
void thr_print_locks(void); /* For debugging */
-my_bool thr_upgrade_write_delay_lock(THR_LOCK_DATA *data);
+my_bool thr_upgrade_write_delay_lock(THR_LOCK_DATA *data,
+ enum thr_lock_type new_lock_type);
void thr_downgrade_write_lock(THR_LOCK_DATA *data,
enum thr_lock_type new_lock_type);
my_bool thr_reschedule_write_lock(THR_LOCK_DATA *data);