{"thread":{"id":"5360","subject":"[PATCH] proper C syntax (inline has to be placed before the return type).","startedAt":"2006-08-23T02:41:09Z","lastAt":"2006-09-24T12:46:33Z","messageCount":2,"participants":["Pierre Habouzit","Petr Baudis"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"25780","messageId":"11563008693465-git-send-email-madcoder@debian.org","threadId":"5360","inReplyTo":null,"subject":"[PATCH] proper C syntax (inline has to be placed before the return type).","fromName":"Pierre Habouzit","fromEmail":"madcoder@debian.org","sentAt":"2006-08-23T02:41:09Z","receivedAt":"2006-08-23T02:41:09Z","isPatch":true,"sender":{"key":"madcoder@debian.org","avatar":"https://avatars.githubusercontent.com/u/44708?v=4"},"body":"Signed-off-by: Pierre Habouzit <madcoder@debian.org>\n---\n strbuf.c |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/strbuf.c b/strbuf.c\nindex 9d9d8be..c8174b4 100644\n--- a/strbuf.c\n+++ b/strbuf.c\n@@ -13,7 +13,7 @@ static void strbuf_begin(struct strbuf *\n \tstrbuf_init(sb);\n }\n \n-static void inline strbuf_add(struct strbuf *sb, int ch) {\n+static inline void strbuf_add(struct strbuf *sb, int ch) {\n \tif (sb->alloc <= sb->len) {\n \t\tsb->alloc = sb->alloc * 3 / 2 + 16;\n \t\tsb->buf = xrealloc(sb->buf, sb->alloc);\n-- \n1.4.1.1\n"},{"id":"27551","messageId":"20060924124633.GP20017@pasky.or.cz","threadId":"5360","inReplyTo":"11563008693465-git-send-email-madcoder@debian.org","subject":"Re: [PATCH] proper C syntax (inline has to be placed before the return type).","fromName":"Petr Baudis","fromEmail":"pasky@suse.cz","sentAt":"2006-09-24T12:46:33Z","receivedAt":"2006-09-24T12:46:33Z","isPatch":true,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"Dear diary, on Wed, Aug 23, 2006 at 04:41:09AM CEST, I got a letter\nwhere Pierre Habouzit <madcoder@debian.org> said that...\n> Signed-off-by: Pierre Habouzit <madcoder@debian.org>\n> ---\n>  strbuf.c |    2 +-\n>  1 files changed, 1 insertions(+), 1 deletions(-)\n> \n> diff --git a/strbuf.c b/strbuf.c\n> index 9d9d8be..c8174b4 100644\n> --- a/strbuf.c\n> +++ b/strbuf.c\n> @@ -13,7 +13,7 @@ static void strbuf_begin(struct strbuf *\n>  \tstrbuf_init(sb);\n>  }\n>  \n> -static void inline strbuf_add(struct strbuf *sb, int ch) {\n> +static inline void strbuf_add(struct strbuf *sb, int ch) {\n>  \tif (sb->alloc <= sb->len) {\n>  \t\tsb->alloc = sb->alloc * 3 / 2 + 16;\n>  \t\tsb->buf = xrealloc(sb->buf, sb->alloc);\n\nBogus, look at C99 A.2.2:\n\n   declaration-specifiers:\n   storage-class-specifier declaration-specifiers\n   type-specifier declaration-specifiers\n   type-qualifier declaration-specifiers\n   function-specifier declaration-specifiers\n\n-- \n\t\t\t\tPetr \"Pasky\" Baudis\nStuff: http://pasky.or.cz/\n#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj\n$/=unpack('H*',$_);$_=`echo 16dio\\U$k\"SK$/SM$n\\EsN0p[lN*1\nlK[d2%Sa2/d0$^Ixp\"|dc`;s/\\W//g;$_=pack('H*',/((..)*)$/)\n"}]}