From d261a5f4aad9e5b209a369132dcf7776522b3b2c Mon Sep 17 00:00:00 2001 From: Aaron Taylor Date: Sun, 23 May 2021 23:42:46 -0700 Subject: [PATCH] Ran clang-format on one file missed during previous commit. --- interface/gtp.h | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/interface/gtp.h b/interface/gtp.h index 1bddff8..69c6b70 100644 --- a/interface/gtp.h +++ b/interface/gtp.h @@ -48,45 +48,45 @@ #define GTP_BUFSIZE 1000 /* Status returned from callback functions. */ -#define GTP_QUIT -1 -#define GTP_OK 0 -#define GTP_FATAL 1 +#define GTP_QUIT -1 +#define GTP_OK 0 +#define GTP_FATAL 1 /* Whether the GTP command was successful. */ -#define GTP_SUCCESS 0 -#define GTP_FAILURE 1 +#define GTP_SUCCESS 0 +#define GTP_FAILURE 1 /* Function pointer for callback functions. */ -typedef int (*gtp_fn_ptr)(char *s); +typedef int (*gtp_fn_ptr)(char* s); /* Function pointer for vertex transform functions. */ -typedef void (*gtp_transform_ptr)(int ai, int aj, int *bi, int *bj); +typedef void (*gtp_transform_ptr)(int ai, int aj, int* bi, int* bj); /* Elements in the array of commands required by gtp_main_loop. */ struct gtp_command { - const char *name; - gtp_fn_ptr function; + const char* name; + gtp_fn_ptr function; }; void gtp_main_loop(struct gtp_command commands[], - FILE *gtp_input, FILE *gtp_output, FILE *gtp_dump_commands); + FILE* gtp_input, FILE* gtp_output, FILE* gtp_dump_commands); void gtp_internal_set_boardsize(int size); void gtp_set_vertex_transform_hooks(gtp_transform_ptr in, - gtp_transform_ptr out); -void gtp_mprintf(const char *format, ...); -void gtp_printf(const char *format, ...); + gtp_transform_ptr out); +void gtp_mprintf(const char* format, ...); +void gtp_printf(const char* format, ...); void gtp_start_response(int status); int gtp_finish_response(void); -int gtp_success(const char *format, ...); -int gtp_failure(const char *format, ...); +int gtp_success(const char* format, ...); +int gtp_failure(const char* format, ...); void gtp_panic(void); -int gtp_decode_color(char *s, int *color); -int gtp_decode_coord(char *s, int *m, int *n); -int gtp_decode_move(char *s, int *color, int *i, int *j); +int gtp_decode_color(char* s, int* color); +int gtp_decode_coord(char* s, int* m, int* n); +int gtp_decode_move(char* s, int* color, int* i, int* j); void gtp_print_vertices(int n, int movei[], int movej[]); void gtp_print_vertex(int i, int j); -extern FILE *gtp_output_file; +extern FILE* gtp_output_file; /* * Local Variables: -- 2.20.1