-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare portable hash numbers (bootstrap)
- Loading branch information
1 parent
d384f3b
commit d21c693
Showing
2 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
;*=====================================================================*/ | ||
;* .../prgm/project/bigloo/bigloo/runtime/Llib/hash-generic.sch */ | ||
;* ------------------------------------------------------------- */ | ||
;* Author : Manuel Serrano */ | ||
;* Creation : Tue Jul 9 13:49:25 2024 */ | ||
;* Last change : Thu Aug 1 14:44:46 2024 (serrano) */ | ||
;* Copyright : 2024 Manuel Serrano */ | ||
;* ------------------------------------------------------------- */ | ||
;* Generic portable hash implementation. */ | ||
;*=====================================================================*/ | ||
|
||
;*---------------------------------------------------------------------*/ | ||
;* The directives */ | ||
;*---------------------------------------------------------------------*/ | ||
(directives | ||
(export (bgl_obj_hash_number::long ::obj)) | ||
(extern (export bgl_obj_hash_number "bgl_obj_hash_number"))) | ||
|
||
;*---------------------------------------------------------------------*/ | ||
;* bgl_obj_hash_number ... */ | ||
;*---------------------------------------------------------------------*/ | ||
(define (bgl_obj_hash_number obj) | ||
(cond | ||
((vector? obj) 17) | ||
((object? obj) 27) | ||
(else 23))) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters