view src/parallel_execution/compare.c @ 101:8987cf13d5bb

Add Allocate macro
author innparusu
date Wed, 02 Mar 2016 19:23:00 +0900
parents 1e074c3878c7
children a4507906938c
line wrap: on
line source

#include "context.h"

void compare(struct Context* context, struct Traverse* traverse, int key1, int key2) {
    if (key1 == key2) {
        traverse->result = EQ;
    } else if (key1 < key2) {
        traverse->result = GT;
    } else {
        traverse->result = LT;
    }
}