projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[sgen] Binary protocol for every write barrier, not just the generic store one.
[mono.git]
/
mono
/
metadata
/
monosn.c
diff --git
a/mono/metadata/monosn.c
b/mono/metadata/monosn.c
index 936b98e5f5d6d22dabff9de5ca40b5cc49408e2e..c9114c4744a45d4947cefa9b2f7393611e4d5df5 100644
(file)
--- a/
mono/metadata/monosn.c
+++ b/
mono/metadata/monosn.c
@@
-4,7
+4,8
@@
* Author:
* Paolo Molaro (lupus@ximian.com)
*
* Author:
* Paolo Molaro (lupus@ximian.com)
*
- * (C) 2002 Ximian, Inc.
+ * Copyright 2002-2003 Ximian, Inc (http://www.ximian.com)
+ * Copyright 2004-2009 Novell, Inc (http://www.novell.com)
*
*/
#include <mono/metadata/class.h>
*
*/
#include <mono/metadata/class.h>
@@
-68,6
+69,12
@@
show_token (const char *file, int is_assembly, int show_pubkey) {
MonoImage *image;
const char *pubkey;
guint32 len;
MonoImage *image;
const char *pubkey;
guint32 len;
+
+ mono_metadata_init ();
+ mono_images_init ();
+ mono_assemblies_init ();
+ mono_loader_init ();
+
image = mono_image_open (file, NULL);
if (!image) {
printf ("Cannot open image file: %s\n", file);
image = mono_image_open (file, NULL);
if (!image) {
printf ("Cannot open image file: %s\n", file);
@@
-75,7
+82,7
@@
show_token (const char *file, int is_assembly, int show_pubkey) {
}
pubkey = mono_image_get_public_key (image, &len);
if (!pubkey) {
}
pubkey = mono_image_get_public_key (image, &len);
if (!pubkey) {
- printf ("%s does not represent a strongly named assembly\n",
image->name
);
+ printf ("%s does not represent a strongly named assembly\n",
mono_image_get_name(image)
);
mono_image_close (image);
return 2;
}
mono_image_close (image);
return 2;
}
@@
-108,7
+115,7
@@
extract_data_to_file (int pubk, const char *assembly, const char *outfile) {
else
pubkey = mono_image_get_strong_name (image, &len);
if (!pubkey) {
else
pubkey = mono_image_get_strong_name (image, &len);
if (!pubkey) {
- printf ("%s does not represent a strongly named assembly\n",
image->name
);
+ printf ("%s does not represent a strongly named assembly\n",
mono_image_get_name(image)
);
mono_image_close (image);
return 2;
}
mono_image_close (image);
return 2;
}