Add 'inline' to prototype of tokens_buff_remove_last_token
authorDodji Seketeli <dodji@redhat.com>
Mon, 5 Dec 2011 09:20:59 +0000 (09:20 +0000)
committerDodji Seketeli <dodji@gcc.gnu.org>
Mon, 5 Dec 2011 09:20:59 +0000 (10:20 +0100)
libcpp/

* macro.c (tokens_buff_remove_last_token)
(tokens_buff_put_token_to): Add an 'inline' function specifier to
the prototype.

From-SVN: r182002

libcpp/ChangeLog
libcpp/macro.c

index 1df9e0802687d8bf7276a6a631d47d24510871a9..f47bf03a3413f54604a64f9aeab615fe71a2a010 100644 (file)
@@ -1,3 +1,9 @@
+2011-12-03  Dodji Seketeli  <dodji@redhat.com>
+
+       * macro.c (tokens_buff_remove_last_token)
+       (tokens_buff_put_token_to): Add an 'inline' function specifier to
+       the prototype.
+
 2011-11-22   Diego Novillo  <dnovillo@google.com>
 
        * include/line-map.h (linemap_dump): Declare.
index f3139590d5045b128709296d1abbb81753284f10..d96b2631a86d033ecc5526e41c81cdf132ad3cac 100644 (file)
@@ -128,13 +128,13 @@ static _cpp_buff *tokens_buff_new (cpp_reader *, size_t,
                                   source_location **);
 static size_t tokens_buff_count (_cpp_buff *);
 static const cpp_token **tokens_buff_last_token_ptr (_cpp_buff *);
-static const cpp_token **tokens_buff_put_token_to (const cpp_token **,
-                                                  source_location *, 
-                                                  const cpp_token *,
-                                                  source_location,
-                                                  source_location,
-                                                  const struct line_map *,
-                                                  unsigned int);
+static inline const cpp_token **tokens_buff_put_token_to (const cpp_token **,
+                                                          source_location *,
+                                                          const cpp_token *,
+                                                          source_location,
+                                                          source_location,
+                                                          const struct line_map *,
+                                                          unsigned int);
 
 static const cpp_token **tokens_buff_add_token (_cpp_buff *,
                                                source_location *,
@@ -143,7 +143,7 @@ static const cpp_token **tokens_buff_add_token (_cpp_buff *,
                                                source_location,
                                                const struct line_map *,
                                                unsigned int);
-static void tokens_buff_remove_last_token (_cpp_buff *);
+static inline void tokens_buff_remove_last_token (_cpp_buff *);
 static void replace_args (cpp_reader *, cpp_hashnode *, cpp_macro *,
                          macro_arg *, source_location);
 static _cpp_buff *funlike_invocation_p (cpp_reader *, cpp_hashnode *,