Mercurial > hg > Members > Moririn
view src/llrb/compare.c @ 196:bd96dffaa76a
generate_stub
author | mir3636 |
---|---|
date | Fri, 16 Dec 2016 22:04:05 +0900 |
parents | dc6f665bb753 |
children |
line wrap: on
line source
#include "llrbContext.h" void compare(struct Context* context, struct Tree* tree, int key1, int key2) { if (key1 == key2) { tree->result = EQ; } else if (key1 < key2) { tree->result = GT; } else { tree->result = LT; } }