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:
72251c9
)
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 2f9956670e7f7f90a2496bbd1167f0107e6e77ce..c4760cd1d65e10b08864a2dac67d7b7c8ce48b8d 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))