diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-08-07 14:21:27 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-08-07 14:21:27 +0200 |
commit | 3329eeafa1f08c5b9d410e57f761011d2e1ac1d6 (patch) | |
tree | eb7fbe019e09e569894f29c37fe9081060ace32c /MLKRoot.m | |
parent | a3f6140ef3dde8184ce2b46119e73d9dca63e73f (diff) |
Centralise declaration and documentation string handling.
Diffstat (limited to 'MLKRoot.m')
-rw-r--r-- | MLKRoot.m | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -624,4 +624,21 @@ as provided by method %@ of object %@", RETURN_VALUE (MLKLispValueWithForeignValue (returnValue, returnType)); } } + + ++(NSArray *) declarations_and_doc_and_forms:(NSArray *)args +{ + id decls, doc, forms; + id bodyAndDecls = denullify ([args objectAtIndex:0]); + + MLKSplitDeclarationsDocAndForms (&decls, &doc, &forms, bodyAndDecls); + + RETURN_VALUE ([MLKCons + cons:decls + with:[MLKCons + cons:doc + with:[MLKCons + cons:forms + with:nil]]]); +} @end |