Skip to content

Commit

Permalink
core: mpath aliased to loadpath (for K compatibility)
Browse files Browse the repository at this point in the history
- accepts now loadpath="searchpath" (K stype)
  • Loading branch information
miconda committed May 29, 2009
1 parent b27dfba commit 8d503e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cfg.lex
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ SERVER_ID "server_id"
CFG_DESCRIPTION "description"|"descr"|"desc"

LOADMODULE loadmodule
LOADPATH loadpath
LOADPATH "loadpath"|"mpath"
MODPARAM modparam

/* values */
Expand Down
6 changes: 6 additions & 0 deletions cfg.y
Original file line number Diff line number Diff line change
Expand Up @@ -1410,6 +1410,12 @@ module_stm:
mods_dir = $2;
}
| LOADPATH error { yyerror("string expected"); }
| LOADPATH EQUAL STRING {
DBG("loading modules under %s\n", $3);
printf("loading modules under %s\n", $3);
mods_dir = $3;
}
| LOADPATH EQUAL error { yyerror("string expected"); }
| MODPARAM LPAREN STRING COMMA STRING COMMA STRING RPAREN {
if (set_mod_param_regex($3, $5, PARAM_STRING, $7) != 0) {
yyerror("Can't set module parameter");
Expand Down

0 comments on commit 8d503e9

Please sign in to comment.