Mercurial > repos > blastem
comparison tern.c @ 744:fc68992cf18d
Merge windows branch with latest changes
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 28 May 2015 21:19:55 -0700 |
parents | de6f00204fa2 |
children | 1b2f8280ba81 |
comparison
equal
deleted
inserted
replaced
743:cf78cb045fa4 | 744:fc68992cf18d |
---|---|
120 tern_val val; | 120 tern_val val; |
121 val.ptrval = value; | 121 val.ptrval = value; |
122 return tern_insert(head, key, val); | 122 return tern_insert(head, key, val); |
123 } | 123 } |
124 | 124 |
125 | 125 char * tern_int_key(uint32_t key, char * buf) |
126 { | |
127 char * cur = buf; | |
128 while (key) | |
129 { | |
130 *(cur++) = (key & 0x7F) + 1; | |
131 key >>= 7; | |
132 } | |
133 *cur = 0; | |
134 return buf; | |
135 } |