Skip to content

Commit

Permalink
Implemented functions & added crypto hash functions, min/max/length/s…
Browse files Browse the repository at this point in the history
…ubstr/rand
  • Loading branch information
arut committed Dec 13, 2011
1 parent d5e92c7 commit 9b6d87e
Show file tree
Hide file tree
Showing 6 changed files with 434 additions and 158 deletions.
2 changes: 2 additions & 0 deletions config
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ NGX_ADDON_SRCS="$NGX_ADDON_SRCS \
$ngx_addon_dir/ngx_http_let_module.c \
$ngx_addon_dir/let.tab.c"

CORE_LIBS="$CORE_LIBS -lcrypto"

5 changes: 3 additions & 2 deletions let.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,20 @@
#define NGX_LTYPE_VARIABLE 1
#define NGX_LTYPE_LITERAL 2
#define NGX_LTYPE_OPERATION 3
#define NGX_LTYPE_FUNCTION 4

struct ngx_let_node_s {

ngx_int_t type;

union {

ngx_str_t name; /* literal value / operation name */
ngx_str_t name; /* literal value / operation name / function name */

ngx_int_t index; /* variable index */
};

ngx_array_t args; /* argument node pointers */
ngx_array_t args; /* argument node pointers */
};

typedef struct ngx_let_node_s ngx_let_node_t;
Expand Down
Loading

0 comments on commit 9b6d87e

Please sign in to comment.