Skip to content

Commit

Permalink
Merge pull request #4 from elpekenin/pub
Browse files Browse the repository at this point in the history
(chore): make some constants public
  • Loading branch information
ikskuh authored Dec 31, 2024
2 parents 0c86f71 + b03cd5e commit 3cba3a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fatfs.zig
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ pub const FileInfo = struct {
return std.mem.sliceTo(&self.altname_buffer, 0);
}

const max_name_len = if (@hasDecl(c, "FF_LFN_BUF")) c.FF_LFN_BUF else 12;
const max_altname_len = if (@hasDecl(c, "FF_SFN_BUF")) c.FF_SFN_BUF else 0;
pub const max_name_len = if (@hasDecl(c, "FF_LFN_BUF")) c.FF_LFN_BUF else 12;
pub const max_altname_len = if (@hasDecl(c, "FF_SFN_BUF")) c.FF_SFN_BUF else 0;

pub fn format(info: FileInfo, fmt: []const u8, options: std.fmt.FormatOptions, writer: anytype) !void {
_ = fmt;
Expand Down

0 comments on commit 3cba3a8

Please sign in to comment.