VG_(details_copyright_author)(
"Copyright (C) 2002, and GNU GPL'd, by Nicholas Nethercote.");
VG_(details_bug_reports_to) ("njn25@cam.ac.uk");
- VG_(details_avg_translation_sizeB) ( 100 );
VG_(needs_core_errors)();
Char* description;
Char* copyright_author;
Char* bug_reports_to;
- Int avg_translation_sizeB;
+ UInt avg_translation_sizeB;
}
VgDetails;
.description = NULL,
.copyright_author = NULL,
.bug_reports_to = NULL,
- .avg_translation_sizeB = 0
+ .avg_translation_sizeB = VG_DEFAULT_TRANS_SIZEB,
};
VgNeeds VG_(needs) = {
if ((var)==(value)) { \
VG_(printf)("\nSkin error: `%s' not initialised\n", \
VG__STRING(var)); \
- VG_(skin_panic)("Uninitialised needs field\n"); \
+ VG_(skin_panic)("Uninitialised details field\n"); \
}
+ /* Ones that must be set */
CHECK_NOT(VG_(details).name, NULL);
/* Nb: .version can be NULL */
CHECK_NOT(VG_(details).description, NULL);
CHECK_NOT(VG_(details).copyright_author, NULL);
CHECK_NOT(VG_(details).bug_reports_to, NULL);
- CHECK_NOT(VG_(details).avg_translation_sizeB, 0);
#undef CHECK_NOT
#undef INVALID_Bool
DETAILS(Char*, description)
DETAILS(Char*, copyright_author)
DETAILS(Char*, bug_reports_to)
-DETAILS(Int, avg_translation_sizeB)
+DETAILS(UInt, avg_translation_sizeB)
/*--------------------------------------------------------------------*/
/* Setting needs */
"Copyright (C) 2002, and put in the public domain, by Santa Claus.");
VG_(details_bug_reports_to) ("santa.claus@northpole.org");
- /* Adjust this to be closer to reality once you have your skin
- working. */
- VG_(details_avg_translation_sizeB) ( 100 );
-
/* No needs, no core events to track */
}
/* ------------------------------------------------------------------ */
/* Details */
+/* Default value for avg_translations_sizeB (in bytes), indicating typical
+ code expansion of about 6:1. */
+#define VG_DEFAULT_TRANS_SIZEB 100
+
/* Information used in the startup message. `name' also determines the
string used for identifying suppressions in a suppression file as
belonging to this skin. `version' can be NULL, in which case (not
extern void VG_(details_copyright_author) ( Char* copyright_author );
/* Average size of a translation, in bytes, so that the translation
- storage machinery can allocate memory appropriately. Not critical.
- If you're unsure, set to 100 (indicating typical code expansion of
- about 6:1). */
-extern void VG_(details_avg_translation_sizeB) ( Int );
+ storage machinery can allocate memory appropriately. Not critical,
+ setting is optional. */
+extern void VG_(details_avg_translation_sizeB) ( UInt size );
/* String printed if an `sk_assert' assertion fails or VG_(skin_panic)
is called. Should probably be an email address. */
VG_(details_copyright_author)(
"Copyright (C) 2002, and GNU GPL'd, by Nicholas Nethercote.");
VG_(details_bug_reports_to) ("njn25@cam.ac.uk");
- VG_(details_avg_translation_sizeB) ( 100 );
/* No needs, no core events to track */
}