]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Make some changes to Nulgrind -- it looks like Jeremy made some changes to it
authorNicholas Nethercote <n.nethercote@gmail.com>
Mon, 23 Aug 2004 14:10:36 +0000 (14:10 +0000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Mon, 23 Aug 2004 14:10:36 +0000 (14:10 +0000)
as part of FV, but then later these changes become unnecessary.  Anyway, it now
looks more like the other tools again.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2598

none/nl_main.c

index 5cb5e5681015ae062b3b814b320de933ce6f5a9a..a784960b67c3176c03c908bf6b6bcefe3e71a7bc 100644 (file)
 
 #include "vg_skin.h"
 
-//float SK_(shadow_ratio) = 9. / 8.;
-
-static void post_clo_init(void)
-{
-}
-
-static UCodeBlock* instrument(UCodeBlock* cb, Addr a)
-{
-    return cb;
-}
-
-static void fini(Int exitcode)
-{
-}
-
-static void pre_clo_init(void)
+void SK_(pre_clo_init)(void)
 {
    VG_(details_name)            ("Nulgrind");
    VG_(details_version)         (NULL);
@@ -55,15 +40,23 @@ static void pre_clo_init(void)
    VG_(details_bug_reports_to)  (VG_BUGS_TO);
 
    /* No needs, no core events to track */
+}
+
+void SK_(post_clo_init)(void)
+{
+}
 
-   /* entrypoints */
-   VG_(init_post_clo_init)(post_clo_init);
-   VG_(init_instrument)(instrument);
-   VG_(init_fini)(fini);
+UCodeBlock* SK_(instrument)(UCodeBlock* cb, Addr a)
+{
+    return cb;
+}
+
+void SK_(fini)(Int exitcode)
+{
 }
 
-VG_DETERMINE_INTERFACE_VERSION(pre_clo_init, 0)
+VG_DETERMINE_INTERFACE_VERSION(SK_(pre_clo_init), 0)
 
 /*--------------------------------------------------------------------*/
-/*--- end                                                nl_main.c ---*/
+/*--- end                                                          ---*/
 /*--------------------------------------------------------------------*/