PreviousUpNext

15.4.221  src/lib/compiler/back/low/ccalls/ctypes.pkg

## ctypes.pkg

# Compiled by:
#     src/lib/compiler/back/low/lib/lowhalf.lib



# A representation of C Types for specifying
# the arguments and results of C function calls.


package ctypes {

    Ctype
      = VOID
      | FLOAT
      | DOUBLE
      | LONG_DOUBLE
      | UNSIGNED  Cint
      | SIGNED    Cint
      | PTR
      | ARRAY   (Ctype, Int)
      | STRUCT  List(Ctype)
      | UNION   List(Ctype)

    also
    Cint
      = CHAR
      | SHORT
      | INT
      | LONG
      | LONG_LONG
      ;


    # Support multiple calling conventions on a single architecture: 
    #
    Calling_Convention = String;

    # Mythryl representation for a C function call prototype: 
    #
    Cfun_Type
      =
      {
        calling_convention:  Calling_Convention,
        return_type:         Ctype,
        parameter_types:     List(Ctype)
      };

};


## COPYRIGHT (c) 1999 Bell Labs, Lucent Technologies
## Subsequent changes by Jeff Prothero Copyright (c) 2010-2015,
## released per terms of SMLNJ-COPYRIGHT.


Comments and suggestions to: bugs@mythryl.org

PreviousUpNext