Skip to content

Add type specifications for dialyzer#7

Open
yjh0502 wants to merge 2 commits into
freza:masterfrom
yjh0502:typespec
Open

Add type specifications for dialyzer#7
yjh0502 wants to merge 2 commits into
freza:masterfrom
yjh0502:typespec

Conversation

@yjh0502

@yjh0502 yjh0502 commented Dec 25, 2013

Copy link
Copy Markdown

I added typespecs to supress unnessasary dialyzer warnings (no returns).

  • Typespecs are added
  • error() is replaced by erlang:nif_error(),

In addition, I wraped some arguments with list to ensure types. For example, salt_nif:salt_sign() function parses first arguments as a iolist (via enif_inspect_iolist_as_binary() c api). Erlang iolist() does not include raw buffers, so I wrapped it with list.

yjh0502 referenced this pull request in yjh0502/salt Aug 9, 2016
@jedisct1

jedisct1 commented Aug 9, 2016

Copy link
Copy Markdown

@freza Are you still maintaining this project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants