To load: | (require (planet synx/pointer-address:1:1)) |
Old style: | (require (planet "main.ss" ("synx" "pointer-address.plt" 1 1))) |
Package description: | The address of a C pointer |
Downloads this week: | 0 |
Total downloads: | 66 |
Tickets: | 0 |
Open tickets: | 0 |
Primary files: | [no interface available] |
Current version |
PLaneT version | External version | Source | DLs | Docs | Req. PLT | Date added |
(1 1) | — | [browse] | 51 | [none] | [none] | 2009-12-07 |
To load: (require (planet synx/pointer-address:1:1)) | ||||||
Available in repositories: 4.x, 3xx | ||||||
The address of a C pointerThis module exposes the address of a C pointer as an integer. plt does not normally do this for some reason, so a C extension was necessary. You can use this integer to hash pointers perhaps, such that no two pointers with the same address will have that hash. Or you could display the pointer's address to debug whether or not you are freeing the right one. It's useful for uniquely and completely differentiating C pointers, even if the _cpointer structures that contain them are not eq?. Incidentally if two addresses are equal, then ptr-equal? should always return #t. |
Old versions |
PLaneT version | External version | Source | DLs | Docs | Req. PLT | Date added |
(1 0) | — | [browse] | 15 | [none] | [none] | 2009-03-17 |
To load: (require (planet "main.ss" ("synx" "pointer-address.plt" 1 (= 0)))) | ||||||
Available in repositories: 4.x, 3xx | ||||||
The address of a C pointerThis module exposes the address of a C pointer as an integer. plt does not normally do this for some reason, so a C extension was necessary. You can use this integer to hash pointers perhaps, such that no two pointers with the same address will have that hash. Or you could display the pointer's address to debug whether or not you are freeing the right one. It's useful for uniquely and completely differentiating C pointers, even if the _cpointer structures that contain them are not eq?. Incidentally if two addresses are equal, then ptr-equal? should always return #t. |