Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #23909

Re: Structures in Forth

From anton@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups comp.lang.forth
Subject Re: Structures in Forth
Date 2013-06-24 15:20 +0000
Organization Institut fuer Computersprachen, Technische Universitaet Wien
Message-ID <2013Jun24.172016@mips.complang.tuwien.ac.at> (permalink)
References <92bd792c-21b0-4cde-a86e-22e330d935b6@googlegroups.com>

Show all headers | View raw


m.a.m.hendrix@tue.nl writes:
>How would I have done this with ANS structures?

BTW, alternatively, you could have a C program that contains stuff like

  printf("%d 0 +field SDL_bla drop \n", offsetof(SDL_bla));

which you could compile and run on both platforms, and it would
produce the correct offsets for each platform, like

20 0 +field SDL_bla drop

And you could use SWIG to generate that C program for you from sdl.h.

- anton
-- 
M. Anton Ertl  http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
     New standard: http://www.forth200x.org/forth200x.html
   EuroForth 2013: http://www.euroforth.org/ef13/

Back to comp.lang.forth | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Structures in Forth m.a.m.hendrix@tue.nl - 2013-06-24 02:22 -0700
  Re: Structures in Forth Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-06-24 05:40 -0500
    Re: Structures in Forth m.a.m.hendrix@tue.nl - 2013-06-24 04:50 -0700
      Re: Structures in Forth Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-06-24 07:25 -0500
      Re: Structures in Forth Bernd Paysan <bernd.paysan@gmx.de> - 2013-06-24 14:29 +0200
        Re: Structures in Forth albert@spenarnc.xs4all.nl (Albert van der Horst) - 2013-06-24 13:17 +0000
        Re: Structures in Forth m.a.m.hendrix@tue.nl - 2013-06-24 06:35 -0700
          Re: Structures in Forth Bernd Paysan <bernd.paysan@gmx.de> - 2013-06-24 18:12 +0200
            Re: Structures in Forth Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-06-24 12:16 -0500
              Re: Structures in Forth Bernd Paysan <bernd.paysan@gmx.de> - 2013-06-24 20:55 +0200
      Re: Structures in Forth anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2013-06-24 15:35 +0000
      Re: Structures in Forth "Ed" <invalid@invalid.com> - 2013-06-25 19:42 +1000
  Re: Structures in Forth anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2013-06-24 15:10 +0000
    Re: Structures in Forth m.a.m.hendrix@tue.nl - 2013-06-24 23:39 -0700
      Re: Structures in Forth anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2013-06-27 17:49 +0000
        Re: Structures in Forth Alex McDonald <blog@rivadpm.com> - 2013-06-27 11:29 -0700
  Re: Structures in Forth anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2013-06-24 15:20 +0000
    Re: Structures in Forth m.a.m.hendrix@tue.nl - 2013-06-24 23:46 -0700
  Re: Structures in Forth Michael L Gassanenko <m_l_g3@yahoo.com> - 2013-06-27 02:08 -0700
    Re: Structures in Forth m.a.m.hendrix@tue.nl - 2013-06-27 03:27 -0700
      Re: Structures in Forth stephenXXX@mpeforth.com (Stephen Pelc) - 2013-06-27 10:41 +0000
      Re: Structures in Forth Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-06-27 07:28 -0500
      Re: Structures in Forth Bernd Paysan <bernd.paysan@gmx.de> - 2013-06-27 16:34 +0200

csiph-web