]> granicus.if.org Git - nethack/commitdiff
delinting
authorAdam Powers <apowers@ato.ms>
Sat, 29 Aug 2020 17:27:51 +0000 (10:27 -0700)
committerAdam Powers <apowers@ato.ms>
Sat, 29 Aug 2020 17:27:51 +0000 (10:27 -0700)
win/shim/winshim.c

index 085a27684b2241b2ce4a46e5ec17ad487cfe909e..2334e9dec3fcc8195dc24f56bab773d3d9574c76 100644 (file)
@@ -35,9 +35,9 @@ void stub_graphics_set_callback(stub_callback_t cb) {
 }
 
 #ifdef __EMSCRIPTEN__
-// A2P = Argument to Pointer
+/* A2P = Argument to Pointer */
 #define A2P &
-// P2V = Pointer to Void
+/* P2V = Pointer to Void */
 #define P2V (void *)
 #define DECLCB(ret_type, name, fn_args, fmt, ...) \
 ret_type name fn_args { \
@@ -103,7 +103,6 @@ name args { \
 #define DECL(name, args) \
 void name args;
 
-// void DECLCB(shim_init_nhwindows,(int *argcp, char **argv), "pp", argcp, argv)
 VSTUB(shim_init_nhwindows,(int *argcp, char **argv))
 VSTUB(shim_player_selection,(void))
 VSTUB(shim_askname,(void))
@@ -116,8 +115,6 @@ VSTUB(shim_clear_nhwindow,(winid a))
 VSTUB(shim_display_nhwindow,(winid a, BOOLEAN_P b))
 VSTUB(shim_destroy_nhwindow,(winid a))
 VDECLCB(shim_curs,(winid a, int x, int y), "viii", A2P a, A2P x, A2P y)
-// VSTUB(shim_curs,(winid a, int x, int y))
-// DECL(shim_putstr,(winid w, int attr, const char *str))
 VDECLCB(shim_putstr,(winid w, int attr, const char *str), "viis", A2P w, A2P attr, P2V str)
 VSTUB(shim_display_file,(const char *a, BOOLEAN_P b))
 VSTUB(shim_start_menu,(winid w, unsigned long mbehavior))
@@ -130,9 +127,7 @@ VSTUB(shim_mark_synch,(void))
 VSTUB(shim_wait_synch,(void))
 VSTUB(shim_cliparound,(int a, int b))
 VSTUB(shim_update_positionbar,(char *a))
-// DECL(shim_print_glyph,(winid w, XCHAR_P x, XCHAR_P y, int glyph, int bkglyph))
 VDECLCB(shim_print_glyph,(winid w, int x, int y, int glyph, int bkglyph), "viiiii", A2P w, A2P x, A2P y, A2P glyph, A2P bkglyph)
-// DECL(shim_raw_print,(const char *str))
 VDECLCB(shim_raw_print,(const char *str), "vs", P2V str)
 VSTUB(shim_raw_print_bold,(const char *a))
 int STUB(shim_nhgetch,0,(void))
@@ -219,22 +214,4 @@ struct window_procs shim_procs = {
     genl_can_suspend_yes,
 };
 
-// void shim_print_glyph(winid w, XCHAR_P x, XCHAR_P y, int glyph, int bkglyph) {
-//     /* map glyph to character and color */
-//     // (void) mapglyph(glyph, &ch, &color, &special, x, y, 0);
-
-//     fprintf(stdout, "shim_print_glyph (%d,%d): %c\n", x,y,(char)glyph);
-//     fflush(stdout);
-// }
-
-// void shim_raw_print(const char *str) {
-//     fprintf(stdout, "shim_raw_print: %s\n", str);
-//     fflush(stdout);
-// }
-
-// void shim_putstr(winid w, int attr, const char *str) {
-//     fprintf(stdout, "shim_putstr (win %d): %s\n", w, str);
-//     fflush(stdout);
-// }
-
 #endif /* SHIM_GRAPHICS */
\ No newline at end of file