x/xcbproto2go.rb
# generates a field line for go from field element.
generates a field line for go from field element.
generates a field line for go from field element .
def make_field(el)
  name = get_name(el)
  type = get_type(el)
  comm = ""
  enum =  get_attr(el, "enum")
  comm = "  // Use constants starting with #{enum}" if enum 
  return "  #{name.ljust(PAD)}  #{type}#{comm}"
end
def make_field ( el ) name = get_name ( el ) type = get_type ( el ) comm = "" enum = get_attr ( el , "enum" ) comm = "  // Use constants starting with #{enum}" if enum return "  #{name.ljust(PAD)}  #{type}#{comm}" end
generates a field line for go from field element.
generates a field line for go from field element .
el
<not_specific>