Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fpletz
firmware
Commits
4c977d6a
Verified
Commit
4c977d6a
authored
5 years ago
by
rahix
Browse files
Options
Downloads
Patches
Plain Diff
fix(fatfs): Remove typedef for epic_stat
Signed-off-by:
Rahix
<
rahix@rahix.de
>
parent
b7e210c9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
epicardium/epicardium.h
+8
-6
8 additions, 6 deletions
epicardium/epicardium.h
epicardium/modules/fatfs_fileops.c
+1
-1
1 addition, 1 deletion
epicardium/modules/fatfs_fileops.c
pycardium/modules/fat_reader_import.c
+1
-1
1 addition, 1 deletion
pycardium/modules/fat_reader_import.c
with
10 additions
and
8 deletions
epicardium/epicardium.h
+
8
−
6
View file @
4c977d6a
...
...
@@ -620,8 +620,8 @@ enum epic_stat_type {
};
/** */
typedef
struct
epic_stat
_t
{
/**
t
ype: file, directory or none */
struct
epic_stat
{
/**
Entity T
ype: file, directory or none */
enum
epic_stat_type
type
;
/* note about padding & placement of uint32_t size:
* to accomodate for future expansion, we want padding at the end of
...
...
@@ -636,11 +636,11 @@ typedef struct epic_stat_t {
* between system and user volume)*/
uint8_t
volume
;
uint8_t
_reserved
[
9
];
}
epic_stat_t
;
};
#ifndef __cplusplus
#if defined(__GNUC__) && ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
_Static_assert
(
sizeof
(
epic_stat
_t
)
==
20
,
""
);
_Static_assert
(
sizeof
(
struct
epic_stat
)
==
20
,
""
);
#endif
#endif
...
...
@@ -648,11 +648,13 @@ _Static_assert(sizeof(epic_stat_t) == 20, "");
* stat path
*
* :param const char* filename: path to stat
* :param epic_stat
_t
* stat: pointer to result
* :param epic_stat* stat: pointer to result
*
* :return: `0` on success, negative on error
*/
API
(
API_FILE_STAT
,
int
epic_file_stat
(
const
char
*
path
,
epic_stat_t
*
stat
));
API
(
API_FILE_STAT
,
int
epic_file_stat
(
const
char
*
path
,
struct
epic_stat
*
stat
));
/**
* RTC
...
...
This diff is collapsed.
Click to expand it.
epicardium/modules/fatfs_fileops.c
+
1
−
1
View file @
4c977d6a
...
...
@@ -280,7 +280,7 @@ int epic_file_tell(int fd)
return
f_tell
(
&
o
->
file
);
}
int
epic_file_stat
(
const
char
*
filename
,
epic_stat
_t
*
stat
)
int
epic_file_stat
(
const
char
*
filename
,
struct
epic_stat
*
stat
)
{
int
res
;
FILINFO
finfo
;
...
...
This diff is collapsed.
Click to expand it.
pycardium/modules/fat_reader_import.c
+
1
−
1
View file @
4c977d6a
...
...
@@ -69,7 +69,7 @@ mp_lexer_t *mp_lexer_new_from_file(const char *filename)
mp_import_stat_t
mp_import_stat
(
const
char
*
path
)
{
struct
epic_stat
_t
stat
;
struct
epic_stat
stat
;
if
(
epic_file_stat
(
path
,
&
stat
)
==
0
)
{
if
(
stat
.
type
==
EPICSTAT_FILE
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment