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:
60e767f
)
Size of TYPE-NUMBER detected by calling C
author
espen
<espen>
Fri, 23 Feb 2007 12:53:08 +0000
(12:53 +0000)
committer
espen
<espen>
Fri, 23 Feb 2007 12:53:08 +0000
(12:53 +0000)
glib/gtype.lisp
patch
|
blob
|
blame
|
history
diff --git
a/glib/gtype.lisp
b/glib/gtype.lisp
index 0de8bbd7be4ae886032a0963b84e1be706b74fc4..747f0a82acbb8f743ff431f2f1a999afbff5eb36 100644
(file)
--- a/
glib/gtype.lisp
+++ b/
glib/gtype.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: gtype.lisp,v 1.6
0 2007-01-12 10:32:43
espen Exp $
+;; $Id: gtype.lisp,v 1.6
1 2007-02-23 12:53:08
espen Exp $
(in-package "GLIB")
(in-package "GLIB")
@@
-30,7
+30,10
@@
(use-prefix "g")
(defbinding type-init () nil)
(type-init)
(defbinding type-init () nil)
(type-init)
-(deftype type-number () 'unsigned-long)
+(eval-when (:compile-toplevel :load-toplevel :execute)
+ (defbinding (bitsize-of-gtype "bitsize_of_gtype") () unsigned-int))
+
+(deftype type-number () `(unsigned-byte ,(bitsize-of-gtype)))
(deftype gtype () 'symbol)
(deftype gtype () 'symbol)