List:Commits« Previous MessageNext Message »
From:ahristov Date:May 23 2006 4:50pm
Subject:bk commit into 5.1 tree (andrey:1.2183)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of andrey. When andrey does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet
  1.2183 06/05/23 16:50:01 andrey@lmy004. +1 -0
  __FUNCTION__ is not available everywhere.
  make us see at least with gcc the function proto. this can be extended
  probably for windows too.
  Fix build on intelxeon3 (sun compiler and others)

  sql/event_scheduler.cc
    1.3 06/05/23 16:49:54 andrey@lmy004. +9 -2
    __FUNCTION__ is not available everywhere.
    make us see at least with gcc the function proto. this can be extended
    probably for windows too.

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	andrey
# Host:	lmy004.
# Root:	/work/mysql-5.1-release

--- 1.2/sql/event_scheduler.cc	2006-05-23 00:18:54 +02:00
+++ 1.3/sql/event_scheduler.cc	2006-05-23 16:49:54 +02:00
@@ -236,9 +236,16 @@
   about conditional variables used.
 */
 
+#ifdef __GNUC__
+#if __GNUC__ >= 2
+#define SCHED_FUNC __FUNCTION__
+#endif
+#else
+#define SCHED_FUNC "<unknown>"
+#endif
 
-#define LOCK_SCHEDULER_DATA()   lock_data(__FUNCTION__,__LINE__)
-#define UNLOCK_SCHEDULER_DATA() unlock_data(__FUNCTION__,__LINE__)
+#define LOCK_SCHEDULER_DATA()   lock_data(SCHED_FUNC, __LINE__)
+#define UNLOCK_SCHEDULER_DATA() unlock_data(SCHED_FUNC, __LINE__)
 
 
 #ifndef DBUG_OFF
Thread
bk commit into 5.1 tree (andrey:1.2183)ahristov23 May