Bug=74742

author=ashuk
ra=idk

This patch allows BlackConnect to build with Forte Compilers. It
fixes some syntactical errors in the xpidl_idl.c and xpidl_java.c
files where C++ style syntax was being used in a C file and some
implicit illegal typecasts were being made.

_Ashu


git-svn-id: svn://10.0.0.236/trunk@92437 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ashuk%eng.sun.com 2001-04-16 21:11:08 +00:00
parent 187e4743e7
commit 0fb49fc8d2
2 changed files with 4 additions and 4 deletions

View File

@ -665,7 +665,7 @@ xpidl_process_idl(char *filename, IncludePathEntry *include_path,
state.dispatch = emitter->dispatch_table;
if (strcmp(outname, "-")) {
// don't open file if the mode is "java"
/* don't open file if the mode is "java" */
if (strcmp(mode->mode, "java")) {
const char *fopen_mode;
mode_outname = g_strdup_printf("%s.%s", outname, mode->suffix);

View File

@ -428,7 +428,7 @@ xpcom_to_java_type (TreeState *state)
state->tree = orig_tree;
}
else {
fputs(subscriptIdentifier(state, ident_str), FILENAME(state));
fputs(subscriptIdentifier(state, (char*) ident_str), FILENAME(state));
}
}
}
@ -730,7 +730,7 @@ constant_declaration(TreeState *state)
fprintf(FILENAME(state), " public static final %s %s = %d;\n",
(isshort ? "short" : "int"),
subscriptIdentifier(state, name),
subscriptIdentifier(state, (char*) name),
(int) IDL_INTEGER(declaration->const_exp).value);
} else {
XPIDL_WARNING((state->tree, IDL_WARNING1,
@ -852,7 +852,7 @@ enum_declaration(TreeState *state)
static gboolean
module_declaration(TreeState *state)
{
// do not use modules yet
/* do not use modules yet */
#if 0
IDL_tree scope =
IDL_tree_get_scope(state->tree);