Branch: Tag:

2019-12-15

2019-12-15 10:35:20 by Marcus Comstedt <marcus@mc.pp.se>

Compiler: Avoid unportable use of "." as current directory

Using "" as current directory with handle_import already worked, but
tweak combine_path_with_cwd so that it doesn't add a trailing / in
this case (which is technically correct but not really desirable since
we want to avoid duplicates in the caches).

4555:    }    | '.' TOK_IDENTIFIER    { -  push_constant_text("."); +  push_constant_text("");    if (call_handle_import()) {    node *tmp=mkconstantsvaluenode(Pike_sp-1);    pop_stack();