From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,27200915cbff176 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-21 06:04:47 PST Path: archiver1.google.com!news2.google.com!fu-berlin.de!jussieu.fr!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Problem with C function pointers Date: 21 Dec 2003 09:04:11 -0500 Organization: Cuivre, Argent, Or Message-ID: References: <963c4dec.0312191413.15c9cb08@posting.google.com> <963c4dec.0312210506.27b8f4e1@posting.google.com> NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: melchior.cuivre.fr.eu.org 1072015462 34092 80.67.180.195 (21 Dec 2003 14:04:22 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Sun, 21 Dec 2003 14:04:22 +0000 (UTC) Cc: comp.lang.ada@ada-france.org To: skibochka@yahoo.com (Andrew Skiba) Return-Path: In-Reply-To: <963c4dec.0312210506.27b8f4e1@posting.google.com> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Gateway to the comp.lang.ada Usenet newsgroup List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:3669 Date: 2003-12-21T09:04:11-05:00 skibochka@yahoo.com (Andrew Skiba) writes: > > I suspect you left out some code, that sets "thiz". please post a > > small compilable example, if possible. > Obviously, Well, I have learned from many years of posting here never to assume the "obvious", but instead to ask for precise details. Often the problem is that the poster is assuming something they shouldn't (which was the case here :). > > Have you tried running under gdb, and examining "thiz"? > No, I printed it instead :-) It was "null", as you said. Learn gdb; it's much better than Put_Line. > > Just out of curiosity, what does DirectFB do? > This is a substitution for Windows DirectX on Linux. The FB stands for > Frame Buffer, but DirectFB takes care not only of the screen (frame > buffer), but also sound, keybord, mouse, as you might expect from > DirectX. An interesting example of it is "links" web browser, which > was originally text based, but with DirectFB you can see the graphics > on linux console. Good thing for embedded and mini-distributions, > which have no X. Hmm. So it _doesn't_ run under X Windows? then it is _not_ a "substitution" for DirectX, since that runs under the equivalent of X for Windows (which doesn't really have a separate name). How big is it, compared to X Windows? Now we have a third target for GtkAda :). -- -- Stephe