chiark / gitweb /
src/c-types-*.lisp: New type for functions which take keyword arguments.
[sod] / src / c-types-proto.lisp
index 55f2f3105953af203c3294cb0cd99c0e39d09cb7..9fe61267cb4d0b09a61744d4b38a2ada711a5882 100644 (file)
@@ -240,13 +240,15 @@ (defun c-name-case (name)
 ;;;--------------------------------------------------------------------------
 ;;; Function arguments.
 
-(export '(argument argumentp make-argument argument-name argument-type))
-(defstruct (argument (:constructor make-argument (name type
+(export '(argument argumentp make-argument
+         argument-name argument-type argument-default))
+(defstruct (argument (:constructor make-argument (name type &optional default
                                                  &aux (%type type)))
                     (:predicate argumentp))
   "Simple structure representing a function argument."
   (name nil :type t :read-only t)
-  (%type nil :type c-type :read-only t))
+  (%type nil :type c-type :read-only t)
+  (default nil :type t :read-only t))
 (define-access-wrapper argument-type argument-%type :read-only t)
 
 (export 'commentify-argument-name)