[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] pnet/ilsize ilsize.c,1.7,1.8
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] pnet/ilsize ilsize.c,1.7,1.8 |
Date: |
Sun, 09 Nov 2003 22:20:58 +0000 |
Update of /cvsroot/dotgnu-pnet/pnet/ilsize
In directory subversions:/tmp/cvs-serv32702/ilsize
Modified Files:
ilsize.c
Log Message:
Dump the assembly version in the detailed output mode of "ilsize".
Index: ilsize.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/ilsize/ilsize.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** ilsize.c 18 Apr 2003 09:44:37 -0000 1.7
--- ilsize.c 9 Nov 2003 22:20:56 -0000 1.8
***************
*** 349,352 ****
--- 349,363 ----
/*
+ * Print an assembly's version.
+ */
+ static void printVersion(const ILUInt16 *version)
+ {
+ char buffer[64];
+ sprintf(buffer, "%d.%d.%d.%d", (int)(version[0]), (int)(version[1]),
+ (int)(version[2]), (int)(version[3]));
+ printf("version %20s\n", buffer);
+ }
+
+ /*
* Token tables and their names.
*/
***************
*** 422,425 ****
--- 433,438 ----
/* Print the general information on the file */
printf("%s :\n", filename);
+ printVersion(ILAssemblyGetVersion((ILAssembly *)
+ ILImageTokenInfo(image,
IL_META_TOKEN_ASSEMBLY | 1)));
print("code", radix, code);
print("meta", radix, meta);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] pnet/ilsize ilsize.c,1.7,1.8,
Rhys Weatherley <address@hidden> <=