Commit e2a8a99d authored by monty@donna.mysql.com's avatar monty@donna.mysql.com
Browse files

Lots of manual changes

Changed 'static inline' to 'inline' for SCO new's compiler
parent 21185c17
Loading
Loading
Loading
Loading
+450 −273

File changed.

Preview size limit exceeded, changes collapsed.

+2 −2
Original line number Diff line number Diff line
@@ -83,7 +83,7 @@ void hash_free(HASH *hash)

	/* some helper functions */

static inline byte*
inline byte*
hash_key(HASH *hash,const byte *record,uint *length,my_bool first)
{
  if (hash->get_key)
@@ -180,7 +180,7 @@ uint calc_hashnr_caseup(const byte *key, uint len)
#endif


static inline uint rec_hashnr(HASH *hash,const byte *record)
inline uint rec_hashnr(HASH *hash,const byte *record)
{
  uint length;
  byte *key=hash_key(hash,record,&length,0);
+1 −1
Original line number Diff line number Diff line
@@ -100,7 +100,7 @@ static void add_hostname(struct in_addr *in,const char *name)
}


static inline void add_wrong_ip(struct in_addr *in)
inline void add_wrong_ip(struct in_addr *in)
{
  add_hostname(in,NullS);
}
+1 −1
Original line number Diff line number Diff line
@@ -471,7 +471,7 @@ bool Item_real::save_in_field(Field *field)
** In number context this is a longlong value.
****************************************************************************/

static inline uint char_val(char X)
inline uint char_val(char X)
{
  return (uint) (X >= '0' && X <= '9' ? X-'0' :
		 X >= 'A' && X <= 'Z' ? X-'A'+10 :
+1 −1
Original line number Diff line number Diff line
@@ -74,7 +74,7 @@ typedef my_bool ALARM;
#define thr_alarm_in_use(A) (*(A))
#define thr_end_alarm(A)
#define thr_alarm(A,B,C) local_thr_alarm((A),(B),(C))
static inline int local_thr_alarm(my_bool *A,int B __attribute__((unused)),ALARM *C __attribute__((unused)))
inline int local_thr_alarm(my_bool *A,int B __attribute__((unused)),ALARM *C __attribute__((unused)))
{
  *A=1;
  return 0;
Loading