]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/trace/lib_tracemse.c
ncurses 5.7 - patch 20090822
[ncurses.git] / ncurses / trace / lib_tracemse.c
index 5edcc13a6ffae5a4b39087ec62f975c2b6ea3ec4..cf7539e80135047edcb6c6abfac45625e3c6a2ab 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.16 2008/11/16 00:19:59 juergen 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(CURRENT_SCREEN, ep);
+}
+
 #else /* !TRACE */
-empty_module(_nc_lib_tracemouse)
+EMPTY_MODULE(_nc_lib_tracemouse)
 #endif