commit 2417a47ed2e647ac5ad4d9b475b6cb54d2ab9a3c
parent f1abc045165d594a775fbf932c87a888ecbaa95f
Author: Tomas Hlavaty <tom@logand.com>
Date: Sun, 18 Mar 2012 12:06:37 +0100
remove inline declarations, compiler is clever enough
Diffstat:
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/javasplit.c b/javasplit.c
@@ -25,15 +25,15 @@ enum {
BLEN = 10240
};
-static inline void write_char(char x) {
+static void write_char(char x) {
write(1, &x, sizeof(char));
}
-static inline void write_string(char *x) {
+static void write_string(char *x) {
write(1, x, strlen(x));
}
-static inline void panic(int code, char *msg) {
+static void panic(int code, char *msg) {
write(1, msg, strlen(msg));
exit(code);
}
diff --git a/unoidl2java.c b/unoidl2java.c
@@ -41,9 +41,9 @@ static int template = 0;
static int use_XInterface = 0;
static int seq0 = 0;
-static inline void pr(char *x) {printf("%s", x);}
-static inline void pl(char *x) {printf("%s\n", x);}
-static inline void pi(int x) {printf("%d", x);}
+static void pr(char *x) {printf("%s", x);}
+static void pl(char *x) {printf("%s\n", x);}
+static void pi(int x) {printf("%d", x);}
static void pp(Any x);