Author: jgardou
Date: Thu Oct 16 09:23:33 2014
New Revision: 64760
URL:
http://svn.reactos.org/svn/reactos?rev=64760&view=rev
Log:
[SPEC2DEF]
- Fix typo: PRix64 --> PRIx64
- Use GUID to trace 'int128' arguments, as that's what they almost always
are.
Modified:
trunk/reactos/tools/spec2def/spec2def.c
Modified: trunk/reactos/tools/spec2def/spec2def.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/spec2def/spec2def.c?…
==============================================================================
--- trunk/reactos/tools/spec2def/spec2def.c [iso-8859-1] (original)
+++ trunk/reactos/tools/spec2def/spec2def.c [iso-8859-1] Thu Oct 16 09:23:33 2014
@@ -250,7 +250,8 @@
case ARG_WSTR: fprintf(file, "wchar_t*"); break;
case ARG_DBL: fprintf(file, "double"); break;
case ARG_INT64 : fprintf(file, "__int64"); break;
- case ARG_INT128 : fprintf(file, "__int128"); break;
+ /* __int128 is not supported on x86, and int128 in spec files most often
represents a GUID */
+ case ARG_INT128 : fprintf(file, "GUID"); break;
case ARG_FLOAT: fprintf(file, "float"); break;
}
fprintf(file, " a%d", i);
@@ -296,8 +297,8 @@
case ARG_STR: fprintf(file, "'%%s'"); break;
case ARG_WSTR: fprintf(file, "'%%ws'"); break;
case ARG_DBL: fprintf(file, "%%f"); break;
- case ARG_INT64: fprintf(file, "%%\"PRix64\""); break;
- case ARG_INT128: fprintf(file, "%%\"PRix128\""); break;
+ case ARG_INT64: fprintf(file, "%%\"PRIx64\""); break;
+ case ARG_INT128: fprintf(file, "'%%s'"); break;
case ARG_FLOAT: fprintf(file, "%%f"); break;
}
}
@@ -314,7 +315,7 @@
case ARG_WSTR: fprintf(file, "(wchar_t*)a%d", i); break;
case ARG_DBL: fprintf(file, "(double)a%d", i); break;
case ARG_INT64: fprintf(file, "(__int64)a%d", i); break;
- case ARG_INT128: fprintf(file, "(__int128)a%d", i); break;
+ case ARG_INT128: fprintf(file, "wine_dbgstr_guid(&a%d)", i);
break;
case ARG_FLOAT: fprintf(file, "(float)a%d", i); break;
}
}