mirror of
https://github.com/lh3/minimap2.git
synced 2026-09-27 04:08:11 +08:00
@@ -1,3 +1,4 @@
|
||||
#include <stdlib.h>
|
||||
#include "mmpriv.h"
|
||||
|
||||
int mm_verbose = 1;
|
||||
@@ -120,6 +121,16 @@ double realtime(void)
|
||||
return tp.tv_sec + tp.tv_usec * 1e-6;
|
||||
}
|
||||
|
||||
void mm_err_puts(const char *str)
|
||||
{
|
||||
int ret;
|
||||
ret = puts(str);
|
||||
if (ret == EOF) {
|
||||
fprintf(stderr, "[ERROR] failed to write the results\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
|
||||
#include "ksort.h"
|
||||
|
||||
#define sort_key_128x(a) ((a).x)
|
||||
|
||||
Reference in New Issue
Block a user