[dylan-lang/melange] 58f2c5: Handle size_t / ssize_t specially.

GitHub <[email protected]>
Newsgroups gmane.comp.lang.dylan.gwydion.cvs
Message-ID <548e377d6b8be_79653f8223b3d2bc8535d@hookshot-fe6-cp1-prd.iad.github.net.mail>
  Branch: refs/heads/handle-size-t-specially
  Home:   https://github.com/dylan-lang/melange
  Commit: 58f2c5e688b5ee9526055bb78ebfe42b985740c4
      https://github.com/dylan-lang/melange/commit/58f2c5e688b5ee9526055bb78ebfe42b985740c4
  Author: Bruce Mitchener <[email protected]>
  Date:   2014-12-15 (Mon, 15 Dec 2014)

  Changed paths:
    M melange-core/c-decl-state.dylan
    M melange-core/c-decl.dylan
    M melange-core/c-lexer.dylan
    M melange-core/c-parse.input
    M melange-core/library.dylan

  Log Message:
  -----------
  Handle size_t / ssize_t specially.

This makes it so that usages of size_t / ssize_t will get mapped
to the new C-FFI support for <C-size-t> and <C-ssize-t>.

Part of this patch treats size_t / ssize_t as new reserved words
that map to the correct pre-defined types. The other part adds
a special case to the typedef processing to skip any typedefs that
attempt to set the meaning of size_t / ssize_t, like this from the
OS X headers:

    typedef __darwin_size_t size_t;

_______________________________________________
chatter mailing list
[email protected]
https://lists.opendylan.org/mailman/listinfo/chatter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.