rockbox/apps/plugins
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
..
beatbox Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
bitmaps Plugin 2048: Optimize for 128x96 screen 2016-04-07 11:52:09 +02:00
chessbox Fix for Chessbox bug FS#10363 2017-02-01 01:33:48 +01:00
clock Make fixepoint.c as a shared library (libfixedpoint.a). 2013-04-26 00:11:04 +02:00
doom Fix dangerous casts 2017-02-04 17:24:47 +01:00
fft Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
fractals Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
frotz Plugin Frotz: Match keymap and manual 2016-01-09 19:46:21 +01:00
goban Fix dangerous casts 2017-02-04 17:24:47 +01:00
imageviewer Fix FS#12981 JPEG decoding problem when entropy data starts with FF 2016-04-01 19:29:41 +02:00
lib Fix dangerous casts 2017-02-04 17:24:47 +01:00
lua Fix misleading indentation as pointed out by the new gcc warning 2016-08-12 15:33:28 +02:00
midi Midiplay: only boost cpu in sensible code parts 2017-01-06 21:39:56 +01:00
mikmod Fix dangerous casts 2017-02-04 17:24:47 +01:00
mpegplayer Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
pacbox Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
pdbox pdbox: fix bug shown by new gcc warning 2016-10-12 16:52:49 +02:00
pictureflow Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
puzzles puzzles: more accurate sin() and cos() 2017-01-16 20:54:56 +01:00
reversi Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
rockboy Rockboy: revert FS#11745 patch 2016-10-03 18:16:47 +02:00
searchengine
shortcuts plugins: another round of making local functions static 2011-10-15 20:38:08 +00:00
sudoku Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
text_viewer Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
xworld remove debug macro 2016-11-19 13:41:46 -05:00
zxbox Fix dangerous casts 2017-02-04 17:24:47 +01:00
2048.c 2048: Cleanup 2015-04-19 17:48:12 +02:00
alarmclock.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
alpine_cdc.c Implement time-based resume and playback start. 2014-03-10 04:12:30 +01:00
battery_bench.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
bench_mem_jpeg.c plugins: use lcd_putsf/lcd_putsxyf 2010-08-28 21:46:45 +00:00
bench_scaler.c plugins: use lcd_putsf/lcd_putsxyf 2010-08-28 21:46:45 +00:00
blackjack.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
boomshine.lua Rename 'expanded' to 'expended'. Was this a typo? 2015-04-19 12:23:22 +02:00
bounce.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
brickmania.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
bubbles.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
BUILD_OVERLAY
calculator.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
calendar.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
CATEGORIES puzzles: fix overlay loader (monolithic builds only) 2017-01-16 20:53:13 +01:00
chessbox.c
chessclock.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
chip8.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
chopper.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
clix.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
codebuster.c plugins: use lcd_putsf/lcd_putsxyf 2010-08-28 21:46:45 +00:00
credits.c * Rename backlight_force_on to backlight_ignore_timeout to make it clear what the function does. 2011-01-24 12:29:16 +00:00
credits.pl
crypt_firmware.c
cube.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
demystify.c plugins: another round of making local functions static 2011-10-15 20:38:08 +00:00
dice.c Changed the FOR_NB_SCREENS macro to always be a for loop that declares its own loop variable. This removes the need to declare this variable in the outer scope. 2011-10-15 19:35:02 +00:00
dict.c plugins: make local functions static for a subset of plugins 2011-09-17 17:20:27 +00:00
disktidy.c Fixed disktidy bug and added a couple of new features to disktidy. 2014-10-09 09:43:40 +02:00
disktidy.config Revert r31239 and r31250. Selecting ALL in disktidy used to be generally safe for most people, and these changes change that, making it easy to delete most or all of a user's music. This is a *very* bad idea. 2011-12-26 00:03:28 +00:00
elfdep.pl
euroconverter.c
fire.c lcd-24bit: Introduce a 24-bit mid-level LCD driver 2014-06-21 00:15:53 +02:00
fireworks.c fireworks: ues PLA_EXIT to exit without going through the menu. 2012-02-24 15:06:18 +01:00
firmware_flash.c fix r27926 : lcd_puts() not changed to lcd_putsf() 2010-08-28 21:54:24 +00:00
flipit.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
goban.c
greyscale.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
helloworld.c Update comments in the helloword plugin. 2010-08-30 20:58:38 +00:00
helloworld.lua
invadrox.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
iriver_flash.c Fix warning about using static vars in non static inline functions with gcc 4.5. 2010-12-27 10:46:29 +00:00
iriverify.c Changed the FOR_NB_SCREENS macro to always be a for loop that declares its own loop variable. This removes the need to declare this variable in the outer scope. 2011-10-15 19:35:02 +00:00
jackpot.c plugins: another round of making local things static and adding missing #includes 2011-12-28 11:32:13 +00:00
jewels.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
keybox.c hosted: Rename a bit in functions to avoid name clashes with unix headers. 2014-02-23 23:36:11 +01:00
lamp.c Lamp plugin: Allow toggling the button light using "select". 2015-02-22 12:22:40 +01:00
logo.c Fix some build errors and warnings. 2014-06-21 00:49:05 +02:00
lrcplayer.c Fix dangerous casts 2017-02-04 17:24:47 +01:00
main_menu_config.c Fix misleading indentation as pointed out by the new gcc warning 2016-08-12 15:33:28 +02:00
matrix.c matrix plugin: Fix out-of-bounds array access. Unify for-loop style. 2012-06-03 23:37:33 +02:00
maze.c Changed the FOR_NB_SCREENS macro to always be a for loop that declares its own loop variable. This removes the need to declare this variable in the outer scope. 2011-10-15 19:35:02 +00:00
mazezam.c * Rename backlight_force_on to backlight_ignore_timeout to make it clear what the function does. 2011-01-24 12:29:16 +00:00
md5sum.c Ged rid of uisimulator/common/io.c for android builds. 2010-09-01 21:29:34 +00:00
metronome.c YH8xx,YH9xx: Keymap improvement 2015-11-15 23:46:39 +01:00
minesweeper.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
mosaique.c Plugin mosaique PLA integration (code + manual) 2012-03-03 16:37:47 +01:00
mp3_encoder.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
nim.c plugins: use lcd_putsf/lcd_putsxyf 2010-08-28 21:46:45 +00:00
oscilloscope.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
otp.c One-Time Password client (HOTP and TOTP) 2016-06-05 14:25:09 -04:00
pegbox.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
periodic_table.c Add tentative new element names, IUPAC approval expected around November 2016-12-04 18:05:51 +01:00
pictureflow.c
pitch_detector.c Revise the PCM callback system after adding multichannel audio. 2012-03-03 07:23:38 +01:00
plasma.c lcd-24bit: Introduce a 24-bit mid-level LCD driver 2014-06-21 00:15:53 +02:00
plugin.lds Fix .ncbss from possibly overlapping .ncdata in plugins/codecs. 2013-07-11 04:32:23 -04:00
plugin_crt0.c Commit to certain names for cache coherency APIs and discard the aliases. 2011-12-17 07:27:24 +00:00
plugins.make iBasso DX50/DX90: Major code cleanup and reorganization. 2015-02-02 21:57:55 +01:00
pong.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
properties.c Rewrite filesystem code (WIP) 2014-08-30 03:48:23 +02:00
random_folder_advance_config.c plugins: Add plugin_release_audio_buffer(). 2014-04-09 09:04:10 +02:00
remote_control.c
resistor.c scroll_engine: Rename scroll_stop* functions to be more consistent with the lcd api. 2013-12-14 23:11:30 +01:00
robotfindskitten.c Declaration of 'pause' from robotfindskitten has conflicting types for 'pause' from android-ndk-r5 2011-01-22 18:27:05 +00:00
rockblox.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
rockblox1d.c rockblox1d's plugin PLA integration (main code + manual) 2012-02-18 23:57:22 +01:00
rockbox-fonts.config
rockbox_flash.c Improve rockbox_flash messages 2012-02-05 16:26:09 +01:00
rockboy.c
rocklife.c plugins: another round of making local functions static 2011-10-15 20:38:08 +00:00
rockpaint.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
search.c Changed the FOR_NB_SCREENS macro to always be a for loop that declares its own loop variable. This removes the need to declare this variable in the outer scope. 2011-10-15 19:35:02 +00:00
settings_dumper.c EQ settings: Rework the settings to clean up the config file. 2013-02-09 13:05:32 +01:00
sgt-puzzles.c puzzles: fix copyright year 2017-01-16 20:54:15 +01:00
shopper.c Shopper: slightly improve plugin and manual 2015-09-24 23:15:24 +02:00
sliding_puzzle.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
snake.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
snake2.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
snake2.levels
snow.c Plugin snow PLA integration (code + manual) 2012-03-03 10:48:22 +01:00
sokoban.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
sokoban.levels
solitaire.c Fix dangerous casts 2017-02-04 17:24:47 +01:00
sort.c plugins: make local functions static for a subset of plugins 2011-09-17 17:20:27 +00:00
SOURCES puzzles: fix overlay loader (monolithic builds only) 2017-01-16 20:53:13 +01:00
SOURCES.app_build iBasso DX50/DX90: Major code cleanup and reorganization. 2015-02-02 21:57:55 +01:00
spacerocks.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
splitedit.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
star.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
starfield.c Clean up peak calculating code. 2012-05-02 20:53:07 -04:00
stats.c stats's plugin PLA integration (main code + manual) 2012-02-22 09:15:50 +01:00
stopwatch.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
stopwatch.lua stopwatch.lua: Improve button layout. Enable on touchscreen RaaA. 2012-01-29 22:35:49 +01:00
SUBDIRS Port of Simon Tatham's Puzzle Collection 2016-12-18 18:13:22 +01:00
SUBDIRS.app_build iBasso DX50/DX90: Major code cleanup and reorganization. 2015-02-02 21:57:55 +01:00
superdom.c Superdom: Silence warning. 2014-09-14 05:16:10 +02:00
test_boost.c
test_codec.c Manually unboost if not using boost in test_codec 2016-05-14 23:11:52 +02:00
test_core_jpeg.c
test_disk.c Align test_disk buffer for DMA. 2016-04-01 19:57:44 +02:00
test_fps.c test_X plugins PLA integration 2012-03-03 19:55:51 +01:00
test_gfx.c test_gfx: Add benchmark for put_line(). 2014-01-07 14:13:41 +01:00
test_grey.c test_X plugins PLA integration 2012-03-03 19:55:51 +01:00
test_greylib_bitmap_scale.c test_X plugins PLA integration 2012-03-03 19:55:51 +01:00
test_mem.c test_mem: print clock speed in MHz so it fits on smaller screens. 2016-08-03 20:26:54 +02:00
test_mem_jpeg.c
test_resize.c
test_sampr.c Revise the PCM callback system after adding multichannel audio. 2012-03-03 07:23:38 +01:00
test_scanrate.c test_X plugins PLA integration 2012-03-03 19:55:51 +01:00
test_touchscreen.c [ONDAV VX777][simulator] fix missing keymaps in test_touchscreen 2013-07-29 19:07:19 +02:00
test_viewports.c lcd-16bit: Remove {lss,lse,lst}_pattern fields from struct viewport. 2014-01-07 14:13:48 +01:00
test_viewports.lua
text_editor.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
theme_remove.c Ged rid of uisimulator/common/io.c for android builds. 2010-09-01 21:29:34 +00:00
vbrfix.c GSoC/Buflib: Replace all direct accesses to audiobuf with buffer API functions. 2011-08-14 15:13:00 +00:00
video.c Tweak paramters of mp3_play_data and callback. 2012-03-04 14:50:47 -05:00
viewers.config Enhancement of the metronome plugin: 2015-02-03 22:41:40 +01:00
vu_meter.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
wav2wv.c fix leak-file-handles. 2010-10-23 12:40:07 +00:00
wavplay.c Clean up multiple definitions of RAM size. Remove -DMEM (make) and MEM (code), use the already defined MEMORYSIZE instead. 2011-02-02 17:43:32 +00:00
wavrecord.c wavrecord plugin: Add harmless sanity check 2014-12-21 17:22:09 +01:00
wavview.c plugins: make local functions static for metronome, rockblox1d, wavview 2011-10-04 19:33:52 +00:00
wormlet.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
xobox.c Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
zxbox.c