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