1
0
Fork 0
forked from len0rd/rockbox
foxbox/apps/plugins/lib
Amaury Pouly d7871914ac Fix dangerous casts
On Windows 64-bit, the size of long is 32-bit, thus any pointer to long cast is
not valid. In any case, one should use intptr_t and ptrdiff_t when casting
to integers. This commit attempts to fix all instances reported by GCC.
When relevant, I replaced code by the macros PTR_ADD, ALIGN_UP from system.h

Change-Id: I2273b0e8465d3c4689824717ed5afa5ed238a2dc
2017-02-04 17:24:47 +01:00
..
bmp_smooth_scale.c lcd-24bit: Introduce a 24-bit mid-level LCD driver 2014-06-21 00:15:53 +02:00
checkbox.c Remove a bunch of build conditions inside .c files 2010-08-25 19:14:02 +00:00
checkbox.h loader-initialized global plugin API: 2009-01-16 10:34:40 +00:00
configfile.c RaaA: Fix write locations of plugins 2011-03-02 23:43:54 +00:00
configfile.h correct comment in configfile.h, FS#11292 by Chris Savery. 2010-10-10 14:34:07 +00:00
display_text.c some changes to use of display_text. 2010-02-22 07:17:15 +00:00
display_text.h some changes to use of display_text. 2010-02-22 07:17:15 +00:00
feature_wrappers.h Make JPEG and BMP scaler optional with HAVE_JPEG and HAVE_BMP_SCALING, both defined for all targets that have HAVE_ALBUMART. Disable JPEG in PictureFlow and pluginlib album art search with 32KiB plugin buffer until PictureFlow 2009-05-04 15:46:41 +00:00
gcc-support.c Revert "SH gcc 4.6.3 with link-time optimization, for Archos targets" 2012-10-24 14:05:39 +02:00
grey.h lcd/grey: Enable viewport fg_pattern and bg_pattern for all bitmap targets. 2014-01-07 22:14:41 +01:00
grey_coldfire.S Updated our source code header to explicitly mention that we are GPL v2 or 2008-06-28 18:10:04 +00:00
grey_core.c Fix red/yellow 2015-01-12 12:02:24 +01:00
grey_draw.c lcd/grey: Enable viewport fg_pattern and bg_pattern for all bitmap targets. 2014-01-07 22:14:41 +01:00
grey_parm.c lcd/grey: Enable viewport fg_pattern and bg_pattern for all bitmap targets. 2014-01-07 22:14:41 +01:00
grey_scroll.c lcd/grey: Enable viewport fg_pattern and bg_pattern for all bitmap targets. 2014-01-07 22:14:41 +01:00
grey_sh.S Fix assembler .size directives. Currently used binutils don't complain, but 2.21.1 treats these as errors. 2011-11-09 19:20:33 +00:00
helper.c Lamp plugin: Allow toggling the button light using "select". 2015-02-22 12:22:40 +01:00
helper.h Lamp plugin: Allow toggling the button light using "select". 2015-02-22 12:22:40 +01:00
highscore.c plugins: use lcd_putsf/lcd_putsxyf 2010-08-28 21:46:45 +00:00
highscore.h plugin: implement highscore_show for player and use it in rockblox. 2010-02-22 13:45:24 +00:00
jhash.c Add Bob Jenkins' lookup3 32-bit and 64-bit hashes to pluginlib. 2009-06-01 13:40:30 +00:00
jhash.h Move c/h files implementing/defining standard library stuff into a new libc directory, also standard'ify some parts of the code base (almost entirely #include fixes). 2010-05-06 21:04:40 +00:00
jpeg_mem.h Plugin JPEG decoder for data in memory, along with test_mem_jpeg.c and bench_mem_jpeg.c plugins to test and benchmark it, and a line-length clean up in jpeg_load.c. 2009-05-08 03:46:48 +00:00
md5.c loader-initialized global plugin API: 2009-01-16 10:34:40 +00:00
md5.h Set svn:keywords property on .c and .h files that didn't already have it. Correct svn:executable property on some files. 2010-01-03 14:28:09 +00:00
mylcd.h Adapt OSD in plugin lib to be greylib compatible. 2012-12-18 19:16:26 -05:00
osd.c lcd-24bit: Introduce a 24-bit mid-level LCD driver 2014-06-21 00:15:53 +02:00
osd.h Adapt OSD in plugin lib to be greylib compatible. 2012-12-18 19:16:26 -05:00
overlay.c load_code/overlay: Don't close plugin handle before calling the plugin. 2012-05-26 22:57:21 +02:00
overlay.h loader-initialized global plugin API: 2009-01-16 10:34:40 +00:00
picture.c Fix STRIDE macro for multiscreen and add stride support for picture lib. 2009-09-04 00:46:24 +00:00
picture.h Fix STRIDE macro for multiscreen and add stride support for picture lib. 2009-09-04 00:46:24 +00:00
playback_control.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
playback_control.h plugins/lib: remove out-dated comments about plugin api. 2010-02-25 12:14:36 +00:00
playergfx.c Remove a bunch of build conditions inside .c files 2010-08-25 19:14:02 +00:00
playergfx.h loader-initialized global plugin API: 2009-01-16 10:34:40 +00:00
pluginlib_actions.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
pluginlib_actions.h S#10387 - Rework pluginlib actions 2010-05-20 17:41:28 +00:00
pluginlib_albumart.c albumart search in pluginlib when building without HAVE_ALBUMART (for later use by pictureflow) 2009-01-24 04:09:29 +00:00
pluginlib_bmp.c lcd-24bit: Introduce a 24-bit mid-level LCD driver 2014-06-21 00:15:53 +02:00
pluginlib_bmp.h use different function to resize bitmap for greylib. 2010-10-10 14:24:11 +00:00
pluginlib_exit.h Fix building simulator plugins on Cygwin. A DLL stub containing atexit is linked to the plugins, so give our version a prefix. 2010-08-26 15:44:32 +00:00
pluginlib_jpeg_idct_arm.S Core JPEG decoder improvements: 2009-06-19 02:56:00 +00:00
pluginlib_jpeg_load.c Hopefully all green now 2011-02-09 20:51:11 +00:00
pluginlib_jpeg_mem.c Add include to pluginlib_jpeg_mem.c to prevent warning noise with -Wmissing-prototypes. 2009-05-16 08:20:41 +00:00
pluginlib_resize.c fix pluginlib_resize.c for global plugin API 2009-01-16 10:49:11 +00:00
pluginlib_touchscreen.c lcd-common: Remove support for custom line heights from viewport. 2014-01-07 14:13:48 +01:00
pluginlib_touchscreen.h pluginlib_touchscreen: Rework API to offer wait-for-button APIs. 2012-01-27 09:15:05 +01:00
profile_plugin.c loader-initialized global plugin API: 2009-01-16 10:34:40 +00:00
profile_plugin.h loader-initialized global plugin API: 2009-01-16 10:34:40 +00:00
read_image.c FS#10496: remove function read_image_file_offset, it had a bug and is not used anyway. 2009-08-09 22:20:14 +00:00
read_image.h FS#10496: remove function read_image_file_offset, it had a bug and is not used anyway. 2009-08-09 22:20:14 +00:00
rgb_hsv.c Updated our source code header to explicitly mention that we are GPL v2 or 2008-06-28 18:10:04 +00:00
rgb_hsv.h Updated our source code header to explicitly mention that we are GPL v2 or 2008-06-28 18:10:04 +00:00
sha1.c Fix endianness handling for sha1 (used by the otp plugin) 2016-06-28 13:33:50 +02:00
sha1.h One-Time Password client (HOTP and TOTP) 2016-06-05 14:25:09 -04:00
simple_viewer.c Fix dangerous casts 2017-02-04 17:24:47 +01:00
simple_viewer.h add simple text viewer to pluginlib and use this for dict to show description. 2010-06-08 11:07:36 +00:00
SOURCES One-Time Password client (HOTP and TOTP) 2016-06-05 14:25:09 -04:00
strncpy.c Fix dangerous casts 2017-02-04 17:24:47 +01:00
wrappers.h Hopefully all green now 2011-02-09 20:51:11 +00:00
xlcd.h Add circle drawing/filling to xlcd 2016-12-18 18:35:52 +01:00
xlcd_core.c loader-initialized global plugin API: 2009-01-16 10:34:40 +00:00
xlcd_draw.c Add circle drawing/filling to xlcd 2016-12-18 18:35:52 +01:00
xlcd_scroll.c Also fix uninitialized variables in xlcd_scroll_up()/xlcd_scroll_down() 2011-08-25 20:47:44 +00:00