This commit is contained in:
Nikolaj
2021-09-27 12:36:29 +02:00
parent 4e879f3163
commit 7f22e73b91
11 changed files with 569 additions and 0 deletions

37
A1/coord_query_naive.c Normal file
View File

@@ -0,0 +1,37 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <stdint.h>
#include <errno.h>
#include <assert.h>
#include "record.h"
#include "coord_query.h"
struct naive_data {
struct record *rs;
int n;
};
struct naive_data* mk_naive(struct record* rs, int n) {
assert(0);
// TODO
}
void free_naive(struct naive_data* data) {
assert(0);
// TODO
}
const struct record* lookup_naive(struct naive_data *data, double lon, double lat) {
assert(0);
// TODO
}
int main(int argc, char** argv) {
return coord_query_loop(argc, argv,
(mk_index_fn)mk_naive,
(free_index_fn)free_naive,
(lookup_fn)lookup_naive);
}