chiark
/
gitweb
/
~mdw
/
clg
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d6c79d5
)
Added new function VERSION
author
espen
<espen>
Thu, 10 Jan 2008 13:32:34 +0000
(13:32 +0000)
committer
espen
<espen>
Thu, 10 Jan 2008 13:32:34 +0000
(13:32 +0000)
cairo/cairo.lisp
patch
|
blob
|
blame
|
history
diff --git
a/cairo/cairo.lisp
b/cairo/cairo.lisp
index a7987325ba7f8a680a626a2a4398164d33c845a3..824939f6941ecb715b960cfd10c51f638e9ab39d 100644
(file)
--- a/
cairo/cairo.lisp
+++ b/
cairo/cairo.lisp
@@
-20,7
+20,7
@@
;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-;; $Id: cairo.lisp,v 1.2
0 2008-01-10 13:31:39
espen Exp $
+;; $Id: cairo.lisp,v 1.2
1 2008-01-10 13:32:34
espen Exp $
(in-package "CAIRO")
(in-package "CAIRO")
@@
-1076,3
+1076,17
@@
(defbinding matrix-transform-point () nil
(matrix matrix)
(x double-float :in/out)
(y double-float :in/out))
(matrix matrix)
(x double-float :in/out)
(y double-float :in/out))
+
+
+;; Version information
+
+(defbinding %version () int)
+
+(defun version ()
+ (let ((version (%version)))
+ (values
+ (mod (truncate version 10000) 100)
+ (mod (truncate version 100) 100)
+ (mod version 100))))
+
+(defbinding version-string () (static string))