Ran clang-format on one file missed during previous commit.
authorAaron Taylor <ataylor@subgeniuskitty.com>
Mon, 24 May 2021 06:42:46 +0000 (23:42 -0700)
committerAaron Taylor <ataylor@subgeniuskitty.com>
Mon, 24 May 2021 06:42:46 +0000 (23:42 -0700)
interface/gtp.h

index 1bddff8..69c6b70 100644 (file)
 #define GTP_BUFSIZE 1000
 
 /* Status returned from callback functions. */
 #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. */
 
 /* 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. */
 
 /* Function pointer for callback functions. */
-typedef int (*gtp_fn_ptr)(char *s);
+typedef int (*gtp_fn_ptr)(chars);
 
 /* Function pointer for vertex transform functions. */
 
 /* 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 {
 
 /* 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[],
 };
 
 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,
 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 charformat, ...);
+void gtp_printf(const charformat, ...);
 void gtp_start_response(int status);
 int gtp_finish_response(void);
 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 charformat, ...);
+int gtp_failure(const charformat, ...);
 void gtp_panic(void);
 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);
 
 void gtp_print_vertices(int n, int movei[], int movej[]);
 void gtp_print_vertex(int i, int j);
 
-extern FILE *gtp_output_file;
+extern FILEgtp_output_file;
 
 /*
  * Local Variables:
 
 /*
  * Local Variables: