Moved atoi declaration to stdlib.h. Deleted atoi.h
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17280 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5b1e86c35f
commit
2843469876
27 changed files with 9 additions and 52 deletions
|
@ -35,7 +35,6 @@
|
|||
#include "system.h"
|
||||
#include "errno.h"
|
||||
#include "icons.h"
|
||||
#include "atoi.h"
|
||||
#include "string.h"
|
||||
#include "menu.h"
|
||||
#include "lang.h"
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <atoi.h>
|
||||
#include <stdlib.h>
|
||||
#include <timefuncs.h>
|
||||
#include <ctype.h>
|
||||
#include "debug.h"
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
#include <atoi.h>
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
#include "system.h"
|
||||
|
|
|
@ -19,9 +19,9 @@
|
|||
#include <stdio.h>
|
||||
#include <sprintf.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include "config.h"
|
||||
#include "action.h"
|
||||
#include "atoi.h"
|
||||
#include "lang.h"
|
||||
#include "misc.h"
|
||||
#include "talk.h"
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
#include "string.h"
|
||||
#include "atoi.h"
|
||||
#include <ctype.h>
|
||||
|
||||
#include "sprintf.h"
|
||||
|
|
|
@ -47,7 +47,6 @@
|
|||
#include "peakmeter.h"
|
||||
/* Image stuff */
|
||||
#include "bmp.h"
|
||||
#include "atoi.h"
|
||||
#include "albumart.h"
|
||||
#endif
|
||||
#include "dsp.h"
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "config.h"
|
||||
#include "lcd.h"
|
||||
#include "lcd-remote.h"
|
||||
|
@ -27,7 +28,6 @@
|
|||
#include "kernel.h"
|
||||
#include "system.h"
|
||||
#include "misc.h"
|
||||
#include "atoi.h"
|
||||
#include "viewport.h"
|
||||
#include "statusbar.h"
|
||||
#include "screen_access.h"
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include "gwps.h"
|
||||
#include "file.h"
|
||||
#include "misc.h"
|
||||
|
@ -33,12 +34,9 @@
|
|||
#ifndef __PCTOOL__
|
||||
#include <ctype.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "font.h"
|
||||
|
||||
#include "atoi.h"
|
||||
#include "gwps.h"
|
||||
#include "settings.h"
|
||||
#include "plugin.h"
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
#include <atoi.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
#include "id3.h"
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
#include "id3.h"
|
||||
#include "metadata_common.h"
|
||||
#include "replaygain.h"
|
||||
#include "atoi.h"
|
||||
|
||||
/* Skip an ID3v2 tag if it can be found. We assume the tag is located at the
|
||||
* start of the file, which should be true in all cases where we need to skip it.
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
#include "logf.h"
|
||||
#include "debug.h"
|
||||
#include "replaygain.h"
|
||||
#include "atoi.h"
|
||||
|
||||
#define MP4_ID(a, b, c, d) (((a) << 24) | ((b) << 16) | ((c) << 8) | (d))
|
||||
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
#include "system.h"
|
||||
#include "id3.h"
|
||||
#include "metadata_common.h"
|
||||
#include "atoi.h"
|
||||
#include "rbunicode.h"
|
||||
|
||||
/* PSID metadata info is available here:
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
#include "id3.h"
|
||||
#include "metadata_common.h"
|
||||
#include "debug.h"
|
||||
#include "atoi.h"
|
||||
#include "rbunicode.h"
|
||||
|
||||
bool get_spc_metadata(int fd, struct mp3entry* id3)
|
||||
|
|
|
@ -44,7 +44,6 @@
|
|||
#include "power.h"
|
||||
#include "powermgmt.h"
|
||||
#include "backlight.h"
|
||||
#include "atoi.h"
|
||||
#include "version.h"
|
||||
#include "font.h"
|
||||
#include "splash.h"
|
||||
|
|
|
@ -83,7 +83,6 @@
|
|||
#include "applimits.h"
|
||||
#include "screens.h"
|
||||
#include "buffer.h"
|
||||
#include "atoi.h"
|
||||
#include "misc.h"
|
||||
#include "button.h"
|
||||
#include "filetree.h"
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
#include <sprintf.h>
|
||||
#include <atoi.h>
|
||||
#include <stdlib.h>
|
||||
#include "debug.h"
|
||||
#include "i2c.h"
|
||||
#include "lang.h"
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
#include "ctype.h"
|
||||
#include "file.h"
|
||||
#include "errno.h"
|
||||
#include "atoi.h"
|
||||
#include "string.h"
|
||||
#include "system.h"
|
||||
#include "radio.h"
|
||||
|
|
|
@ -60,7 +60,6 @@
|
|||
#include "dir.h"
|
||||
#include "errno.h"
|
||||
#include "talk.h"
|
||||
#include "atoi.h"
|
||||
#include "sound.h"
|
||||
#include "ata.h"
|
||||
#include "splash.h"
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
#include "rtc.h"
|
||||
#include "power.h"
|
||||
#include "ata_idle_notify.h"
|
||||
#include "atoi.h"
|
||||
#include "screens.h"
|
||||
#include "ctype.h"
|
||||
#include "file.h"
|
||||
|
|
|
@ -74,7 +74,6 @@
|
|||
#include "dir.h"
|
||||
#include "structec.h"
|
||||
#ifndef __PCTOOL__
|
||||
#include "atoi.h"
|
||||
#include "splash.h"
|
||||
#include "lang.h"
|
||||
#include "eeprom_settings.h"
|
||||
|
|
|
@ -40,7 +40,6 @@
|
|||
#include "keyboard.h"
|
||||
#include "gui/list.h"
|
||||
#include "buffer.h"
|
||||
#include "atoi.h"
|
||||
#include "playback.h"
|
||||
#include "yesno.h"
|
||||
#include "misc.h"
|
||||
|
|
|
@ -20,10 +20,10 @@
|
|||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include "fat.h"
|
||||
#include "dir.h"
|
||||
#include "debug.h"
|
||||
#include "atoi.h"
|
||||
|
||||
#define MAX_OPEN_DIRS 8
|
||||
|
||||
|
|
|
@ -27,8 +27,8 @@
|
|||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include "debug.h"
|
||||
#include "atoi.h"
|
||||
#include "system.h"
|
||||
#include "logf.h"
|
||||
#include "dircache.h"
|
||||
|
|
|
@ -30,7 +30,6 @@
|
|||
#include "kernel.h"
|
||||
#include "rbunicode.h"
|
||||
#include "logf.h"
|
||||
#include "atoi.h"
|
||||
|
||||
#define BYTES2INT16(array,pos) \
|
||||
(array[pos] | (array[pos+1] << 8 ))
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
#include "config.h"
|
||||
#include "file.h"
|
||||
#include "logf.h"
|
||||
#include "atoi.h"
|
||||
|
||||
#include "id3.h"
|
||||
#include "mp3data.h"
|
||||
|
|
|
@ -1,25 +0,0 @@
|
|||
/***************************************************************************
|
||||
* __________ __ ___.
|
||||
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||||
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||
* \/ \/ \/ \/ \/
|
||||
* $Id$
|
||||
*
|
||||
* Copyright (C) 2002 by Felix Arends
|
||||
*
|
||||
* All files in this archive are subject to the GNU General Public License.
|
||||
* See the file COPYING in the source tree root for full license agreement.
|
||||
*
|
||||
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||
* KIND, either express or implied.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __ATOI_H__
|
||||
#define __ATOI_H__
|
||||
|
||||
int atoi (const char *str);
|
||||
|
||||
#endif /* __ATOI_H__ */
|
|
@ -41,6 +41,8 @@ int rand(void);
|
|||
#ifdef SIMULATOR
|
||||
void exit(int status);
|
||||
#endif
|
||||
|
||||
int atoi (const char *str);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue