{"thread":{"id":"24002","subject":"[PATCH] Change C99 comments to old-style C comments","startedAt":"2010-06-04T09:32:11Z","lastAt":"2010-06-04T14:44:43Z","messageCount":2,"participants":["Tor Arntsen","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"142956","messageId":"4C08C81B.3000404@spacetec.no","threadId":"24002","inReplyTo":null,"subject":"[PATCH] Change C99 comments to old-style C comments","fromName":"Tor Arntsen","fromEmail":"tor@spacetec.no","sentAt":"2010-06-04T09:32:11Z","receivedAt":"2010-06-04T09:32:11Z","isPatch":true,"sender":{"key":"tor@spacetec.no","avatar":null},"body":"Signed-off-by: Tor Arntsen <tor@spacetec.no>\n---\nAIX 5.1 compiler 5.0 chokes on C99 comments.\nDiff is against master.\n\n builtin/blame.c        |    2 +-\n builtin/for-each-ref.c |    4 ++--\n remote.c               |    2 +-\n 3 files changed, 4 insertions(+), 4 deletions(-)\n\ndiff --git a/builtin/blame.c b/builtin/blame.c\nindex fc15863..4dd4c3f 100644\n--- a/builtin/blame.c\n+++ b/builtin/blame.c\n@@ -1589,7 +1589,7 @@ static void emit_porcelain(struct scoreboard *sb, struct blame_entry *ent)\n \tstrcpy(hex, sha1_to_hex(suspect->commit->object.sha1));\n \tprintf(\"%s%c%d %d %d\\n\",\n \t       hex,\n-\t       ent->guilty ? ' ' : '*', // purely for debugging\n+\t       ent->guilty ? ' ' : '*', /* purely for debugging */\n \t       ent->s_lno + 1,\n \t       ent->lno + 1,\n \t       ent->num_lines);\ndiff --git a/builtin/for-each-ref.c b/builtin/for-each-ref.c\nindex 3a97953..a2b28c6 100644\n--- a/builtin/for-each-ref.c\n+++ b/builtin/for-each-ref.c\n@@ -552,10 +552,10 @@ static void grab_values(struct atom_value *val, int deref, struct object *obj, v\n \t\tgrab_person(\"committer\", val, deref, obj, buf, sz);\n \t\tbreak;\n \tcase OBJ_TREE:\n-\t\t// grab_tree_values(val, deref, obj, buf, sz);\n+\t\t/* grab_tree_values(val, deref, obj, buf, sz); */\n \t\tbreak;\n \tcase OBJ_BLOB:\n-\t\t// grab_blob_values(val, deref, obj, buf, sz);\n+\t\t/* grab_blob_values(val, deref, obj, buf, sz); */\n \t\tbreak;\n \tdefault:\n \t\tdie(\"Eh?  Object of type %d?\", obj->type);\ndiff --git a/remote.c b/remote.c\nindex 0f073e0..ea2323b 100644\n--- a/remote.c\n+++ b/remote.c\n@@ -478,7 +478,7 @@ static void read_config(void)\n \tunsigned char sha1[20];\n \tconst char *head_ref;\n \tint flag;\n-\tif (default_remote_name) // did this already\n+\tif (default_remote_name) /* did this already */\n \t\treturn;\n \tdefault_remote_name = xstrdup(\"origin\");\n \tcurrent_branch = NULL;\n-- \n1.7.1\n"},{"id":"142986","messageId":"7vy6eu502s.fsf@alter.siamese.dyndns.org","threadId":"24002","inReplyTo":"4C08C81B.3000404@spacetec.no","subject":"Re: [PATCH] Change C99 comments to old-style C comments","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2010-06-04T14:44:43Z","receivedAt":"2010-06-04T14:44:43Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Thanks.\n"}]}