x/xcbproto2go.rb
# generates a field line for go from a list element.
generates a field line for go from a list element.
generates a field line for go from a list element .
def make_list(el)
  name    = get_name(el)
  type    = get_type(el)
  value   = get_value(el)
  if type=='char' 
    return "  #{name.ljust(PAD)}  STRING8"
  end
  return "  #{name.ljust(PAD-2)}  [#{value}]#{type}"
end
def make_list ( el ) name = get_name ( el ) type = get_type ( el ) value = get_value ( el ) if type == 'char' return "  #{name.ljust(PAD)}  STRING8" end return "  #{name.ljust(PAD-2)}  [#{value}]#{type}" end
generates a field line for go from a list element.
generates a field line for go from a list element .
# value   = get_attr(el, 'bytes') # list of char -> STRING8
el
<not_specific>