--------------- FIDO MESSAGE AREA==> TOPIC: 239 C LANGUAGE Ref: F2M00015 Date: 02/04/98 From: JAVIER KOHEN Time: 06:30pm \/To: ALL (Read 2 times) Subj: extern on header files Is there any reason why I see the extern keyword in every GNU libc 2 header? Isn't it implicit? (or it was explicit, can't remember :), anyway, isn't it superfluous?) Javier Kohen >jkohen@tough.com< [The_Crusher] http://jkohen.base.org +4:900/748.3+ _200:201/126_ ICQ:#3855350# PGPID:*3423EAA9* .!. I don't care about this world, I don't care about that girl, I don't care .!. about those words, I don't care * Ramones --- Terminate 5.00/Pro * Origin: The King of The Ring (4:900/748.3) --------------- FIDO MESSAGE AREA==> TOPIC: 239 C LANGUAGE Ref: F2M00016 Date: 02/04/98 From: JAVIER KOHEN Time: 06:45pm \/To: ALL (Read 2 times) Subj: C9X I'm enjoying my reading of the C9X draft (yeah right!)... but I wonder some things: are complex number really necessary to put in the language itself? I haven't got to the usage section yet, but its only implementation makes me hesitate about it. Javier Kohen >jkohen@tough.com< [The_Crusher] http://jkohen.base.org +4:900/748.3+ _200:201/126_ ICQ:#3855350# PGPID:*3423EAA9* .!. Punk we're in it for life .!. Punk will no die .!. We're in it for life .!. Bet you we'll fight .!. (Total Chaos - Punk NO die) --- Terminate 5.00/Pro * Origin: The King of The Ring (4:900/748.3) --------------- FIDO MESSAGE AREA==> TOPIC: 239 C LANGUAGE Ref: F2M00017 Date: 02/04/98 From: JAVIER KOHEN Time: 06:48pm \/To: TOM TORFS (Read 2 times) Subj: integer overflow On 22-Jan-98, Tom Torfs wrote to Carlton Walters about integer overflow. CW>> if i have an unsigned integer variable meaning i can store the CW>> values 0 through 65,535. If i try to store say 74000 the result CW>> will rap around I would not be able to store 74000. The question CW>> is what happen when the value raps around ? does it go up to CW>> 65,535 then start at one again ? TT> More or less, it actually wraps back to 0 on *most* systems. Also Mmm... I don't know what the standard says, but I've just read in the C9X draft (I guess it's the same in the former) that unsigned numbers never overflow, they just wrap, or more exactly: "a = (b + c) % n" for n bit unsigned integers. Javier Kohen >jkohen@tough.com< [The_Crusher] http://jkohen.base.org +4:900/748.3+ _200:201/126_ ICQ:#3855350# PGPID:*3423EAA9* .!. Todos sabemos que los amigos de verdad nunca te mandan preso y nunca lo .!. harn * Flema --- Terminate 5.00/Pro * Origin: The King of The Ring (4:900/748.3) --------------- FIDO MESSAGE AREA==> TOPIC: 239 C LANGUAGE Ref: F2M00018 Date: 02/04/98 From: JAVIER KOHEN Time: 10:04pm \/To: KURT KUZBA (Read 2 times) Subj: integer overflow On 26-Jan-98, Kurt Kuzba wrote to Carlton Walters about integer overflow. KK> 1111 because that is what fits your data type. If your number KK> were 74000, it would lose the 65536 bit, leaving the remaining I never imagined that the C9X proposed THAT big integers... 65536 bits... what's coming next? float complex types? Javier Kohen >jkohen@tough.com< [The_Crusher] http://jkohen.base.org +4:900/748.3+ _200:201/126_ ICQ:#3855350# PGPID:*3423EAA9* .!. Flema es una mierda --- Terminate 5.00/Pro * Origin: The King of The Ring (4:900/748.3) --------------- FIDO MESSAGE AREA==> TOPIC: 239 C LANGUAGE Ref: F2M00019 Date: 02/05/98 From: JAVIER KOHEN Time: 02:04am \/To: NEIL HELLER (Read 2 times) Subj: WARNING MESSAGE - 2 On 31-Jan-98, Neil Heller wrote to Roger Scudder about WARNING MESSAGE - 2. RS>> No. It may not work with other older compilers, but it works RS>> with MSVC++ 5.0. NH> I still toil in 16-bit land and continually dream of that NH> wonderful day when the curse of segmentation will no longer be NH> with us. Well, give Win32 Console a chance! It's good :) Javier Kohen >jkohen@tough.com< [The_Crusher] http://jkohen.base.org +4:900/748.3+ _200:201/126_ ICQ:#3855350# PGPID:*3423EAA9* .!. En la bandera de esa patra ma, el sol naca y me armaba un joint * Sin .!. Ley --- Terminate 5.00/Pro * Origin: The King of The Ring (4:900/748.3) --------------- FIDO MESSAGE AREA==> TOPIC: 239 C LANGUAGE Ref: F2M00020 Date: 02/09/98 From: JAVIER KOHEN Time: 09:23pm \/To: ALL (Read 2 times) Subj: OWL Hmmm.... just began working with OWL 2.5, read the tutorial, read the help and the programmer's guide... and I can't get this working. It's supposed to show a dialog as the main window, asking for a name and a password. The problems are marked with !!!. BTW, TestDialog::CanClose has a few debug MessageBoxes that show *nothing*! >>>>>>>>>> CSplit: Version 2.2 >>>>>>>>>> >>>>>>>>>> CSplit: Begin part 1/1 >>>>>>>>>> >>>>>>>>>> CSplit: Begin file OWLTEST.CPP >>>>>>>>>> #include #include #include "owltest.rh" class TTestDialog : public TDialog { public: TTestDialog(TWindow *parent, TResId resId) : TDialog(parent, \ \ resId), TWindow(parent) { } /* !!! First problem, this ain't affecting anything !!! */ void CmCancel() { CmOk(); } protected: bool CanClose(); }; /* !!! A BIG problem, nothing is working here */ bool TTestDialog::CanClose() { char name[41] = "hola"; char pass[41] = "chau"; TStatic(this, ID_LOGINPROMPT, sizeof (name)).GetText(name, sizeof \ \ (name)); new TStatic(this, ID_LOGINPROMPT, sizeof (pass))->GetText(pass, \ \ sizeof (pass)); MessageBox(name, pass); TEdit(this, ID_LOGINNAME, sizeof (name)).GetText(name, sizeof \ \ (name)); TEdit(this, ID_LOGINPASS, sizeof (pass)).GetText(pass, sizeof \ \ (pass)); MessageBox(name, pass); if (0 != strcmp(pass, name)) { MessageBox("Wrong password!", "Cheater!"); return (false); } return (TWindow::CanClose()); } class TTestApp : public TApplication { public: TTestApp() : TApplication() {} void InitMainWindow() { /* !!! A little problem, this ain't affecting the main dialog */ EnableCtl3d(); SetMainWindow(new TFrameWindow(0, "OWL Test", new \ \ TTestDialog(0, IDD_LOGINDIALOG), true)); } }; int OwlMain(int /*argc*/, char */*argv*/[]) { return TTestApp().Run(); } >>>>>>>>>> CSplit: End file OWLTEST.CPP >>>>>>>>>> >>>>>>>>>> CSplit: Begin file OWLTEST.RH >>>>>>>>>> #define ID_LOGINNAME 2 #define IDD_LOGINDIALOG 1 #define ID_LOGINPASS 3 #define ID_LOGINPROMPT 4 >>>>>>>>>> CSplit: End file OWLTEST.RH >>>>>>>>>> >>>>>>>>>> CSplit: Begin file OWLTEST.RC >>>>>>>>>> #include "owltest.rh" IDD_LOGINDIALOG DIALOG 55, 30, 180, 80 STYLE WS_CHILD | WS_VISIBLE FONT 8, "Helv" { LTEXT "Enter you name and password, please", ID_LOGINPROMPT, 10, 8, \ \ 160, 10 EDITTEXT ID_LOGINNAME, 10, 20, 160, 12, ES_AUTOHSCROLL | WS_BORDER | \ \ WS_TABSTOP EDITTEXT ID_LOGINPASS, 10, 36, 160, 12, ES_AUTOHSCROLL | ES_PASSWORD | \ \ WS_BORDER | WS_TABSTOP DEFPUSHBUTTON "&OK", IDOK, 70, 58, 40, 14 } >>>>>>>>>> CSplit: End file OWLTEST.RC >>>>>>>>>> >>>>>>>>>> CSplit: End part 1/1 crc: 4c53 >>>>>>>>>> Javier Kohen >jkohen@tough.com< [The_Crusher] http://jkohen.base.org +4:900/748.3+ _200:201/126_ ICQ:#3855350# PGPID:*3423EAA9* .!. Cuando nos sobra tiempo despus de trabajar, tratamos de hacer lo que se .!. llama pensar * Flema --- Terminate 5.00/Pro * Origin: The King of The Ring (4:900/748.3) --------------- FIDO MESSAGE AREA==> TOPIC: 239 C LANGUAGE Ref: F2M00021 Date: 02/07/98 From: FERNANDO ARIEL GONT Time: 10:30am \/To: JASEN BETTS (Read 2 times) Subj: Portability Hullo Jasen Betts, hope you are having a nice day!! 02-Feb-98 22:56:00, Jasen Betts wrote to FERNANDO ARIEL GONT Subject: Portability FA>> My GW-BASIC programs compile and run in IBM PCs and in MSXs!!! FA>> So.. why do you say BASIC is not portable? JB> MSX was a CPM thing wasn't it? No MSX is a "standard"... For example, I had (and have) a Talent MSX DPC-200.... If your computer supports MSX, that means that you can interchange programs with anyone who has MSX support... JB> GW and MSX Here are two Microsoft basic interpreters they are very JB> similar. No. The interpreter is MSX-BASIC, not MSX. JB> There are other basics that work differently Acorn,Siclair,pdp11 JB> :^) There are things in GWbasic that will never compile (which is JB> why they were removed from quick basic) Well, but MSX-BASIC compiles everything that can be compiled by GW-BASIC. So a GW-BASIC program is portable? (I mean, I can port it to my MSX system without any changes) Bye! -=> Yours sincerely, Fernando Ariel Gont <=- e-mail: FGont@siscor.bibnal.edu.ar e-mail "Good Stuff!" _*Magazine*_ : gstuff@siscor.bibnal.edu.ar FidoNet: 4:900/470.10 Sk-Network (Argentina): Murdock's Point (200:201/200.1) --- Terminate 5.00 UnReg(116) * Origin: ZzZZzzzZZzZZzzZzzzZZZ..... Shut up! (Genius sleeping! (4:900/470.10) --------------- FIDO MESSAGE AREA==> TOPIC: 239 C LANGUAGE Ref: F2M00022 Date: 02/11/98 From: JAVIER KOHEN Time: 01:38am \/To: ADAM MAJER (Read 2 times) Subj: Turbo Vision On 05-Feb-98, Adam Majer wrote to Javier Kohen about Turbo Vision. AM> JK>I FTPed TV 2.0 from Borland's site, but it didn't come with AM> source code, so JK>I wondered where is it available. If you buy a AM> compiler then it's included. I have BC++ 3.1 and TV came with it AM> (source) but never used it - OWL is my choice since DOS is AM> obsolete for major apps. Yes, even games. :( Actually, I own BC45. Borland droped TV sometime after BC31 was released. Borland put TV for free download in his FTP, there's where I got it from, the readme file names a docs.zip file that's not in the package. I just began working with OWL on the same project I intended to use TV, but at this moment I've achieved almost nothing. BTW, I don't like running Win95 games, as they are slower. I can't make Win95 games as I don't have MSVC... I don't want Win95, but that's another thread. Javier Kohen >jkohen@tough.com< [The_Crusher] http://jkohen.base.org +4:900/748.3+ _200:201/126_ ICQ:#3855350# PGPID:*3423EAA9* .!. We have a drugs party in 526! * Charged G.B.H --- Terminate 5.00/Pro * Origin: The King of The Ring (4:900/748.3) --------------- FIDO MESSAGE AREA==> TOPIC: 239 C LANGUAGE Ref: F2M00023 Date: 02/11/98 From: JAVIER KOHEN Time: 01:48am \/To: AHMAD AL-DOUSARY (Read 2 times) Subj: Memory exchange On 06-Feb-98, Ahmad Al-Dousary wrote to All about Memory exchange. AA> Hi All... I was wondering if it was possible to exchange two areas AA> of memory without the use of an auxiliary storage in C.. BTW this a ^= b; b ^= a; a ^= b; Then a' = b and b' = a. AA> is the C echo isn't it?... (At my BBS it is called OS2 & DOS echo) Yes, this is. Javier Kohen >jkohen@tough.com< [The_Crusher] http://jkohen.base.org +4:900/748.3+ _200:201/126_ ICQ:#3855350# PGPID:*3423EAA9* .!. Me llev la compu a la cama, pero solo somos amigos * Diego Lerner --- Terminate 5.00/Pro * Origin: The King of The Ring (4:900/748.3) --------------- FIDO MESSAGE AREA==> TOPIC: 239 C LANGUAGE Ref: F2M00024 Date: 02/13/98 From: JAVIER KOHEN Time: 03:47pm \/To: ALL (Read 2 times) Subj: DJGPP bugs Where do I report bugs in DJGPP? Couldn't find anything about it in the docs... FWIW, the bug's in the I/O system. When called rewind on a stream opened for appending, it'll rewind the write pointer (it shouldn't)... A few days ago I sent some code about this problem reporting that Borland didn't show anything... it was because the program was named log and 4DOS has a log command, too... that's already solved. Javier Kohen >jkohen@tough.com< [The_Crusher] http://jkohen.base.org +4:900/748.3+ _200:201/126_ ICQ:#3855350# PGPID:*3423EAA9* .!. Redundant book title: "Windows For Dummies" --- Terminate 5.00/Pro * Origin: The King of The Ring (4:900/748.3)