[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[mig] 09/15: Drop the auto keyword
From: |
Samuel Thibault |
Subject: |
[mig] 09/15: Drop the auto keyword |
Date: |
Sat, 28 Sep 2013 12:42:31 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch master
in repository mig.
commit b53836447df7230cd5665a7ccabd2a6e1a6607e5
Author: Justus Winter <address@hidden>
Date: Wed Sep 4 17:18:41 2013 +0200
Drop the auto keyword
Drop the auto keyword from the generated source code. auto is the
default storage type for variables anyway and it is customary to omit
it.
* utils.c (WriteCheckDecl): Drop auto from generated source.
(WriteStaticLongDecl): Likewise.
(WriteStaticShortDecl): Likewise.
---
utils.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/utils.c b/utils.c
index 4feb874..6c42bc3 100644
--- a/utils.c
+++ b/utils.c
@@ -181,7 +181,7 @@ WriteCheckDecl(FILE *file, const argument_t *arg)
Note we use itOutNameStr instead of itInNameStr, because
this declaration will be used to check received types. */
- fprintf(file, "\tauto const mach_msg_type_t %sCheck = {\n",
+ fprintf(file, "\tconst mach_msg_type_t %sCheck = {\n",
arg->argVarName);
fprintf(file, "\t\t/* msgt_name = */\t\t%s,\n", it->itOutNameStr);
fprintf(file, "\t\t/* msgt_size = */\t\t%d,\n", it->itSize);
@@ -261,7 +261,7 @@ static void
WriteStaticLongDecl(FILE *file, const ipc_type_t *it,
dealloc_t dealloc, boolean_t inname, identifier_t name)
{
- fprintf(file, "\tauto const mach_msg_type_long_t %s = {\n", name);
+ fprintf(file, "\tconst mach_msg_type_long_t %s = {\n", name);
fprintf(file, "\t{\n");
fprintf(file, "\t\t/* msgt_name = */\t\t0,\n");
fprintf(file, "\t\t/* msgt_size = */\t\t0,\n");
@@ -284,7 +284,7 @@ static void
WriteStaticShortDecl(FILE *file, const ipc_type_t *it,
dealloc_t dealloc, boolean_t inname, identifier_t name)
{
- fprintf(file, "\tauto const mach_msg_type_t %s = {\n", name);
+ fprintf(file, "\tconst mach_msg_type_t %s = {\n", name);
fprintf(file, "\t\t/* msgt_name = */\t\t%s,\n",
inname ? it->itInNameStr : it->itOutNameStr);
fprintf(file, "\t\t/* msgt_size = */\t\t%d,\n", it->itSize);
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/mig.git
- [mig] branch master updated (a4dda67 -> b9a5330), Samuel Thibault, 2013/09/28
- [mig] 02/15: Fix format string build failure with _FORTIFY_SOURCE=2, Samuel Thibault, 2013/09/28
- [mig] 08/15: Drop alloca.c, Samuel Thibault, 2013/09/28
- [mig] 11/15: GNU MIG 1.4., Samuel Thibault, 2013/09/28
- [mig] 10/15: Generate ChangeLog files for distributions., Samuel Thibault, 2013/09/28
- [mig] 13/15: Merge branch 'upstream', Samuel Thibault, 2013/09/28
- [mig] 09/15: Drop the auto keyword,
Samuel Thibault <=
- [mig] 14/15: New upstream snapshot, Samuel Thibault, 2013/09/28
- [mig] 03/15: Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/mig, Samuel Thibault, 2013/09/28
- [mig] 06/15: Remove unused file alloc.h, Samuel Thibault, 2013/09/28
- [mig] 04/15: Merge remote-tracking branch 'savannah/master', Samuel Thibault, 2013/09/28
- [mig] 15/15: Revert "Stop installing the upstream ChangeLog", Samuel Thibault, 2013/09/28
- [mig] 07/15: Drop the register keyword, Samuel Thibault, 2013/09/28
- [mig] 05/15: Fix spurious deallocation, Samuel Thibault, 2013/09/28
- [mig] 01/15: Make the installation tree relocatable., Samuel Thibault, 2013/09/28
- [mig] 12/15: Imported Upstream version 1.4, Samuel Thibault, 2013/09/28