/src/tools/wrappers-generator/c_function_argument.e

http://github.com/tybor/Liberty · Specman e · 49 lines · 24 code · 8 blank · 17 comment · 0 complexity · de152055d75f9577984e225a54d3ed4e MD5 · raw file

  1. deferred class C_FUNCTION_ARGUMENT
  2. -- An XML node of a file made by gccxml representing a piece of the
  3. -- argument lt of a C function, either an actual argument or an ellips
  4. -- ("...")
  5. inherit
  6. GCCXML_NODE
  7. insert
  8. SHARED_COLLECTIONS
  9. EXCEPTIONS
  10. feature {ANY}
  11. is_ellipsis: BOOLEAN
  12. -- Does Current argument make its function a variadic one?
  13. deferred
  14. end
  15. has_wrapper: BOOLEAN
  16. deferred
  17. end
  18. put_on (a_buffer: FORMATTER)
  19. -- Put an Eiffel representation on Current argument on `a_buffer'.
  20. require
  21. a_buffer /= Void
  22. deferred
  23. end
  24. pos: INTEGER
  25. -- the position of Current argument in its function. Used to provide stable names to arguments of function defined with nameless prototypes
  26. set_pos (a_pos: INTEGER)
  27. do
  28. pos := a_pos
  29. end
  30. end -- class C_FUNCTION_ARGUMENT
  31. -- Copyright (C) 2008-2017: ,2009,2010 Paolo Redaelli
  32. -- wrappers-generator is free software: you can redistribute it and/or modify it
  33. -- under the terms of the GNU General Public License as publhed by the Free
  34. -- Software Foundation, either version 2 of the License, or (at your option)
  35. -- any later version.
  36. -- wrappers-generator is distributed in the hope that it will be useful, but
  37. -- WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  38. -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  39. -- more details.
  40. -- You should have received a copy of the GNU General Public License along with
  41. -- th program. If not, see <http://www.gnu.org/licenses/>.