src/ipcc/ipcc.rb
# The "archetype" is a clever name for the declaration of the original method
# that the IPC mechanism is a wrapper for.
The "archetype" is a clever name for the declaration of the original method
that the IPC mechanism is a wrapper for.
The " archetype " is a clever name for the declaration of the original method that the IPC mechanism is a wrapper for .
def archetype
      tok = []
      tok << 'extern int ' + name
      tok << '(' + "\n"
      tok << [
        @returns.map { |ent| "#{ent.type} #{ent.name}" },
        @accepts.map { |ent| "#{ent.type} #{ent.name}" },
      ].flatten.map { |s| "\t" + s }.join(",\n")
      tok << "\n);"
      tok.join
    end
def archetype tok = [ ] tok << 'extern int ' + name tok << '(' + "\n" tok << [ @returns . map { | ent | "#{ent.type} #{ent.name}" } , @accepts . map { | ent | "#{ent.type} #{ent.name}" } , ] . flatten . map { | s | "\t" + s } . join ( ",\n" ) tok << "\n);" tok . join end
The "archetype" is a clever name for the declaration of the original method
that the IPC mechanism is a wrapper for.
The " archetype " is a clever name for the declaration of the original method that the IPC mechanism is a wrapper for .