Working toward compiler independence: Removed inline funcs

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@15 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2007-02-20 23:16:24 +00:00
parent 3c0e634aee
commit 4881fed8bf
19 changed files with 31 additions and 108 deletions
+8 -8
View File
@@ -53,9 +53,12 @@
#include "fs_internal.h"
/************************************************************
* Private types
* Definitions
************************************************************/
#define INODE_SEMGIVE() \
sem_post(&tree_sem)
/************************************************************
* Private Variables
************************************************************/
@@ -86,10 +89,7 @@ static void _inode_semtake(void)
}
}
static inline void _inode_semgive(void)
{
sem_post(&tree_sem);
}
#define _inode_semgive(void) sem_post(&tree_sem)
static int _inode_compare(const char *fname,
struct inode *node)
@@ -152,20 +152,20 @@ static int _inode_compare(const char *fname,
}
}
static inline int _inode_namelen(const char *name)
static int _inode_namelen(const char *name)
{
const char *tmp = name;
while(*tmp && *tmp != '/') tmp++;
return tmp - name;
}
static inline void _inode_namecpy(char *dest, const char *src)
static void _inode_namecpy(char *dest, const char *src)
{
while(*src && *src != '/') *dest++ = *src++;
*dest='\0';
}
static inline const char *_inode_nextname(const char *name)
static const char *_inode_nextname(const char *name)
{
while (*name && *name != '/') name++;
if (*name) name++;