Kaydet (Commit) 4df26590 authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS dmake48 (1.5.2); FILE MERGED

2007/03/17 19:00:37 vq 1.5.2.2: #i73499# Add new .WINPATH attribute to generate Windows style paths
(with regular slashes) instead of the default cygwin style (POSIX)
paths for dmake's dynamic macros.

This attribute is specific for cygwin dmake executables and non-cygwin
environments ignore this attribute.

The windows style paths use regular slashes ('/') instead of the
usual windows backslash ('\') as directory separator to avoid quoting
problems (It still is a cygwin dmake!) and cygwin as well as native
windows programs should have no problems using this (c:/foo/bar) path
representation.

The affected macros are $@, $*, $>, $?, $<, $&, $^ and $(PWD),
$(MAKEDIR) and $(TMD).

Examples:

Content of $(PWD) without .WINPATH (default):  /cygdrive/c/temp

Content of $(PWD) with .WINPATH set:           c:/temp
2007/01/27 00:51:12 vq 1.5.2.1: #i739183 Mark the internal macros PWD, MAKEDIR and TMD as precious.
Also commit some small macro relates clean ups and comment changes.
üst fabd0ae6
/* RCS $Id: imacs.c,v 1.5 2007-01-18 09:30:31 vg Exp $ /* RCS $Id: imacs.c,v 1.6 2007-06-12 06:05:57 obo Exp $
-- --
-- SYNOPSIS -- SYNOPSIS
-- Define default internal macros. -- Define default internal macros.
...@@ -86,7 +86,9 @@ Create_macro_vars() ...@@ -86,7 +86,9 @@ Create_macro_vars()
_set_bit_var(".NOINFER", "", A_NOINFER ); _set_bit_var(".NOINFER", "", A_NOINFER );
_set_bit_var(".SEQUENTIAL","",A_SEQ ); _set_bit_var(".SEQUENTIAL","",A_SEQ );
_set_bit_var(".USESHELL", "", A_SHELL ); _set_bit_var(".USESHELL", "", A_SHELL );
/* .SWAP (MSDOS) and .WINPATH (cygwin) share the same bit. */
_set_bit_var(".SWAP", "", A_SWAP ); _set_bit_var(".SWAP", "", A_SWAP );
_set_bit_var(".WINPATH", "", A_WINPATH );
_set_bit_var(".MKSARGS", "", A_MKSARGS ); _set_bit_var(".MKSARGS", "", A_MKSARGS );
_set_bit_var(".IGNOREGROUP","",A_IGNOREGROUP); _set_bit_var(".IGNOREGROUP","",A_IGNOREGROUP);
...@@ -110,10 +112,14 @@ Create_macro_vars() ...@@ -110,10 +112,14 @@ Create_macro_vars()
#endif #endif
_set_string_var(".DIRCACHERESPCASE", DIRCACHERESPCASEDEFAULT, M_DEFAULT, &DcacheRespCase); _set_string_var(".DIRCACHERESPCASE", DIRCACHERESPCASEDEFAULT, M_DEFAULT, &DcacheRespCase);
_set_string_var("MAKEDIR",Get_current_dir(),M_PRECIOUS|M_NOEXPORT,&Makedir); _set_string_var("MAKEDIR",Get_current_dir(),M_PRECIOUS|M_NOEXPORT,
_set_string_var("MAKEVERSION", VERSION, M_DEFAULT|M_PRECIOUS, &version); &Makedir_macval);
_set_string_var("PWD", Makedir, M_DEFAULT|M_NOEXPORT, &Pwd); Makedir = DmStrDup(Makedir_macval); /* Later done by Def_macro(). */
_set_string_var("TMD", ".", M_DEFAULT|M_NOEXPORT, &Tmd); _set_string_var("MAKEVERSION", VERSION, M_PRECIOUS, &version);
_set_string_var("PWD", Makedir, M_PRECIOUS|M_NOEXPORT, &Pwd_macval);
Pwd = DmStrDup(Pwd_macval); /* Later done by Def_macro(). */
_set_string_var("TMD", ".", M_PRECIOUS|M_NOEXPORT, &Tmd_macval);
Tmd = DmStrDup(Tmd_macval); /* Later done by _set_tmd(). */
Def_macro("NULL", "", M_PRECIOUS|M_NOEXPORT|M_FLAG); Def_macro("NULL", "", M_PRECIOUS|M_NOEXPORT|M_FLAG);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment