basho/erlang_protobuffs — pull request #14 by seancribbs (2012-05-29 15:26:37+00:00)
Title: Guard each record against multiple definitions.

This helps in the case where an "import" directive is used in the .proto file and source files include both the parent and the child headers, or include multiple headers that import the same parent.

NOTE: This is a reapplication of the commit from #12 and supersedes it. It has been rebased atop the upstream changes that were merged into master.

There are minor whitespace changes to the changed function.