2010-07-06 13:02 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)

* src/rtl/console.c
  * src/rtl/philes.c
  * include/hbextern.ch
    + Added: HB_PS() function, which does the same as HB_OSPATHSEPARATOR().
    + Added: HB_EOL() function, which does the same as HB_OSNEWLINE().
    ; These are very often used functions with an exceptionally long and
      hard to type name, so most programs employed macros for it. Now this
      is unnecessary. Long names are deprecated.

  * contrib/Makefile
  - contrib/makefile.hbs
  + contrib/make.hbs
    * Renamed to be shorter.
    + Little steps for standlone running mode.
    + Using HB_EOL() and HB_PS().
    ; TODO: Change it all over Harbour SVN.
This commit is contained in:
Viktor Szakats
2010-07-06 11:03:51 +00:00
parent cfc7da6972
commit aed8cb147e
6 changed files with 47 additions and 14 deletions

View File

@@ -202,6 +202,12 @@ const char * hb_conNewLine( void )
return s_szCrLf;
}
HB_FUNC( HB_EOL )
{
hb_retc_const( s_szCrLf );
}
/* Deprecated */
HB_FUNC( HB_OSNEWLINE )
{
hb_retc_const( s_szCrLf );

View File

@@ -480,6 +480,12 @@ HB_FUNC( HB_OSERROR )
hb_retni( hb_fsOsError() );
}
HB_FUNC( HB_PS )
{
hb_retc_const( HB_OS_PATH_DELIM_CHR_STRING );
}
/* Deprecated */
HB_FUNC( HB_OSPATHSEPARATOR )
{
hb_retc_const( HB_OS_PATH_DELIM_CHR_STRING );