/src/wrappers/readline/library/history_entry.e

http://github.com/tybor/Liberty · Specman e · 49 lines · 22 code · 8 blank · 19 comment · 1 complexity · 8320821ca5b8ef959836201deab099a3 MD5 · raw file

  1. class HISTORY_ENTRY
  2. -- An entry of the history of read line library.
  3. inherit
  4. C_STRUCT
  5. C_OWNED
  6. insert
  7. HIST_ENTRY_STRUCT
  8. create {READ_LINE_HISTORY} from_external_pointer
  9. feature {ANY}
  10. line: FIXED_STRING
  11. do
  12. create Result.from_external(hist_entry_struct_get_line(handle))
  13. ensure not_void: Result/=Void
  14. end
  15. timestamp: STRING
  16. local p: POINTER
  17. do
  18. p := hist_entry_struct_get_timestamp(handle)
  19. if p.is_not_null then
  20. create Result.from_external(p)
  21. end
  22. end
  23. -- -- Function: time_t history_get_time (HIST_ENTRY *entry)
  24. -- Return the time stamp associated with the history entry ENTRY.
  25. end
  26. -- Liberty Eiffel wrappers for GNU readline library Copyright (C) 2010-2017: Paolo Redaelli, Cyril Adrian
  27. --
  28. -- The GNU C Library is free software; you can redistribute it and/or
  29. -- modify it under the terms of the GNU Lesser General Public
  30. -- License as published by the Free Software Foundation; either
  31. -- version 2.1 of the License, or (at your option) any later version.
  32. --
  33. -- The GNU C Library is distributed in the hope that it will be useful,
  34. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
  35. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  36. -- Lesser General Public License for more details.
  37. --
  38. -- You should have received a copy of the GNU Lesser General Public
  39. -- License along with the GNU C Library; if not, write to the Free
  40. -- Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  41. -- 02110-1301 USA