diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-02-20 23:16:24 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-02-20 23:16:24 +0000 |
commit | 5e160e6e0cdfae48ea120909e7febc62b6b56eb2 (patch) | |
tree | a8ac308120edfb2eacd53d89b343c878f9dc1a3d /nuttx/fs/fs_inode.c | |
parent | 630b4bdd3d2ca967f0e1d4f438f7f1761461dd31 (diff) | |
download | px4-nuttx-5e160e6e0cdfae48ea120909e7febc62b6b56eb2.tar.gz px4-nuttx-5e160e6e0cdfae48ea120909e7febc62b6b56eb2.tar.bz2 px4-nuttx-5e160e6e0cdfae48ea120909e7febc62b6b56eb2.zip |
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
Diffstat (limited to 'nuttx/fs/fs_inode.c')
-rw-r--r-- | nuttx/fs/fs_inode.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/nuttx/fs/fs_inode.c b/nuttx/fs/fs_inode.c index b080a4e43..db7451d30 100644 --- a/nuttx/fs/fs_inode.c +++ b/nuttx/fs/fs_inode.c @@ -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++; |