Skip to content

Commit

Permalink
Style adjustment
Browse files Browse the repository at this point in the history
- Moved a function-level macro to the top of the function definition
  • Loading branch information
Mark Watts committed Oct 26, 2014
1 parent 1e5b7bb commit 7431565
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tagdb_fs.lc
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,13 @@ int _readdir_list_file(fuse_fill_dir_t filler, void *buf, const char *name)

%(op readdir path buffer filler offset f_info)
{
#define list_file(__name) \
if (_readdir_list_file(filler, buffer, (const char*)(__name)))\
{\
res = -1;\
goto READDIR_END;\
}

int res = 0;
GList *f = NULL;
GList *t = NULL;
Expand All @@ -587,12 +594,6 @@ int _readdir_list_file(fuse_fill_dir_t filler, void *buf, const char *name)
GList *prefixed_files = NULL;

tagdb_key_t tags = path_extract_key(path);
#define list_file(__name) \
if (_readdir_list_file(filler, buffer, (const char*)(__name)))\
{\
res = -1;\
goto READDIR_END;\
}

if (g_strcmp0(path, "/") == 0)
{
Expand Down

0 comments on commit 7431565

Please sign in to comment.