]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - Ada95/src/terminal_interface-curses-trace.adb_p
ncurses 5.9 - patch 20110625
[ncurses.git] / Ada95 / src / terminal_interface-curses-trace.adb_p
index a61ef4d4a791b00272db11461da86230cc71d28e..d2117a4cef17dd375eee836e14c5d19e35c608a1 100644 (file)
@@ -7,7 +7,7 @@
 --                                 B O D Y                                  --
 --                                                                          --
 ------------------------------------------------------------------------------
--- Copyright (c) 2000 Free Software Foundation, Inc.                        --
+-- Copyright (c) 2000-2004,2009 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            --
@@ -34,9 +34,8 @@
 -- authorization.                                                           --
 ------------------------------------------------------------------------------
 --  Author:  Juergen Pfeifer, 1996
---  Contact: http://www.familiepfeifer.de/Contact.aspx?Lang=en
 --  Version Control:
---  $Revision: 1.3 $
+--  $Revision: 1.7 $
 --  Binding Version 01.00
 ------------------------------------------------------------------------------
 #if ADA_TRACE then
@@ -67,10 +66,10 @@ package body Terminal_Interface.Curses.Trace is
 
    procedure Trace_Put (str : String) is
       procedure tracef (format : char_array; s : char_array);
-      pragma Import (C, tracef, "_tracef");
+      pragma Import (C, tracef, "_traces");
       Txt    : char_array (0 .. str'Length);
       Length : size_t;
-      formatstr : constant String := "%s" &  ASCII.Nul;
+      formatstr : constant String := "%s" &  ASCII.NUL;
       formattxt : char_array (0 .. formatstr'Length);
    begin
       To_C (formatstr, formattxt, Length);
@@ -79,11 +78,17 @@ package body Terminal_Interface.Curses.Trace is
    end Trace_Put;
 #else
    procedure Trace_On (x : Trace_Attribute_Set) is
+#if PRAGMA_UNREF
+   pragma Unreferenced (x);
+#end if;
    begin
       null;
    end Trace_On;
 
    procedure Trace_Put (str : String) is
+#if PRAGMA_UNREF
+   pragma Unreferenced (str);
+#end if;
    begin
       null;
    end Trace_Put;