SCM Repository
View of /sml/trunk/src/MLRISC/c-calls/c-types.sml
Parent Directory
|
Revision Log
Revision 608 -
(download)
(annotate)
Mon Apr 10 18:57:09 2000 UTC (22 years, 2 months ago) by george
File size: 771 byte(s)
Mon Apr 10 18:57:09 2000 UTC (22 years, 2 months ago) by george
File size: 771 byte(s)
MLRISC.cm
(* c-types.sml * * COPYRIGHT (c) 1999 Bell Labs, Lucent Technologies * * A representation of C Types for specifying the arguments and results * of C function calls. *) structure CTypes = struct datatype c_type = C_void | C_float | C_double | C_long_double | C_unsigned of c_int | C_signed of c_int | C_PTR | C_ARRAY of (c_type * int) | C_STRUCT of c_type list and c_int = I_char | I_short | I_int | I_long | I_long_long (* multiple calling conventions on a single architecture *) type calling_convention = string (* prototype describing C function *) type c_proto = { conv : calling_convention, retTy : c_type, paramTys : c_type list } end
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |