diff dwtest.c @ 2584:2acc7ba5dea0

Add HTIMER type and change dw_timer_() functions to use it. On existing platforms, HTIMER will be int for now allowing API backward compatibility. On new platforms, iOS and Android, these will be pointers to the timer objects. This allows simplifying the code paths on those platforms. May change it on other platforms such as Mac in a future major version.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 23 May 2021 21:39:25 +0000
parents 3da35cd91ca7
children 8253e17b20ad
line wrap: on
line diff
--- a/dwtest.c	Sun May 23 09:43:04 2021 +0000
+++ b/dwtest.c	Sun May 23 21:39:25 2021 +0000
@@ -151,7 +151,7 @@
 int font_height=12;
 int rows=10,width1=6,cols=80;
 char *current_file = NULL;
-int timerid;
+HTIMER timerid;
 int num_lines=0;
 int max_linewidth=0;
 int current_row=0,current_col=0;