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:
parent
187e4743e7
commit
0fb49fc8d2
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user