Permalink
Browse files

Small script to determine completeness of NIF API

(currently at 71/108 API functions)
  • Loading branch information...
krestenkrab committed Sep 16, 2013
1 parent 362f3f9 commit c2587faeafaa6309e269886f4ec995a580be17d6
Showing with 11 additions and 0 deletions.
  1. +11 −0 jnif/whats_missing.sh
View
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+egrep ^ERL_NIF_API_FUNC_DECL ../x86_64-apple-darwin12.4.0//usr/include/erl_nif_api_funcs.h | perl -pe 's/ +//g' | awk -F, '{print "_" $2 }' > needed
+nm libjnif.jnilib | grep ' T _enif_' | awk '{ print $3 }' > defined
+
+cat needed defined | sort | uniq -c | sort -n | grep ' 1 ' > missing
+
+wc -l needed
+wc -l defined
+wc -l missing
+

0 comments on commit c2587fa

Please sign in to comment.