Skip to content

Commit

Permalink
[enhance] plugins: convert iconv to new syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
arthuraa committed Aug 20, 2012
1 parent ed3d3f5 commit cc2c52a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/plugins/_tags
Expand Up @@ -5,8 +5,8 @@
<crypto>: traverse
<gcharts>: traverse
<hlnet>: traverse
<iconv>: traverse, classic_syntax
<irc>: traverse, classic_syntax
<iconv>: traverse
<irc>: traverse
<mail>: traverse, classic_syntax
<mongo>: traverse, classic_syntax
<opabsl>: traverse, static, classic_syntax
Expand Down
12 changes: 8 additions & 4 deletions lib/plugins/iconv/bslIconv.nodejs
Expand Up @@ -36,12 +36,16 @@ function iconv_not_available() {
"It is probably not available in your platform");
}

##extern-type Iconv.t
##extern-type binary
/** @externType Iconv.t */
/** @externType binary */

##register iconv_open \ `iconv_open` : string, string -> Iconv.t
/**
* @register {string, string -> Iconv.t} iconv_open iconv_open
*/

##register iconv \ `iconv` : Iconv.t, binary -> opa[option(binary)]
/**
* @register {Iconv.t, binary -> opa[option(binary)]} iconv iconv
*/

try {
iconv_mod = require('iconv');
Expand Down

0 comments on commit cc2c52a

Please sign in to comment.