Prechádzať zdrojové kódy

* inline -> __inline__

svn: 980
Bryan Drewery 22 rokov pred
rodič
commit
4d86714aa2

+ 1 - 1
src/botmsg.c

@@ -400,7 +400,7 @@ void botnet_send_reject(int idx, char *fromp, char *frombot, char *top, char *to
   tputs(dcc[idx].sock, OBUF, len);
 }
 
-inline void putallbots(char *par)
+__inline__ void putallbots(char *par)
 { 
   botnet_send_zapf_broad(-1, conf.bot->nick, NULL, par);
 }

+ 1 - 1
src/botmsg.h

@@ -16,7 +16,7 @@
 void botnet_send_cfg(int idx, struct cfg_entry *entry);
 void botnet_send_cfg_broad(int idx, struct cfg_entry *entry);
 void putbot(char *, char *);
-inline void putallbots(char *);
+__inline__ void putallbots(char *);
 int add_note(char *, char *, char *, int, int);
 size_t simple_sprintf (char *, ...);
 void tandout_but (int, ...);

+ 1 - 1
src/compat/gnu_strftime.c

@@ -336,7 +336,7 @@ tm_diff (a, b)
 #define YDAY_MINIMUM (-366)
 static int iso_week_days __P ((int, int));
 #ifdef __GNUC__
-__inline__
+____inline____
 #endif
 static int
 iso_week_days (yday, wday)

+ 2 - 2
src/crypto/sha.c

@@ -50,7 +50,7 @@
 
 
 #define ROTATE(a,n)  ({ register unsigned int ret;   \
-                                asm (                   \
+                                __asm__ (               \
                                 "roll %1,%0"            \
                                 : "=r"(ret)             \
                                 : "I"(n), "0"(a)        \
@@ -59,7 +59,7 @@
                         })
 
 #define BE_FETCH32(a)        ({ register unsigned int l=(a);\
-                                asm (                   \
+                                __asm__ (               \
                                 "bswapl %0"             \
                                 : "=r"(l) : "0"(l));    \
                           l;                            \

+ 1 - 1
src/dccutil.c

@@ -437,7 +437,7 @@ void set_away(int idx, char *s)
 
 /* Make a password, 10-14 random letters and digits
  */
-inline void makepass(char *s)
+__inline__ void makepass(char *s)
 {
   make_rand_str(s, 10 + randint(5));
 }

+ 1 - 1
src/dccutil.h

@@ -31,7 +31,7 @@ void chatout (char *, ...);
 void chanout_but (int, ...);
 void dcc_chatter(int);
 void lostdcc(int);
-inline void makepass(char *);
+__inline__ void makepass(char *);
 void tell_dcc(int);
 void not_away(int);
 void set_away(int, char *);

+ 1 - 1
src/log.c

@@ -114,7 +114,7 @@ char *maskname(int x)
  *    Logging functions
  */
 
-inline void logidx(int idx, char *format, ...)
+__inline__ void logidx(int idx, char *format, ...)
 {
   char va_out[LOGLINEMAX + 1];
   va_list va;

+ 1 - 1
src/log.h

@@ -28,7 +28,7 @@
 #define LOG_BOTSHARE BIT22   /* h   share traffic                    */
 #define LOG_ALL      0xfffffff   /* (dump to all logfiles)               */
 
-inline void logidx(int, char *, ...);
+__inline__ void logidx(int, char *, ...);
 void putlog (int, char *, char *, ...);
 int logmodes(char *);
 char *masktype(int);

+ 1 - 1
src/misc.c

@@ -632,7 +632,7 @@ char *strchr_unescape(char *str, const char divc, register const char esc_char)
 /* As strchr_unescape(), but converts the complete string, without
  * searching for a specific delimiter character.
  */
-inline void str_unescape(char *str, register const char esc_char)
+__inline__ void str_unescape(char *str, register const char esc_char)
 {
   (void) strchr_unescape(str, 0, esc_char);
 }

+ 1 - 1
src/misc.h

@@ -59,7 +59,7 @@ void show_banner(int);
 void make_rand_str(char *, int);
 char *str_escape(const char *, const char, const char);
 char *strchr_unescape(char *, const char, register const char);
-inline void str_unescape(char *, register const char);
+__inline__ void str_unescape(char *, register const char);
 int str_isdigit(const char *);
 void kill_bot(char *, char *);
 

+ 1 - 1
src/mod/channels.mod/channels.c

@@ -571,7 +571,7 @@ int ismasked(masklist *m, char *username)
 
 /* Unlink chanset element from chanset list.
  */
-inline static int chanset_unlink(struct chanset_t *chan)
+__inline__ static int chanset_unlink(struct chanset_t *chan)
 {
   struct chanset_t *c = NULL, *c_old = NULL;
 

+ 1 - 1
src/mod/channels.mod/channels.h

@@ -24,7 +24,7 @@ static void tell_exempts (int idx, int show_inact, char * match);
 static void tell_invites (int idx, int show_inact, char * match);
 static void get_mode_protect(struct chanset_t *chan, char *s);
 static void set_mode_protect(struct chanset_t *chan, char *set);
-inline static int chanset_unlink(struct chanset_t *chan);
+__inline__ static int chanset_unlink(struct chanset_t *chan);
 
 #endif				/* MAKING_CHANNELS */
 

+ 1 - 1
src/mod/compress.mod/compress.c

@@ -168,7 +168,7 @@ static int uncompress_to_file(char *f_src, char *f_target)
 
 /* Enforce limits.
  */
-inline static void adjust_mode_num(int *mode)
+__inline__ static void adjust_mode_num(int *mode)
 {
   if (*mode > 9)
     *mode = 9;

+ 2 - 2
src/mod/dns.mod/coredns.c

@@ -221,14 +221,14 @@ static struct resolve *allocresolve()
 
 /* Return the hash bucket number for id.
  */
-inline static u_32bit_t getidbash(u_16bit_t id)
+__inline__ static u_32bit_t getidbash(u_16bit_t id)
 {
     return (u_32bit_t) BASH_MODULO(id);
 }
 
 /* Return the hash bucket number for ip.
  */
-inline static u_32bit_t getipbash(IP ip)
+__inline__ static u_32bit_t getipbash(IP ip)
 {
     return (u_32bit_t) BASH_MODULO(ip);
 }

+ 1 - 1
src/mod/server.mod/server.h

@@ -41,7 +41,7 @@ enum {
 #endif		/* _EGG_MOD_SERVER_SERVER_H */
 
 void nuke_server(char *);
-inline int match_my_nick(char *);
+__inline__ int match_my_nick(char *);
 
 extern bind_table_t	*BT_ctcp, *BT_ctcr;
 #ifdef S_MSGCMDS

+ 1 - 1
src/mod/server.mod/servmsg.c

@@ -159,7 +159,7 @@ int check_bind_ctcpr(char *nick, char *uhost, struct userrec *u,
 }
 
 
-inline int match_my_nick(char *nick)
+__inline__ int match_my_nick(char *nick)
 {
   return (!rfc_casecmp(nick, botname));
 }

+ 2 - 2
src/mod/transfer.mod/transfer.c

@@ -467,7 +467,7 @@ static void eof_dcc_send(int idx)
 #ifdef HUB
 /* Determine byte order. Used for resend DCC startup packets.
  */
-static inline u_8bit_t byte_order_test(void)
+static __inline__ u_8bit_t byte_order_test(void)
 {
   u_16bit_t test = TRANSFER_REGET_PACKETID;
 
@@ -480,7 +480,7 @@ static inline u_8bit_t byte_order_test(void)
 
 /* Parse and handle resend DCC startup packets.
  */
-inline static void handle_resend_packet(int idx, transfer_reget *reget_data)
+__inline__ static void handle_resend_packet(int idx, transfer_reget *reget_data)
 {
   if (byte_order_test() != reget_data->byte_order) {
     /* The sender's byte order does not match our's so we need to switch the

+ 2 - 2
src/net.c

@@ -805,7 +805,7 @@ int open_address_listen(IP addr, port_t int *port)
 /* Returns a socket number for a listening socket that will accept any
  * connection -- port # is returned in port
  */
-inline int open_listen(port_t *port)
+__inline__ int open_listen(port_t *port)
 {
 #ifdef USE_IPV6
   return open_address_listen(conf.bot->ip ? getmyip() : INADDR_ANY, AF_INET, port);
@@ -818,7 +818,7 @@ inline int open_listen(port_t *port)
  * the above is being left in for compatibility, and should NOT LONGER BE USED IN THE CORE CODE.
  */
 
-inline int open_listen_by_af(port_t *port, int af_def)
+__inline__ int open_listen_by_af(port_t *port, int af_def)
 {
 #ifdef USE_IPV6
   return open_address_listen(conf.bot->ip ? getmyip() : INADDR_ANY, af_def, port);

+ 2 - 2
src/net.h

@@ -148,8 +148,8 @@ void dropssl(int);
 void real_killsock(int, const char *, int);
 int answer(int, char *, IP *, port_t *, int);
 int findanyidx(register int);
-inline int open_listen(port_t *);
-inline int open_listen_by_af(port_t *, int);
+__inline__ int open_listen(port_t *);
+__inline__ int open_listen_by_af(port_t *, int);
 #ifdef USE_IPV6
 int open_address_listen(IP, int, port_t *);
 #else

+ 1 - 1
src/shell.c

@@ -294,7 +294,7 @@ void check_trace()
   oldsv = NULL;
   sigaction(SIGTRAP, &sv, oldsv);
   traced = 1;
-  asm("INT3");
+  __asm__("INT3");
   sigaction(SIGTRAP, oldsv, NULL);
   if (traced)
     detected(DETECT_TRACE, "I'm being traced!");