mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
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:
+8
-8
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user