Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Life is difficult because it is non-linear.


devel / comp.lang.xharbour / 2023-12-19 19:12 UTC+0100 Enrico Maria Giordano <e.m.giordano@emagsoftware.it>

SubjectAuthor
* 2023-12-19 19:12 UTC+0100 Enrico Maria GiordanoEnrico Maria Giordano
`* 2023-12-19 19:12 UTC+0100 Enrico Maria GiordanoEnrico Maria Giordano
 +- 2023-12-19 19:12 UTC+0100 Enrico Maria Giordano <e.m.giordano@emagsoftware.it>Ron Pinkas
 `* 2023-12-19 19:12 UTC+0100 Enrico Maria Giordano <e.m.giordano@emagsoftware.it>Ron Pinkas
  +* 2023-12-19 19:12 UTC+0100 Enrico Maria Giordano <e.m.giordano@emagsoftware.it>Ron Pinkas
  |`- 2023-12-19 19:12 UTC+0100 Enrico Maria GiordanoEnrico Maria Giordano
  `- 2023-12-19 19:12 UTC+0100 Enrico Maria GiordanoEnrico Maria Giordano

1
2023-12-19 19:12 UTC+0100 Enrico Maria Giordano <e.m.giordano@emagsoftware.it>

<ulsmgq$58ol$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=3075&group=comp.lang.xharbour#3075

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!news.swapon.de!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: e.m.giordano@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: 2023-12-19 19:12 UTC+0100 Enrico Maria Giordano
<e.m.giordano@emagsoftware.it>
Date: Tue, 19 Dec 2023 19:13:47 +0100
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <ulsmgq$58ol$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 19 Dec 2023 18:13:46 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d51ffc09a7f32e158cf4a754d25e77e4";
logging-data="172821"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/GNIGtcl1hrzy2dmUvonX9"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:AOVvG+eGkPY+qCNQ+2tJ026TlOs=
Content-Language: it
 by: Enrico Maria Giordan - Tue, 19 Dec 2023 18:13 UTC

2023-12-19 19:12 UTC+0100 Enrico Maria Giordano
<e.m.giordano@emagsoftware.it>
* contrib\hbhpdf
! Reverted my recent changes

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

Re: 2023-12-19 19:12 UTC+0100 Enrico Maria Giordano <e.m.giordano@emagsoftware.it>

<ulsp63$5m85$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=3076&group=comp.lang.xharbour#3076

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: e.m.giordano@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: Re: 2023-12-19 19:12 UTC+0100 Enrico Maria Giordano
<e.m.giordano@emagsoftware.it>
Date: Tue, 19 Dec 2023 19:59:17 +0100
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <ulsp63$5m85$1@dont-email.me>
References: <ulsmgq$58ol$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 19 Dec 2023 18:59:16 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d51ffc09a7f32e158cf4a754d25e77e4";
logging-data="186629"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+NM0U4eTQKnD9NBgt8eMFF"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:p7xgRh463hptF9eWxlBFlcW1KUA=
In-Reply-To: <ulsmgq$58ol$1@dont-email.me>
Content-Language: it
 by: Enrico Maria Giordan - Tue, 19 Dec 2023 18:59 UTC

Il 19/12/2023 19:13, Enrico Maria Giordano ha scritto:

> 2023-12-19 19:12 UTC+0100 Enrico Maria Giordano
> <e.m.giordano@emagsoftware.it>
>   * contrib\hbhpdf
>     ! Reverted my recent changes

OK, now I get many of these errors using MSC32:

contrib\hbhpdf\hpdf_objects.c(60): error C2664: 'void
HPDF_String_Free(HPDF_String)': cannot convert argument 1 from 'void *'
to 'HPDF_String'
contrib\hbhpdf\hpdf_objects.c(60): note: Conversion from 'void*' to
pointer to non-'void' requires an explicit cast

Please note that they are errors, not warnings. What to do, other than
fixing them?

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

Re: 2023-12-19 19:12 UTC+0100 Enrico Maria Giordano <e.m.giordano@emagsoftware.it>

<ulsqoe$5vh2$2@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=3079&group=comp.lang.xharbour#3079

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ron@ronpinkas.com (Ron Pinkas)
Newsgroups: comp.lang.xharbour
Subject: Re: 2023-12-19 19:12 UTC+0100 Enrico Maria Giordano <e.m.giordano@emagsoftware.it>
Date: Tue, 19 Dec 2023 14:26:06 -0500
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <ulsqoe$5vh2$2@dont-email.me>
References: <ulsmgq$58ol$1@dont-email.me> <ulsp63$5m85$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=fixed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 19 Dec 2023 19:26:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="837f364c1238ff9fff6637059156b3c9";
logging-data="196130"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/VZdXGTaXNIHSeobOFKrQ/8p43L6vIxvo="
User-Agent: flnews/1.2.0 (for Darwin)
Cancel-Lock: sha1:+HstjarT7E3tUb6jUmEFi2Up/30=
 by: Ron Pinkas - Tue, 19 Dec 2023 19:26 UTC

Enrico Maria Giordano wrote:
>
>
> Il 19/12/2023 19:13, Enrico Maria Giordano ha scritto:
>
> > 2023-12-19 19:12 UTC+0100 Enrico Maria Giordano
> > <e.m.giordano@emagsoftware.it>
> >   * contrib\hbhpdf
> >     ! Reverted my recent changes
>
> OK, now I get many of these errors using MSC32:
>
> contrib\hbhpdf\hpdf_objects.c(60): error C2664: 'void
> HPDF_String_Free(HPDF_String)': cannot convert argument 1 from 'void *'
> to 'HPDF_String'
> contrib\hbhpdf\hpdf_objects.c(60): note: Conversion from 'void*' to
> pointer to non-'void' requires an explicit cast
>
> Please note that they are errors, not warnings. What to do, other than
> fixing them?
>

Thanks, I will review and get back o you.

Re: 2023-12-19 19:12 UTC+0100 Enrico Maria Giordano <e.m.giordano@emagsoftware.it>

<ulsuot$6k6t$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=3082&group=comp.lang.xharbour#3082

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ron@ronpinkas.com (Ron Pinkas)
Newsgroups: comp.lang.xharbour
Subject: Re: 2023-12-19 19:12 UTC+0100 Enrico Maria Giordano <e.m.giordano@emagsoftware.it>
Date: Tue, 19 Dec 2023 15:34:31 -0500
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <ulsuot$6k6t$1@dont-email.me>
References: <ulsmgq$58ol$1@dont-email.me> <ulsp63$5m85$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=fixed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 19 Dec 2023 20:34:37 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="dafff9d6cab3cf516824a1d9c13f5531";
logging-data="217309"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+4mfu57i+wk0DI0ewCBRw6c1NP6nypvX0="
User-Agent: flnews/1.2.0 (for Darwin)
Cancel-Lock: sha1:Lk9jXqhfTS5voztZwENiCbHthuM=
 by: Ron Pinkas - Tue, 19 Dec 2023 20:34 UTC

Enrico Maria Giordano wrote:
>
>
> Il 19/12/2023 19:13, Enrico Maria Giordano ha scritto:
>
> > 2023-12-19 19:12 UTC+0100 Enrico Maria Giordano
> > <e.m.giordano@emagsoftware.it>
> >   * contrib\hbhpdf
> >     ! Reverted my recent changes
>
> OK, now I get many of these errors using MSC32:
>
> contrib\hbhpdf\hpdf_objects.c(60): error C2664: 'void
> HPDF_String_Free(HPDF_String)': cannot convert argument 1 from 'void *'
> to 'HPDF_String'
> contrib\hbhpdf\hpdf_objects.c(60): note: Conversion from 'void*' to
> pointer to non-'void' requires an explicit cast
>
> Please note that they are errors, not warnings. What to do, other than
> fixing them?
>

Enbrico,

Can you please provide all of them?

One approahc we may consider is:

-D'HPDF_String_Free(arg)=HPDF_String_Free((HPDF_String)(arg))'

On the command line in the make for given compiler.

Another approach is to FORK libharu and make the fixes in our fork, and
later we may MERGE future modifications of libharu into our fork.

Or BEST we may open an issue on GitHub, and report such errors and
propose the fix ass a PULL REQUEST.

What do you think?

Ron

Ron

Re: 2023-12-19 19:12 UTC+0100 Enrico Maria Giordano <e.m.giordano@emagsoftware.it>

<ult1ld$72ru$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=3084&group=comp.lang.xharbour#3084

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ron@ronpinkas.com (Ron Pinkas)
Newsgroups: comp.lang.xharbour
Subject: Re: 2023-12-19 19:12 UTC+0100 Enrico Maria Giordano <e.m.giordano@emagsoftware.it>
Date: Tue, 19 Dec 2023 16:23:51 -0500
Organization: A noiseless patient Spider
Lines: 107
Message-ID: <ult1ld$72ru$1@dont-email.me>
References: <ulsmgq$58ol$1@dont-email.me> <ulsp63$5m85$1@dont-email.me> <ulsuot$6k6t$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=fixed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 19 Dec 2023 21:23:57 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="dafff9d6cab3cf516824a1d9c13f5531";
logging-data="232318"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18BmnNFKXod+VMe7YjwOneFTBtTOVdNc1k="
User-Agent: flnews/1.2.0 (for Darwin)
Cancel-Lock: sha1:Njw3OYDkxyFNyuXo0+VfaPhlHQs=
 by: Ron Pinkas - Tue, 19 Dec 2023 21:23 UTC

Ron Pinkas wrote:
> Enrico Maria Giordano wrote:
> >
> >
> > Il 19/12/2023 19:13, Enrico Maria Giordano ha scritto:
> >
> > > 2023-12-19 19:12 UTC+0100 Enrico Maria Giordano
> > > <e.m.giordano@emagsoftware.it>
> > >   * contrib\hbhpdf
> > >     ! Reverted my recent changes
> >
> > OK, now I get many of these errors using MSC32:
> >
> > contrib\hbhpdf\hpdf_objects.c(60): error C2664: 'void
> > HPDF_String_Free(HPDF_String)': cannot convert argument 1 from 'void *'
> > to 'HPDF_String'
> > contrib\hbhpdf\hpdf_objects.c(60): note: Conversion from 'void*' to
> > pointer to non-'void' requires an explicit cast
> >
> > Please note that they are errors, not warnings. What to do, other than
> > fixing them?
> >
>
> Enbrico,
>
> Can you please provide all of them?
>
> One approahc we may consider is:
>
> -D'HPDF_String_Free(arg)=HPDF_String_Free((HPDF_String)(arg))'
>
> On the command line in the make for given compiler.
>
> Another approach is to FORK libharu and make the fixes in our fork, and
> later we may MERGE future modifications of libharu into our fork.
>
> Or BEST we may open an issue on GitHub, and report such errors and
> propose the fix ass a PULL REQUEST.
>
> What do you think?
>
> Ron
>
>
> Ron

One more approach is to ADD one more source file (xhb_config.c) like
this:

------ xhb_config.c ------
#ifdef __cplusplus
extern "C" {
#endif

// Original function declaration (if not already declared)
void HPDF_String_Free(HPDF_String arg);

#ifdef __cplusplus
}

// Overloaded function for C++
void HPDF_String_Free(void* arg) {
HPDF_String_Free(static_cast<HPDF_String>(arg));
}

#endif
------ EOF xhb_config.c ------

AND one header (xhb_config.h) like this:

----- xhb_config.h -----
#ifndef XHB_CONFIG_H
#define XHB_CONFIG_H

#ifdef __cplusplus
extern "C" {
#endif

// Direct declaration of the original HPDF_String_Free function
// Replace the return type and parameters as per the actual function signature
void HPDF_String_Free(HPDF_String arg);

#ifdef __cplusplus
}

// C++ overload for HPDF_String_Free
void HPDF_String_Free(void* arg) {
HPDF_String_Free(static_cast<HPDF_String>(arg));
}

#endif // __cplusplus

#endif // XHB_CONFIG_H
----- EOF xhb_config.h -----

Then we add xhb_config.c to make files of C++ compilers like MSC and we
also add automatic inclusion of xhb_config.h
(for MSC add flag: /FI"xhb_config.h")

This approach uses C++ funcion overloading to automaically directs calls
with void * to overloaded wrapper which then add the cast and call the
real function (NO R/TT overhead).

Do you know which make file is used for MSVC - this approach can quickly
be impllemented and is a safe approach.

Ron

Re: 2023-12-19 19:12 UTC+0100 Enrico Maria Giordano <e.m.giordano@emagsoftware.it>

<ult635$7fq8$2@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=3086&group=comp.lang.xharbour#3086

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: e.m.giordano@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: Re: 2023-12-19 19:12 UTC+0100 Enrico Maria Giordano
<e.m.giordano@emagsoftware.it>
Date: Tue, 19 Dec 2023 23:39:34 +0100
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <ult635$7fq8$2@dont-email.me>
References: <ulsmgq$58ol$1@dont-email.me> <ulsp63$5m85$1@dont-email.me>
<ulsuot$6k6t$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 19 Dec 2023 22:39:33 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d51ffc09a7f32e158cf4a754d25e77e4";
logging-data="245576"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/nCFhk1JIRHVHdhcu/zaAz"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:58jOvKZnJHTAqr1qT6TzJtleqrA=
Content-Language: it
In-Reply-To: <ulsuot$6k6t$1@dont-email.me>
 by: Enrico Maria Giordan - Tue, 19 Dec 2023 22:39 UTC

Il 19/12/2023 21:34, Ron Pinkas ha scritto:

> Can you please provide all of them?

Already provided in my previous message.

> One approahc we may consider is:
>
> -D'HPDF_String_Free(arg)=HPDF_String_Free((HPDF_String)(arg))'
>
> On the command line in the make for given compiler.
>
> Another approach is to FORK libharu and make the fixes in our fork, and
> later we may MERGE future modifications of libharu into our fork.
>
> Or BEST we may open an issue on GitHub, and report such errors and
> propose the fix ass a PULL REQUEST.
>
> What do you think?

Too much work. I think we can suppress the warnings and solve the few
errors defining modff() somehow.

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

Re: 2023-12-19 19:12 UTC+0100 Enrico Maria Giordano <e.m.giordano@emagsoftware.it>

<ult6bg$7fq7$2@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=3088&group=comp.lang.xharbour#3088

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: e.m.giordano@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: Re: 2023-12-19 19:12 UTC+0100 Enrico Maria Giordano
<e.m.giordano@emagsoftware.it>
Date: Tue, 19 Dec 2023 23:44:01 +0100
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <ult6bg$7fq7$2@dont-email.me>
References: <ulsmgq$58ol$1@dont-email.me> <ulsp63$5m85$1@dont-email.me>
<ulsuot$6k6t$1@dont-email.me> <ult1ld$72ru$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 19 Dec 2023 22:44:00 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d51ffc09a7f32e158cf4a754d25e77e4";
logging-data="245575"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18M+43njUHi6n+fmIJDAhpF"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:sWpvRRBmF/yiTT7dvxqtX2mjMPQ=
Content-Language: it
In-Reply-To: <ult1ld$72ru$1@dont-email.me>
 by: Enrico Maria Giordan - Tue, 19 Dec 2023 22:44 UTC

Il 19/12/2023 22:23, Ron Pinkas ha scritto:

> One more approach is to ADD one more source file (xhb_config.c) like
> this:

I vote no. Too much complicated.

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor