projects
/
cacao.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d5a6b31
)
* src/cacao/cacao.c (main): Added main utf variable for better
author
twisti
<none@none>
Tue, 21 Feb 2006 13:39:51 +0000
(13:39 +0000)
committer
twisti
<none@none>
Tue, 21 Feb 2006 13:39:51 +0000
(13:39 +0000)
debugability.
src/cacao/cacao.c
patch
|
blob
|
history
diff --git
a/src/cacao/cacao.c
b/src/cacao/cacao.c
index 4fc4e7571c85fc9b415bd11a3182145622016b09..01a3c40f5da90d8dc2ba2ee5b2bcca22ea165719 100644
(file)
--- a/
src/cacao/cacao.c
+++ b/
src/cacao/cacao.c
@@
-31,7
+31,7
@@
Philipp Tomsich
Christian Thalinger
Philipp Tomsich
Christian Thalinger
- $Id: cacao.c 45
30 2006-02-21 09:11:53
Z twisti $
+ $Id: cacao.c 45
42 2006-02-21 13:39:51
Z twisti $
*/
*/
@@
-304,6
+304,7
@@
int main(int argc, char **argv)
/* start worker routines **************************************************/
if (opt_run == true) {
/* start worker routines **************************************************/
if (opt_run == true) {
+ utf *mainutf;
classinfo *mainclass;
methodinfo *m;
java_objectarray *oa;
classinfo *mainclass;
methodinfo *m;
java_objectarray *oa;
@@
-322,7
+323,9
@@
int main(int argc, char **argv)
/* load the main class */
/* load the main class */
- if (!(mainclass = load_class_from_sysloader(utf_new_char(mainstring))))
+ mainutf = utf_new_char(mainstring);
+
+ if (!(mainclass = load_class_from_sysloader(mainutf)))
throw_main_exception_exit();
/* error loading class, clear exceptionptr for new exception */
throw_main_exception_exit();
/* error loading class, clear exceptionptr for new exception */