R: [Harbour] Define for version recognition

2008-06-27 Thread Massimo Belgrano
Victor can you post the list of envar,compile switch used by harbour like __harbour__ and somethink like STRICTLY52 Or tell me What must search for find it - Messaggio originale - Da: Maurizio la Cecilia <[EMAIL PROTECTED]> Inviato: venerdì 27 giugno 2008 22.08 A: 'Harbour Project Main De

R: R: [Harbour] Define for version recognition

2008-06-27 Thread Maurizio la Cecilia
Hi Viktor, this confirm what i'm making after the alert of Massimo. Luckly i've always used the __XHARBOUR__ before the __HARBOUR__ test and the things have worked. Never thought __HARBOUR__ have same behaviour in both compilers. Your arrangement allow to fine tune the source of HwGUI with newer fe

R: [Harbour] Define for version recognition

2008-06-27 Thread Maurizio la Cecilia
Thanks Massimo. Luckly i've always used the __XHARBOUR__ before the __HARBOUR__ test (or only it) and the things have worked. Never thought __HARBOUR__ have same behaviour in both compilers... Now i stay tuned. Best regards. Maurizio la Cecilia > -Messaggio originale- >

Re: R: [Harbour] Define for version recognition

2008-06-27 Thread Szakáts Viktor
#ifdef __HARBOUR__ #ifdef __HARBOUR_SVN__ Code with new feautured funcs #else Code with old fashioned funcs #endif #endif #ifdef __XHARBOUR__ #ifdef __XHARBOUR_CVS__ Code with new feautured funcs #else Code with old fashioned funcs #endif #endif With lat

[Harbour] 2008-06-27 17:13 UTC+0100 Miguel Angel Marchuet <[EMAIL PROTECTED]>

2008-06-27 Thread Miguel Angel Marchuet
2008-06-27 17:13 UTC+0100 Miguel Angel Marchuet <[EMAIL PROTECTED]> * contrib/hbtip/client.prg * contrib/hbtip/ftpcln.prg * contrib/hbtip/httpcln.prg * contrib/hbtip/mail.prg * contrib/hbtip/sendmail.prg + Added methods setget to interrogate buffer size send/recive METHOD

[Harbour] 2008-06-27 17:07 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-06-27 Thread Szakáts Viktor
2008-06-27 17:07 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * contrib/hbgf/hbgfgtk/msginfo.c ! Blind fix for missing MultiLineDelimiters definition. -- Brgds, Viktor ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-pr

Re: [Harbour] Set( _SET_HBOUTLOGHEADER ) opinions

2008-06-27 Thread Mindaugas Kavaliauskas
Hi, Your code could be a very nice addition to Harbour BTW. I wonder if you've considered donating it to the project :) My exception handler code is below. I've never proposed it to be standard Harbour's code, because my knowledge about exception handling is limited. I know Linux can get mu

[Harbour] 2008-06-27 15:43 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-06-27 Thread Szakáts Viktor
2008-06-27 15:43 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * contrib/hbwhat32/wincorec.c * contrib/hbwhat32/_winwnd.c * contrib/hbwhat32/wincore.prg + hb_retnl()/hb_parnl() calls replaced with hb_retptr()/hb_parptr(). This way it won't break on Win64. ; NOTE1: Functio

Re: [Harbour] gnu Makefiles issue under Linux

2008-06-27 Thread Szakáts Viktor
This is pretty much independent from the problem you've raised, you can run into a contrib you cannot build, even if you manually specify the contrib list. Yes but if I add a contrib to an envvar because I need it ( and I'm not insane ) I am also prepared to do the necessary make it work. Instea

Re: [Harbour] gnu Makefiles issue under Linux

2008-06-27 Thread Lorenzo Fiorini
On Fri, Jun 27, 2008 at 2:17 PM, Szakáts Viktor <[EMAIL PROTECTED]> wrote: > This is pretty much independent from the problem you've > raised, you can run into a contrib you cannot build, > even if you manually specify the contrib list. Yes but if I add a contrib to an envvar because I need it (

[Harbour] 2008-06-27 14:58 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-06-27 Thread Przemyslaw Czerpak
2008-06-27 14:58 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/pp/ppcore.c ! fixed GPF in expressions like: #command CMD => #translate abc => \ problem located by Ron in xHarbour * harbour/source/pp/hbpp.c * extended string escaping to also quote

Re: [Harbour] gnu Makefiles issue under Linux

2008-06-27 Thread Szakáts Viktor
Hi Przemek, If the above error doesn't cause the build process to stop, I'd vote to leave it as is. (or find some workaround to avoid this error) It broke build process and this is a problem. For sure current state cannot be kept. We have to resolve few things: 1. automatic detection which lib

Re: [Harbour] Socket status

2008-06-27 Thread Alex Strickland
Przemyslaw Czerpak wrote: You have to temporary send/receive control package. In IP protocol you can make it automatically setting SO_KEEPALIVE socket option. Thank you, I might have read for a week ... Regards Alex ___ Harbour mailing list Harbour@

Re: [Harbour] Socket status

2008-06-27 Thread Przemyslaw Czerpak
On Fri, 27 Jun 2008, Alex Strickland wrote: Hi Alex, > Perhaps someone can help me. > I open a socket to a device. I poll the socket every 0.25s to see if > there is data, if ther is no data I get a timeout, which is fine. > However, if the socket is broken (as a test I pull the cable from the

Re: [Harbour] 2008-06-27 12:51 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-06-27 Thread Guy Roussin
Thank you Viktor, good fix. It works for me. Now i get this error for some prg from contrib/hbgf/tests : Harbour 1.0.0RC1 Intl. (Rev. 8838) Copyright (c) 1999-2008, http://www.harbour-project.org/ Compiling 'form3.prg'... Lines 836, Functions/Procedures 3 Generating C source output to 'form3.c'..

Re: [Harbour] gnu Makefiles issue under Linux

2008-06-27 Thread Szakáts Viktor
That's what I was trying to avoid in the first place. Or if you mean to not add _any_ contribs to the default contrib list, that's also an option. But it just makes builder's life more difficult and error prone IMO. As I said before the only contrib which could be considered more or less "standa

Re: [Harbour] gnu Makefiles issue under Linux

2008-06-27 Thread Przemyslaw Czerpak
On Fri, 27 Jun 2008, Szakáts Viktor wrote: Hi Viktor, > >My suggestion is to remove all that checks of the arch inside the > >single Makefiles and leave to the developer to add the contribs to > >build to the HB_CONTRIBLIBS envvar. > That's what I was trying to avoid in the first place. > Or if y

[Harbour] 2008-06-27 14:27 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-06-27 Thread Szakáts Viktor
2008-06-27 14:27 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * contrib/Makefile * After this change, HB_CONTRIBLIBS will _override_ the default list of contribs, rather than adding them to the default list (which BTW contains everything since this week, so there's

[Harbour] Socket status

2008-06-27 Thread Alex Strickland
Hi Perhaps someone can help me. I open a socket to a device. I poll the socket every 0.25s to see if there is data, if ther is no data I get a timeout, which is fine. However, if the socket is broken (as a test I pull the cable from the device out of the switch) I still receive a timeout. S

[Harbour] 2008-06-27 12:51 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-06-27 Thread Szakáts Viktor
2008-06-27 12:51 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * contrib/hbgf/hbgfgtk/creamenu.c - Removed deprecated pre GTK2 API call with no equivalent in newer versions. If someone needs the menu shadow functionality for GTK1, please give some hint how to guard i

Re: [Harbour] gnu Makefiles issue under Linux

2008-06-27 Thread Lorenzo Fiorini
On Fri, Jun 27, 2008 at 1:30 PM, Szakáts Viktor <[EMAIL PROTECTED]> wrote: > Welcome back! Thanks. > That's what I was trying to avoid in the first place. > Or if you mean to not add _any_ contribs to the default > contrib list, that's also an option. But it just makes > builder's life more diff

Re: R: [Harbour] Define for version recognition

2008-06-27 Thread Szakáts Viktor
I've changed Harbour to support __HARBOUR__ with the same value in .c and .prg code. [ You can hack this around by including hbverbld.h to your .prg/.c files. But this is not a recommended way of doing it, and may change in the future without notice. ] Minor correction, you only need to explic

Re: [Harbour] gnu Makefiles issue under Linux

2008-06-27 Thread Szakáts Viktor
Hi Lorenzo, Welcome back! My suggestion is to remove all that checks of the arch inside the single Makefiles and leave to the developer to add the contribs to build to the HB_CONTRIBLIBS envvar. That's what I was trying to avoid in the first place. Or if you mean to not add _any_ contribs to

[Harbour] 2008-06-27 13:22 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-06-27 Thread Szakáts Viktor
2008-06-27 13:22 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * include/hbstdgen.ch * include/hbver.h * Cleanups to previous change. ! Fixed HB_STD_CH_ to not be #defined in .prgs by default. -- Brgds, Viktor ___ Harbour mailing list Ha

[Harbour] icanm for harbour world?

2008-06-27 Thread Massimo Belgrano
At its meeting in Paris, the Internet Corporation for Assigned Names and Numbers (ICANN), a not-for-profit organisation that oversees the naming scheme for websites, voted to accept a proposal that will allow companies to purchase new top-level domain names ending in almost whatever suffix they cho

[Harbour] gnu Makefiles issue under Linux

2008-06-27 Thread Lorenzo Fiorini
Now a "make -s clean" under Linux gives: make[2]: *** No rule to make target `clean'. Stop. make[2]: *** No rule to make target `clean'. Stop. make[2]: *** No rule to make target `clean'. Stop. make[2]: *** No rule to make target `clean'. Stop. make[2]: *** No rule to make target `clean'. Sto

Re: [Harbour] Re: hbgfgtk errors ...

2008-06-27 Thread Guy Roussin
Hi, For example in debian, the package libgtk1.2-dev depend on package pkg-config. So we can't install libgtk1.2-dev without pkg-config. I think, if there is no pkg-config *or* no gtk+, `pkg-config --cflags gtk+` return empty string and nothing is added to C_USR. So no need to protect this line

[Harbour] 2008-06-27 12:24 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-06-27 Thread Szakáts Viktor
2008-06-27 12:24 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * include/hbstdgen.ch * include/hbver.h * include/hbdefs.h * source/pp/pplib.c * source/pp/ppcore.c * source/pp/hbpp.c * source/common/hbver.c * source/common/hbverdsp.c * contrib/hbsqlit3/hbsqlit3.c * con

Re: R: [Harbour] Define for version recognition

2008-06-27 Thread Szakáts Viktor
Hi Maurizio, I was suggesting these for app/lib compile time. Even for that there is the C level and the .prg level, and they are different. On .prg level __HARBOUR__ returns 256, which means 0x0100, like 1.00. On .c level you can use HB_VERSION after #including "hbver.h". You cannot access SV

RE: [Harbour] Define for version recognition

2008-06-27 Thread Massimo Belgrano
#ifdef __HARBOUR__ If return true in Harbour and xharbour! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Maurizio la Cecilia Sent: Friday, June 27, 2008 11:23 AM To: 'Harbour Project Main Developer List.' Subject: R: [Harbour] Define for version recogni

RE: [Harbour] 2008-06-26 11:21 UTC+0200 Viktor Szakats (harbour.01syenar hu)

2008-06-27 Thread Massimo Belgrano
>Maybe you've noticed we've spent many weeks/months >trying to raise the quality of contribs, to be closer >to core, to not break builds, not have bugs. >Just compare the current state to the one >say two years ago. This is - I suppose - a common >interest for Harbour, and us developers. That's als

R: [Harbour] Define for version recognition

2008-06-27 Thread Maurizio la Cecilia
Hi Viktor, to be clearer i'm searching something allowing a code as: #ifdef __HARBOUR__ #ifdef __HARBOUR_SVN__ Code with new feautured funcs #else Code with old fashioned funcs #endif #endif #ifdef __XHARBOUR__ #ifdef __XHARBOUR_CVS__ Code with new feautured funcs #e

Re: [Harbour] Re: hbgfgtk errors ...

2008-06-27 Thread Szakáts Viktor
Hi folks, Isn't it better to remove this call? Or guard it with an #ifdef? If the latter, what #ifdef is need? Brgds, Viktor On 2008.06.27., at 11:15, Guy Roussin wrote: Hi, The gtk_menu_bar_set_shadow_type is deprecated in gtk+2.0, it's only available in version 1. Thank you Rodrigo. So

Re: [Harbour] Re: hbgfgtk errors ...

2008-06-27 Thread Guy Roussin
Hi, The gtk_menu_bar_set_shadow_type is deprecated in gtk+2.0, it's only available in version 1. Thank you Rodrigo. So i suggest to change : C_USR += `pkg-config --cflags gtk+-2.0` with C_USR += `pkg-config --cflags gtk+` in harbour/contrib/hbgf/hbgfgtk/Makefile Guy

Re: [Harbour] OT - E-Mail Address Verification

2008-06-27 Thread Szakáts Viktor
No, I think you're right. If this would be possible in a reliable sort of way, a spammer could just find out all existing mailboxes on an SMTP server using brute force, or any lookup tables. This can be solved with limiting the number of queries from a given IP, but a zombie network could get arou

Re: [Harbour] 2008-06-26 11:21 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-06-27 Thread Szakáts Viktor
Hi Pritpal, Why confusing. Since its inception it is being used as is. More we are in a process the pull out the core part out of GTWVG and totally base it on GTWVT, just like it existed in xHarbour for so many years. Being wrong for many years, doesn't justify it IMO. This just means an

RE: [Harbour] 2008-06-26 11:21 UTC+0200 Viktor Szakats (harbour.01syenar hu)

2008-06-27 Thread Massimo Belgrano
THis library is like an extension library for gtwvt if tomorrow Przemyslaw Czerpak give capability of integrate without copy and past So I agree maintain original name function if made same works My dream Imo a gt will have a standard way for adding in c standard gui component (tab,textbox,comb