]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/trace/lib_tracemse.c
ncurses 5.6 - patch 20080531
[ncurses.git] / ncurses / trace / lib_tracemse.c
index 5edcc13a6ffae5a4b39087ec62f975c2b6ea3ec4..3b060894eba8d9681c5fd8c40a51b1576d975e0f 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright (c) 1998-2005,2007 Free Software Foundation, Inc.              *
+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
  *                                                                          *
  * Permission is hereby granted, free of charge, to any person obtaining a  *
  * copy of this software and associated documentation files (the            *
 
 #include <curses.priv.h>
 
-MODULE_ID("$Id: lib_tracemse.c,v 1.13 2007/04/21 21:23:00 tom Exp $")
+MODULE_ID("$Id: lib_tracemse.c,v 1.14 2008/05/31 17:20:25 tom Exp $")
 
 #ifdef TRACE
 
-#define my_buffer _nc_globals.tracemse_buf
+#define my_buffer sp->tracemse_buf
 
 NCURSES_EXPORT(char *)
-_tracemouse(MEVENT const *ep)
+_nc_tracemouse(SCREEN *sp, MEVENT const *ep)
 {
     (void) sprintf(my_buffer, TRACEMSE_FMT,
                   ep->id,
@@ -114,6 +114,12 @@ _tracemouse(MEVENT const *ep)
     return (my_buffer);
 }
 
+NCURSES_EXPORT(char *)
+_tracemouse(MEVENT const *ep)
+{
+    return _nc_tracemouse(SP, ep);
+}
+
 #else /* !TRACE */
 empty_module(_nc_lib_tracemouse)
 #endif