Hi Francesco,
Thanks I've committed these fixes:

2009-01-20 23:04 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
  * contrib/hbcrypt/sha1.c
    ! Fixed some BCC warnings.

2009-01-20 23:00 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
  * contrib/hbcrypt/sha1.c
    ! Added #include <string.h> for mem*().

2009-01-20 22:51 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
  * contrib/hbcrypt/tests/testsha2.prg
    ! Fixed typo in some last minute (and untested) modifications.

As for the BCC error, I'd like to ask BCC users to find out
what could be the problem. GCC and MSVC build cleanly,
and tests show all '.T.'.

Brgds,
Viktor

On Tue, Jan 20, 2009 at 10:32 PM, Francesco Saverio Giudice <
i...@fsgiudice.com> wrote:

> Hi Viktor,
>
> Il 20/01/2009 20.56, Viktor Szakáts ha scritto:
>
>> 2009-01-20 20:47 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
>>
>
> with BCC55 hbcrypt won't build
> -----------------------------------------
> MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
>        bcc32.exe -c -q -d -Q -w -w-sig- -4 -O2 -OS -Ov -Oi -Oc
> -I..\..\include -DHB_FM_STATISTICS_OFF   -oobj\b32\hbsha2.obj .\hbsha2.c
> .\hbsha2.c:
> Error E2176 .\sha2.h 55: Too many types in declaration
>  + Full parser context
>  + .\hbsha2.c, line 55: #include .\sha2.h
> *** 1 errors in Compile ***
>
> ** error 1 ** deleting obj\b32\hbsha2.obj
> -----------------------------------------
>
>
> with BCC582 builds but with follow errors.
> -----------------------------------------
> MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
>        bcc32.exe -c -q -d -Q -w -w-sig- -4 -O2 -OS -Ov -Oi -Oc
> -I..\..\include -DHB_FM_STATISTICS_OFF   -oobj\b32\hbsha2.obj .\hbsha2.c
> .\hbsha2.c:
>        bcc32.exe -c -q -d -Q -w -w-sig- -4 -O2 -OS -Ov -Oi -Oc
> -I..\..\include -DHB_FM_STATISTICS_OFF   -oobj\b32\hbsha2hm.obj .\hbsha2hm.c
> .\hbsha2hm.c:
>        bcc32.exe -c -q -d -Q -w -w-sig- -4 -O2 -OS -Ov -Oi -Oc
> -I..\..\include -DHB_FM_STATISTICS_OFF   -oobj\b32\sha1.obj .\sha1.c
> .\sha1.c:
> Warning W8004 .\sha1.c 99: 'a' is assigned a value that is never used in
> function SHA1_Transform
> Warning W8065 .\sha1.c 122: Call to function 'memcpy' with no prototype in
> function SHA1_Update
> Warning W8065 .\sha1.c 130: Call to function 'memcpy' with no prototype in
> function SHA1_Update
> Warning W8065 .\sha1.c 155: Call to function 'memset' with no prototype in
> function SHA1_Final
> Warning W8065 .\sha1.c 156: Call to function 'memset' with no prototype in
> function SHA1_Final
> Warning W8065 .\sha1.c 157: Call to function 'memset' with no prototype in
> function SHA1_Final
> Warning W8065 .\sha1.c 158: Call to function 'memset' with no prototype in
> function SHA1_Final
> Warning W8004 .\sha1.c 159: 'j' is assigned a value that is never used in
> function SHA1_Final
> Warning W8004 .\sha1.c 154: 'i' is assigned a value that is never used in
> function SHA1_Final
>        bcc32.exe -c -q -d -Q -w -w-sig- -4 -O2 -OS -Ov -Oi -Oc
> -I..\..\include -DHB_FM_STATISTICS_OFF   -oobj\b32\sha1hmac.obj .\sha1hmac.c
> .\sha1hmac.c:
>        bcc32.exe -c -q -d -Q -w -w-sig- -4 -O2 -OS -Ov -Oi -Oc
> -I..\..\include -DHB_FM_STATISTICS_OFF   -oobj\b32\sha2.obj .\sha2.c
> .\sha2.c:
>        bcc32.exe -c -q -d -Q -w -w-sig- -4 -O2 -OS -Ov -Oi -Oc
> -I..\..\include -DHB_FM_STATISTICS_OFF   -oobj\b32\sha2hmac.obj .\sha2hmac.c
> .\sha2hmac.c:
>        tlib.exe "..\..\lib\b32\hbcrypt.lib" /P64  @MAKE0000.@@@
> TLIB 4.5 Copyright (c) 1987, 1998 Borland International
> +obj\b32\hbsha2.obj &
> +obj\b32\hbsha2hm.obj &
> +obj\b32\sha1.obj &
> +obj\b32\sha1hmac.obj &
> +obj\b32\sha2.obj &
> +obj\b32\sha2hmac.obj &
> +
> -----------------------------------------
>
> after built I have tried with testsha2.prg in tests folder (after have
> corrected a typo error at line 138) I get all test returning .F.
>
>
> Best regards
>
> Francesco
> _______________________________________________
> Harbour mailing list
> Harbour@harbour-project.org
> http://lists.harbour-project.org/mailman/listinfo/harbour
>
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to