Re: [PATCH mig] Change x_server_routine functions to static inline for -std=gnu11

2015-06-05 Thread Samuel Thibault
Hello,

David Michael, le Sun 10 May 2015 22:30:04 -0400, a écrit :
 * header.c (WriteServerHeader): Replace extern with static.
 * server.c (WriteEpilog): Remove WriteSubsystemServerRoutine call.
 ---
  header.c | 2 +-
  server.c | 6 --
  2 files changed, 1 insertion(+), 7 deletions(-)

I have applied it, thanks.

Samuel



[PATCH mig] Change x_server_routine functions to static inline for -std=gnu11

2015-05-10 Thread David Michael
* header.c (WriteServerHeader): Replace extern with static.
* server.c (WriteEpilog): Remove WriteSubsystemServerRoutine call.
---
 header.c | 2 +-
 server.c | 6 --
 2 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/header.c b/header.c
index 23e5686..3af9746 100644
--- a/header.c
+++ b/header.c
@@ -178,7 +178,7 @@ WriteServerHeader(FILE *file, const statement_t *stats)
  * Include the x_server_routine function so it can be inlined.
  */
 fprintf(file, extern mig_routine_t %s_routines[];\n, ServerDemux);
-WriteSubsystemServerRoutine(file, extern inline);
+WriteSubsystemServerRoutine(file, static inline);
 
 WriteEpilog(file, protect);
 }
diff --git a/server.c b/server.c
index 15fc128..a08795b 100644
--- a/server.c
+++ b/server.c
@@ -216,12 +216,6 @@ WriteEpilog(FILE *file, const statement_t *stats)
 fprintf(file, }\n);
 fprintf(file, \n);
 
-/*
- * Then, the subsystem_server_routine routine
- */
-WriteSubsystemServerRoutine(file, mig_external);
-fprintf(file, \n);
-
 /* symtab */
 
 if (GenSymTab) {
-- 
2.1.0