From 147ca7f29d3e0ca7d61cb100695c38b07497438f Mon Sep 17 00:00:00 2001 From: Simon Naarmann Date: Sun, 11 Jun 2023 16:57:55 +0200 Subject: [PATCH] Remove all trailing whitespace --- allegro5/allegro_android.d | 2 +- allegro5/allegro_audio.d | 8 ++++---- allegro5/allegro_native_dialog.d | 16 ++++++++-------- allegro5/allegro_primitives.d | 18 +++++++++--------- allegro5/bitmap_draw.d | 2 +- allegro5/bitmap_io.d | 2 +- allegro5/bitmap_lock.d | 2 +- allegro5/config.d | 2 +- allegro5/display.d | 6 +++--- allegro5/events.d | 14 +++++++------- allegro5/file.d | 6 +++--- allegro5/fixed.d | 16 ++++++++-------- allegro5/fshook.d | 8 ++++---- allegro5/joystick.d | 2 +- allegro5/keyboard.d | 2 +- allegro5/keycodes.d | 2 +- allegro5/memory.d | 4 ++-- allegro5/path.d | 2 +- allegro5/render_state.d | 10 +++++----- allegro5/system.d | 10 +++++----- allegro5/tls.d | 2 +- allegro5/touch_input.d | 2 +- allegro5/utf8.d | 6 +++--- 23 files changed, 72 insertions(+), 72 deletions(-) diff --git a/allegro5/allegro_android.d b/allegro5/allegro_android.d index bdd0875..a1f54ee 100644 --- a/allegro5/allegro_android.d +++ b/allegro5/allegro_android.d @@ -8,5 +8,5 @@ nothrow @nogc extern(C) void al_android_set_apk_file_interface(); const(char)* al_android_get_os_version(); void al_android_set_apk_fs_interface(); - void _al_android_set_capture_volume_keys(ALLEGRO_DISPLAY* display, bool onoff); + void _al_android_set_capture_volume_keys(ALLEGRO_DISPLAY* display, bool onoff); } diff --git a/allegro5/allegro_audio.d b/allegro5/allegro_audio.d index 8e8c627..8a93a2e 100644 --- a/allegro5/allegro_audio.d +++ b/allegro5/allegro_audio.d @@ -55,7 +55,7 @@ nothrow @nogc extern (C) ALLEGRO_CHANNEL_CONF_6_1 = 0x61, ALLEGRO_CHANNEL_CONF_7_1 = 0x71 } - + const ALLEGRO_MAX_CHANNELS = 8; enum ALLEGRO_PLAYMODE @@ -75,7 +75,7 @@ nothrow @nogc extern (C) } const float ALLEGRO_AUDIO_PAN_NONE = -1000.0f; - + enum ALLEGRO_AUDIO_EVENT_TYPE { ALLEGRO_EVENT_AUDIO_ROUTE_CHANGE = 520, @@ -92,9 +92,9 @@ nothrow @nogc extern (C) } struct ALLEGRO_SAMPLE_INSTANCE {}; - + struct ALLEGRO_AUDIO_STREAM {}; - + struct ALLEGRO_MIXER {}; struct ALLEGRO_VOICE {}; diff --git a/allegro5/allegro_native_dialog.d b/allegro5/allegro_native_dialog.d index 84eb921..89ba76a 100644 --- a/allegro5/allegro_native_dialog.d +++ b/allegro5/allegro_native_dialog.d @@ -36,12 +36,12 @@ nothrow @nogc extern (C) { const ALLEGRO_MENU_SEPARATOR = ALLEGRO_MENU_INFO(null, -1, 0, null); } - + template ALLEGRO_START_OF_MENU(const(char)[] caption, int id) { const ALLEGRO_START_OF_MENU = ALLEGRO_MENU_INFO(mixin(`"` ~ caption ~ `->\0"`), id, 0, NULL); } - + template ALLEGRO_END_OF_MENU() { const ALLEGRO_END_OF_MENU = ALLEGRO_MENU_INFO(null, 0, 0, null); @@ -54,14 +54,14 @@ nothrow @nogc extern (C) int al_get_native_file_dialog_count(in ALLEGRO_FILECHOOSER* dialog); ALLEGRO_PATH* al_get_native_file_dialog_path(in ALLEGRO_FILECHOOSER* dialog, size_t index); void al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER* dialog); - + int al_show_native_message_box(ALLEGRO_DISPLAY* display, in char* title, in char* heading, in char* text, in char* buttons, int flags); ALLEGRO_TEXTLOG* al_open_native_text_log(in char* title, int flags); void al_close_native_text_log(ALLEGRO_TEXTLOG* textlog); void al_append_native_text_log(ALLEGRO_TEXTLOG* textlog, in char* format, ...); ALLEGRO_EVENT_SOURCE* al_get_native_text_log_event_source(ALLEGRO_TEXTLOG* textlog); - + /* creating/modifying menus */ ALLEGRO_MENU* al_create_menu();; ALLEGRO_MENU* al_create_popup_menu();; @@ -84,16 +84,16 @@ nothrow @nogc extern (C) } ALLEGRO_BITMAP* al_get_menu_item_icon(ALLEGRO_MENU* menu, int pos); void al_set_menu_item_icon(ALLEGRO_MENU* menu, int pos, ALLEGRO_BITMAP* icon); - + /* querying menus */ ALLEGRO_MENU* al_find_menu(ALLEGRO_MENU* haystack, ushort id); bool al_find_menu_item(ALLEGRO_MENU* haystack, ushort id, ALLEGRO_MENU** menu, int* index); - + /* menu events */ ALLEGRO_EVENT_SOURCE* al_get_default_menu_event_source();; ALLEGRO_EVENT_SOURCE* al_enable_menu_event_source(ALLEGRO_MENU* menu); void al_disable_menu_event_source(ALLEGRO_MENU* menu); - + /* displaying menus */ ALLEGRO_MENU* al_get_display_menu(ALLEGRO_DISPLAY* display); bool al_set_display_menu(ALLEGRO_DISPLAY* display, ALLEGRO_MENU* menu); @@ -120,7 +120,7 @@ nothrow @nogc extern (C) ALLEGRO_MESSAGEBOX_YES_NO = 1<<3, ALLEGRO_MESSAGEBOX_QUESTION = 1<<4 } - + enum { ALLEGRO_TEXTLOG_NO_CLOSE = 1<<0, diff --git a/allegro5/allegro_primitives.d b/allegro5/allegro_primitives.d index 56d49d8..6ba62b7 100644 --- a/allegro5/allegro_primitives.d +++ b/allegro5/allegro_primitives.d @@ -61,7 +61,7 @@ nothrow @nogc extern (C) ALLEGRO_PRIM_HALF_FLOAT_2, ALLEGRO_PRIM_HALF_FLOAT_4 } - + enum ALLEGRO_LINE_JOIN { ALLEGRO_LINE_JOIN_NONE, @@ -92,7 +92,7 @@ nothrow @nogc extern (C) const int ALLEGRO_PRIM_QUALITY = 10; - struct ALLEGRO_VERTEX_ELEMENT + struct ALLEGRO_VERTEX_ELEMENT { int attribute; int storage; @@ -109,7 +109,7 @@ nothrow @nogc extern (C) } struct ALLEGRO_VERTEX_BUFFER {}; - + struct ALLEGRO_INDEX_BUFFER {}; uint al_get_allegro_primitives_version(); @@ -123,10 +123,10 @@ nothrow @nogc extern (C) int al_draw_indexed_prim(in void* vtxs, in ALLEGRO_VERTEX_DECL* decl, ALLEGRO_BITMAP* texture, in int* indices, int num_vtx, int type); int al_draw_vertex_buffer(ALLEGRO_VERTEX_BUFFER* vertex_buffer, ALLEGRO_BITMAP* texture, int start, int end, int type); int al_draw_indexed_buffer(ALLEGRO_VERTEX_BUFFER* vertex_buffer, ALLEGRO_BITMAP* texture, ALLEGRO_INDEX_BUFFER* index_buffer, int start, int end, int type); - + ALLEGRO_VERTEX_DECL* al_create_vertex_decl(in ALLEGRO_VERTEX_ELEMENT* elements, int stride); void al_destroy_vertex_decl(ALLEGRO_VERTEX_DECL* decl); - + /* * Vertex buffers */ @@ -135,7 +135,7 @@ nothrow @nogc extern (C) void* al_lock_vertex_buffer(ALLEGRO_VERTEX_BUFFER* buffer, int offset, int length, int flags); void al_unlock_vertex_buffer(ALLEGRO_VERTEX_BUFFER* buffer); int al_get_vertex_buffer_size(ALLEGRO_VERTEX_BUFFER* buffer); - + /* * Index buffers */ @@ -156,11 +156,11 @@ nothrow @nogc extern (C) void al_draw_soft_triangle(ALLEGRO_VERTEX* v1, ALLEGRO_VERTEX* v2, ALLEGRO_VERTEX* v3, uintptr_t state, void function(uintptr_t, ALLEGRO_VERTEX*, ALLEGRO_VERTEX*, ALLEGRO_VERTEX*) init, void function(uintptr_t, int, int, int, int) first, - void function(uintptr_t, int) step, + void function(uintptr_t, int) step, void function(uintptr_t, int, int, int) draw); void al_draw_soft_line(ALLEGRO_VERTEX* v1, ALLEGRO_VERTEX* v2, uintptr_t state, void function(uintptr_t, int, int, ALLEGRO_VERTEX*, ALLEGRO_VERTEX*) first, - void function(uintptr_t, int) step, + void function(uintptr_t, int) step, void function(uintptr_t, int, int) draw); /* @@ -190,7 +190,7 @@ nothrow @nogc extern (C) void al_draw_filled_circle(float cx, float cy, float r, ALLEGRO_COLOR color); void al_draw_filled_pieslice(float cx, float cy, float r, float start_theta, float delta_theta, ALLEGRO_COLOR color); void al_draw_filled_rounded_rectangle(float x1, float y1, float x2, float y2, float rx, float ry, ALLEGRO_COLOR color); - + void al_draw_polyline(in float* vertices, int vertex_stride, int vertex_count, ALLEGRO_LINE_JOIN join_style, ALLEGRO_LINE_CAP cap_style, ALLEGRO_COLOR color, float thickness, float miter_limit); void al_draw_polygon(in float* vertices, int vertex_count, ALLEGRO_LINE_JOIN join_style, ALLEGRO_COLOR color, float thickness, float miter_limit); diff --git a/allegro5/bitmap_draw.d b/allegro5/bitmap_draw.d index f682a4c..9b820d7 100644 --- a/allegro5/bitmap_draw.d +++ b/allegro5/bitmap_draw.d @@ -11,7 +11,7 @@ nothrow @nogc extern(C) ALLEGRO_FLIP_HORIZONTAL = 0x00001, ALLEGRO_FLIP_VERTICAL = 0x00002 } - + /* Blitting */ void al_draw_bitmap(ALLEGRO_BITMAP* bitmap, float dx, float dy, int flags); void al_draw_bitmap_region(ALLEGRO_BITMAP* bitmap, float sx, float sy, float sw, float sh, float dx, float dy, int flags); diff --git a/allegro5/bitmap_io.d b/allegro5/bitmap_io.d index 78e79ed..2d707db 100644 --- a/allegro5/bitmap_io.d +++ b/allegro5/bitmap_io.d @@ -14,7 +14,7 @@ nothrow @nogc extern(C) ALLEGRO_NO_PREMULTIPLIED_ALPHA = 0x0200, /* was a bitmap flag in 5.0 */ ALLEGRO_KEEP_INDEX = 0x0800 } - + alias ALLEGRO_BITMAP* function(in char* filename) ALLEGRO_IIO_LOADER_FUNCTION; alias ALLEGRO_BITMAP* function(ALLEGRO_FILE* fp) ALLEGRO_IIO_FS_LOADER_FUNCTION; alias bool function(in char* filename, ALLEGRO_BITMAP* bitmap) ALLEGRO_IIO_SAVER_FUNCTION; diff --git a/allegro5/bitmap_lock.d b/allegro5/bitmap_lock.d index 2135800..ee68b7f 100644 --- a/allegro5/bitmap_lock.d +++ b/allegro5/bitmap_lock.d @@ -14,7 +14,7 @@ nothrow @nogc extern(C) ALLEGRO_LOCK_WRITEONLY = 2 } - struct ALLEGRO_LOCKED_REGION + struct ALLEGRO_LOCKED_REGION { void* data; int format; diff --git a/allegro5/config.d b/allegro5/config.d index a529a89..0e2325c 100644 --- a/allegro5/config.d +++ b/allegro5/config.d @@ -8,7 +8,7 @@ nothrow @nogc extern (C) struct ALLEGRO_CONFIG {}; struct ALLEGRO_CONFIG_SECTION {}; struct ALLEGRO_CONFIG_ENTRY {}; - + ALLEGRO_CONFIG* al_create_config(); void al_add_config_section(ALLEGRO_CONFIG* config, in char* name); void al_set_config_value(ALLEGRO_CONFIG* config, in char* section, in char* key, in char* value); diff --git a/allegro5/display.d b/allegro5/display.d index 9991117..abfa20b 100644 --- a/allegro5/display.d +++ b/allegro5/display.d @@ -73,7 +73,7 @@ nothrow @nogc extern (C) ALLEGRO_REQUIRE, ALLEGRO_SUGGEST } - + enum ALLEGRO_DISPLAY_ORIENTATION { ALLEGRO_DISPLAY_ORIENTATION_UNKNOWN = 0, @@ -152,11 +152,11 @@ nothrow @nogc extern (C) void al_reset_new_display_options(); void al_set_display_option(ALLEGRO_DISPLAY* display, int option, int value); int al_get_display_option(ALLEGRO_DISPLAY* display, int option); - + /*Deferred drawing*/ void al_hold_bitmap_drawing(bool hold); bool al_is_bitmap_drawing_held(); - + void al_acknowledge_drawing_halt(ALLEGRO_DISPLAY* display); void al_acknowledge_drawing_resume(ALLEGRO_DISPLAY *display); } diff --git a/allegro5/events.d b/allegro5/events.d index 45d7d26..b5f7e49 100644 --- a/allegro5/events.d +++ b/allegro5/events.d @@ -82,12 +82,12 @@ nothrow @nogc extern (C) { int[32] __pad = void; } - + struct ALLEGRO_ANY_EVENT { mixin(_AL_EVENT_HEADER!("ALLEGRO_EVENT_SOURCE")); } - + struct ALLEGRO_DISPLAY_EVENT { mixin(_AL_EVENT_HEADER!("ALLEGRO_DISPLAY")); @@ -136,7 +136,7 @@ nothrow @nogc extern (C) long count; double error; } - + struct ALLEGRO_TOUCH_EVENT { mixin(_AL_EVENT_HEADER!("ALLEGRO_TOUCH_INPUT")); @@ -151,7 +151,7 @@ nothrow @nogc extern (C) float dx, dy; bool primary; } - + struct ALLEGRO_USER_EVENT_DESCRIPTOR; struct ALLEGRO_USER_EVENT @@ -163,12 +163,12 @@ nothrow @nogc extern (C) intptr_t data3; intptr_t data4; } - + union ALLEGRO_EVENT { /* This must be the same as the first field of _AL_EVENT_HEADER. */ ALLEGRO_EVENT_TYPE type; - + ALLEGRO_ANY_EVENT any; ALLEGRO_DISPLAY_EVENT display; ALLEGRO_JOYSTICK_EVENT joystick; @@ -178,7 +178,7 @@ nothrow @nogc extern (C) ALLEGRO_TOUCH_EVENT touch; ALLEGRO_USER_EVENT user; } - + /* Event sources */ void al_init_user_event_source(ALLEGRO_EVENT_SOURCE* src); void al_destroy_user_event_source(ALLEGRO_EVENT_SOURCE* src); diff --git a/allegro5/file.d b/allegro5/file.d index adf4bc6..bbf7157 100644 --- a/allegro5/file.d +++ b/allegro5/file.d @@ -33,11 +33,11 @@ nothrow @nogc extern (C) int function(ALLEGRO_FILE* f, int c) fi_fungetc; off_t function(ALLEGRO_FILE* f) fi_fsize; } - + struct ALLEGRO_FILE { } - + enum ALLEGRO_SEEK { ALLEGRO_SEEK_SET = 0, @@ -83,7 +83,7 @@ nothrow @nogc extern (C) /* Specific to stdio backend. */ ALLEGRO_FILE* al_fopen_fd(int fd, in char* mode); ALLEGRO_FILE* al_make_temp_file(in char* tmpl, ALLEGRO_PATH **ret_path); - + /* Specific to slices. */ ALLEGRO_FILE* al_fopen_slice(ALLEGRO_FILE* fp, size_t initial_size, in char *mode); diff --git a/allegro5/fixed.d b/allegro5/fixed.d index 3574152..ef7f8d7 100644 --- a/allegro5/fixed.d +++ b/allegro5/fixed.d @@ -7,10 +7,10 @@ import core.stdc.errno; nothrow @nogc extern (C) { alias int al_fixed; - + const al_fixed al_fixtorad_r = cast(al_fixed)1608; const al_fixed al_radtofix_r = cast(al_fixed)2670177; - + al_fixed al_fixsqrt(al_fixed x); al_fixed al_fixhypot(al_fixed x, al_fixed y); al_fixed al_fixatan(al_fixed x); @@ -32,12 +32,12 @@ nothrow @nogc extern (C) return cast(al_fixed)(x * 65536.0 + (x < 0 ? -0.5 : 0.5)); } - + double al_fixtof(al_fixed x) { return cast(double)x / 65536.0; } - + al_fixed al_fixadd(al_fixed x, al_fixed y) { al_fixed result = x + y; @@ -78,9 +78,9 @@ nothrow @nogc extern (C) else return result; } - else + else { - if ((x > 0) && (y < 0)) + if ((x > 0) && (y < 0)) { al_set_errno(ERANGE); return 0x7FFFFFFF; @@ -96,7 +96,7 @@ nothrow @nogc extern (C) long ly = y; long lres = (lx*ly); - if (lres > 0x7FFFFFFF0000L) + if (lres > 0x7FFFFFFF0000L) { al_set_errno(ERANGE); return 0x7FFFFFFF; @@ -133,7 +133,7 @@ nothrow @nogc extern (C) al_set_errno(ERANGE); return 0x80000000; } - else + else { return cast(al_fixed)(lres); } diff --git a/allegro5/fshook.d b/allegro5/fshook.d index a3d5144..2839d87 100644 --- a/allegro5/fshook.d +++ b/allegro5/fshook.d @@ -18,7 +18,7 @@ import core.stdc.time : time_t; nothrow @nogc extern (C) { - struct ALLEGRO_FS_ENTRY + struct ALLEGRO_FS_ENTRY { const ALLEGRO_FS_INTERFACE* vtable; } @@ -32,7 +32,7 @@ nothrow @nogc extern (C) ALLEGRO_FILEMODE_ISFILE = 1 << 4, ALLEGRO_FILEMODE_ISDIR = 1 << 5, } - + struct ALLEGRO_FS_INTERFACE { ALLEGRO_FS_ENTRY* function(in char* path) fs_create_entry; @@ -56,7 +56,7 @@ nothrow @nogc extern (C) ALLEGRO_PATH* function() fs_get_current_directory; bool function(in char* path) fs_change_directory; bool function(in char* path) fs_make_directory; - + ALLEGRO_FILE * function(ALLEGRO_FS_ENTRY* e, in char* mode) fs_open_file; } @@ -81,7 +81,7 @@ nothrow @nogc extern (C) char* al_get_current_directory(); bool al_change_directory(in char* path); bool al_make_directory(in char* path); - + ALLEGRO_FILE* al_open_fs_entry(ALLEGRO_FS_ENTRY* e, in char* mode); enum ALLEGRO_FOR_EACH_FS_ENTRY_RESULT diff --git a/allegro5/joystick.d b/allegro5/joystick.d index b756c8c..21bfae0 100644 --- a/allegro5/joystick.d +++ b/allegro5/joystick.d @@ -8,7 +8,7 @@ nothrow @nogc extern (C) private const int _AL_MAX_JOYSTICK_AXES = 3; private const int _AL_MAX_JOYSTICK_STICKS = 16; private const int _AL_MAX_JOYSTICK_BUTTONS = 32; - + struct ALLEGRO_JOYSTICK {}; struct ALLEGRO_JOYSTICK_STATE diff --git a/allegro5/keyboard.d b/allegro5/keyboard.d index b3f1c12..7074e5e 100644 --- a/allegro5/keyboard.d +++ b/allegro5/keyboard.d @@ -16,7 +16,7 @@ nothrow @nogc extern (C) /* internal */ uint[(ALLEGRO_KEY_MAX + 31) / 32] __key_down__internal__; } - + bool al_is_keyboard_installed(); bool al_install_keyboard(); void al_uninstall_keyboard(); diff --git a/allegro5/keycodes.d b/allegro5/keycodes.d index be08b72..bc07e4e 100644 --- a/allegro5/keycodes.d +++ b/allegro5/keycodes.d @@ -117,7 +117,7 @@ enum ALLEGRO_KEY_BACKQUOTE = 104, /* MacOS X */ ALLEGRO_KEY_SEMICOLON2 = 105, /* MacOS X -- TODO: ask lillo what this should be */ ALLEGRO_KEY_COMMAND = 106, /* MacOS X */ - + ALLEGRO_KEY_BACK = 107, /* Android back key */ ALLEGRO_KEY_VOLUME_UP = 108, ALLEGRO_KEY_VOLUME_DOWN = 109, diff --git a/allegro5/memory.d b/allegro5/memory.d index 42a57c2..8394b76 100644 --- a/allegro5/memory.d +++ b/allegro5/memory.d @@ -11,12 +11,12 @@ nothrow @nogc extern (C) } void al_set_memory_interface(ALLEGRO_MEMORY_INTERFACE* iface); - + void* al_malloc_with_context(size_t n, int line, in char* file, in char* func); void al_free_with_context(void* ptr, int line, in char* file, in char* func); void* al_realloc_with_context(void* ptr, size_t n, int line, in char* file, in char* func); void* al_calloc_with_context(size_t count, size_t n, int line, in char* file, in char* func); - + void* al_malloc(size_t n) { return al_malloc_with_context(n, 0, "", ""); diff --git a/allegro5/path.d b/allegro5/path.d index 69db216..948e126 100644 --- a/allegro5/path.d +++ b/allegro5/path.d @@ -14,7 +14,7 @@ nothrow @nogc extern (C) const char ALLEGRO_NATIVE_PATH_SEP = '/'; const char ALLEGRO_NATIVE_DRIVE_SEP = '\0'; } - + struct ALLEGRO_PATH {}; ALLEGRO_PATH* al_create_path(in char* str); diff --git a/allegro5/render_state.d b/allegro5/render_state.d index 8ac6dc6..15ea0d1 100644 --- a/allegro5/render_state.d +++ b/allegro5/render_state.d @@ -19,11 +19,11 @@ nothrow @nogc extern(C) { ALLEGRO_RENDER_NEVER, ALLEGRO_RENDER_ALWAYS, - ALLEGRO_RENDER_LESS, - ALLEGRO_RENDER_EQUAL, - ALLEGRO_RENDER_LESS_EQUAL, - ALLEGRO_RENDER_GREATER, - ALLEGRO_RENDER_NOT_EQUAL, + ALLEGRO_RENDER_LESS, + ALLEGRO_RENDER_EQUAL, + ALLEGRO_RENDER_LESS_EQUAL, + ALLEGRO_RENDER_GREATER, + ALLEGRO_RENDER_NOT_EQUAL, ALLEGRO_RENDER_GREATER_EQUAL } diff --git a/allegro5/system.d b/allegro5/system.d index fc0528f..ccf8183 100644 --- a/allegro5/system.d +++ b/allegro5/system.d @@ -20,15 +20,15 @@ int al_run_allegro(scope int delegate() user_main) thread_attachThis(); rt_moduleTlsCtor(); } - + auto main_ret = (*cast(int delegate()*)argv[0])(); - + version(OSX) { thread_detachThis(); rt_moduleTlsDtor(); } - + return main_ret; } @@ -45,13 +45,13 @@ nothrow @nogc extern (C) bool al_is_system_installed(); ALLEGRO_SYSTEM* al_get_system_driver(); ALLEGRO_CONFIG* al_get_system_config(); - + bool al_init() { return al_install_system(ALLEGRO_VERSION_INT, &atexit); } - enum + enum { ALLEGRO_RESOURCES_PATH = 0, ALLEGRO_TEMP_PATH, diff --git a/allegro5/tls.d b/allegro5/tls.d index b72bb14..024d175 100644 --- a/allegro5/tls.d +++ b/allegro5/tls.d @@ -17,7 +17,7 @@ nothrow @nogc extern (C) ALLEGRO_STATE_ALL = 0xffff } - + struct ALLEGRO_STATE { char[1024] _tls; diff --git a/allegro5/touch_input.d b/allegro5/touch_input.d index 1829a3b..440d7e2 100644 --- a/allegro5/touch_input.d +++ b/allegro5/touch_input.d @@ -17,7 +17,7 @@ nothrow @nogc extern (C) const size_t ALLEGRO_TOUCH_INPUT_MAX_TOUCH_COUNT = 16; struct ALLEGRO_TOUCH_INPUT {}; - + struct ALLEGRO_TOUCH_STATE { /* (id) An identifier of touch. If touch is valid this number is positive. diff --git a/allegro5/utf8.d b/allegro5/utf8.d index 86503ed..a8e36b4 100644 --- a/allegro5/utf8.d +++ b/allegro5/utf8.d @@ -12,10 +12,10 @@ nothrow @nogc extern (C) int slen; char* data; } - + alias _al_tagbstring ALLEGRO_USTR; alias _al_tagbstring ALLEGRO_USTR_INFO; - + ALLEGRO_USTR* al_ustr_new(in char* s); ALLEGRO_USTR* al_ustr_new_from_buffer(in char* s, size_t size); ALLEGRO_USTR* al_ustr_newf(in char* fmt, ...); @@ -25,7 +25,7 @@ nothrow @nogc extern (C) char* al_cstr_dup(in ALLEGRO_USTR* us); ALLEGRO_USTR* al_ustr_dup(in ALLEGRO_USTR* us); ALLEGRO_USTR* al_ustr_dup_substr(in ALLEGRO_USTR* us, int start_pos, int end_pos); - + /* Predefined string */ const(ALLEGRO_USTR)* al_ustr_empty_string();