On Mon, 29 Sep 2008, Francesco Saverio Giudice wrote:

Hi Francesco,

> attached the new version and test program I used to check it.
> I hope now it is right.

Yes it's OK though it can be made simpler by using some existing
functions, f.e.:

   HB_FUNC( __SETCENTURY )
   {
      BOOL old_century_setting = hb_setGetCentury();
      PHB_ITEM pNewVal = hb_param( 1, HB_IT_ANY );

      if( pNewVal )
         hb_setSetCentury( set_logical( pNewVal, old_century_setting ) );

      hb_retl( old_century_setting );
   }

If you agree I'll commit it with some minor cleanup.

best regards
Przemek
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to