On Thu, 21 Jan 2010, Mindaugas Kavaliauskas wrote: Hi,
> BTW, I found code in last commit: > if( * pszFile ) > { > char * pszFileName = hb_strdup( pszFile ); > if( !hb_storclen_buffer( pszFileName, strlen( pszFileName ), 1 ) ) > hb_xfree( pszFileName ); > } > else > hb_storc( NULL, 1 ); > > Is it somehow better (by speed, etc) than: > if( * pszFile ) > hb_storc( pszFile, 1 ); > else > hb_storc( NULL, 1 ); > or even: > hb_storc( pszFile, 1 ); > ? In this case pszFile points to memory area used by string item in the 1-st parameter. It means that: hb_storc( pszFile, 1 ); may release pszFile before it's used clearing the 1-st item just before assign. It's sth like: hb_storc( hb_parc( 1 ), 1 ); best regards, Przemek _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour