Ongoing campaign to remove EXTERN storage class on function prototypes

This commit is contained in:
Gregory Nutt 2014-07-23 14:49:16 -06:00
parent e100726a41
commit 68109b32db
2 changed files with 14 additions and 12 deletions

View File

@ -93,21 +93,22 @@ typedef void DIR;
#undef EXTERN
#if defined(__cplusplus)
#define EXTERN extern "C"
extern "C" {
extern "C"
{
#else
#define EXTERN extern
#endif
/* POSIX-like File System Interfaces */
EXTERN int closedir(FAR DIR *dirp);
EXTERN FAR DIR *opendir(FAR const char *path);
EXTERN FAR struct dirent *readdir(FAR DIR *dirp);
EXTERN int readdir_r(FAR DIR *dirp, FAR struct dirent *entry,
FAR struct dirent **result);
EXTERN void rewinddir(FAR DIR *dirp);
EXTERN void seekdir(FAR DIR *dirp, off_t loc);
EXTERN off_t telldir(FAR DIR *dirp);
int closedir(FAR DIR *dirp);
FAR DIR *opendir(FAR const char *path);
FAR struct dirent *readdir(FAR DIR *dirp);
int readdir_r(FAR DIR *dirp, FAR struct dirent *entry,
FAR struct dirent **result);
void rewinddir(FAR DIR *dirp);
void seekdir(FAR DIR *dirp, off_t loc);
off_t telldir(FAR DIR *dirp);
#undef EXTERN
#if defined(__cplusplus)

View File

@ -50,13 +50,14 @@
#ifdef __cplusplus
#define EXTERN extern "C"
extern "C" {
extern "C"
{
#else
#define EXTERN extern
#endif
EXTERN FAR char *basename(FAR char *path);
EXTERN FAR char *dirname(FAR char *path);
FAR char *basename(FAR char *path);
FAR char *dirname(FAR char *path);
#undef EXTERN
#ifdef __cplusplus