From 45c2ae4f2359a7efd281c07abae16b54998a7f6b Mon Sep 17 00:00:00 2001 From: "alecf%netscape.com" Date: Thu, 21 Jan 1999 18:59:52 +0000 Subject: [PATCH] changes to make XPIDL compiler work under Windows --- xpcom/tools/xpidl/xpidl.h | 3 +++ xpcom/tools/xpidl/xpidl_idl.c | 3 ++- xpcom/typelib/xpidl/xpidl.h | 3 +++ xpcom/typelib/xpidl/xpidl_idl.c | 3 ++- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/xpcom/tools/xpidl/xpidl.h b/xpcom/tools/xpidl/xpidl.h index de5710683d9a..af3c1d2795fa 100644 --- a/xpcom/tools/xpidl/xpidl.h +++ b/xpcom/tools/xpidl/xpidl.h @@ -104,4 +104,7 @@ xpidl_list_foreach(IDL_tree p, IDL_tree_func foreach, gpointer user_data); void XPIDL_add_output_file(char *fn); void XPIDL_cleanup_on_error(); +gboolean process_node(TreeState *state); + + #endif /* __xpidl_h */ diff --git a/xpcom/tools/xpidl/xpidl_idl.c b/xpcom/tools/xpidl/xpidl_idl.c index 5423b5211f51..ab3ea5e757fa 100644 --- a/xpcom/tools/xpidl/xpidl_idl.c +++ b/xpcom/tools/xpidl/xpidl_idl.c @@ -147,7 +147,8 @@ fopen_from_includes(const char *filename, const char *mode, char *filebuf = NULL; FILE *file = NULL; for (; include_path && !file; include_path = include_path->next) { - filebuf = g_strdup_printf("%s/%s", include_path->directory, filename); + filebuf = g_strdup_printf("%s" G_DIR_SEPARATOR_S "%s", + include_path->directory, filename); if (!filebuf) return NULL; #ifdef DEBUG_shaver_bufmgmt diff --git a/xpcom/typelib/xpidl/xpidl.h b/xpcom/typelib/xpidl/xpidl.h index de5710683d9a..af3c1d2795fa 100644 --- a/xpcom/typelib/xpidl/xpidl.h +++ b/xpcom/typelib/xpidl/xpidl.h @@ -104,4 +104,7 @@ xpidl_list_foreach(IDL_tree p, IDL_tree_func foreach, gpointer user_data); void XPIDL_add_output_file(char *fn); void XPIDL_cleanup_on_error(); +gboolean process_node(TreeState *state); + + #endif /* __xpidl_h */ diff --git a/xpcom/typelib/xpidl/xpidl_idl.c b/xpcom/typelib/xpidl/xpidl_idl.c index 5423b5211f51..ab3ea5e757fa 100644 --- a/xpcom/typelib/xpidl/xpidl_idl.c +++ b/xpcom/typelib/xpidl/xpidl_idl.c @@ -147,7 +147,8 @@ fopen_from_includes(const char *filename, const char *mode, char *filebuf = NULL; FILE *file = NULL; for (; include_path && !file; include_path = include_path->next) { - filebuf = g_strdup_printf("%s/%s", include_path->directory, filename); + filebuf = g_strdup_printf("%s" G_DIR_SEPARATOR_S "%s", + include_path->directory, filename); if (!filebuf) return NULL; #ifdef DEBUG_shaver_bufmgmt