comparison tern.c @ 652:f822d9216968

Merge
author Michael Pavone <pavone@retrodev.com>
date Tue, 30 Dec 2014 19:11:34 -0800
parents de6f00204fa2
children 1b2f8280ba81
comparison
equal deleted inserted replaced
620:9d6fed6501ba 652:f822d9216968
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 }