Giter Club home page Giter Club logo

forkfs's People

Contributors

francescosacco avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

forkfs's Issues

Check C89 compatibility about 64 bits integer

There is some QWORD variables at the code. The definition of this type uses unsigned long long, and it's not compatible using ANSI C (C89).

It's important to try check if it's possible to keep the definition, or define just if it's not C89.

Change QuadWord types

Remove integer types to use Standard Integer.
It's defined at integer.h with name QWORD.

Change byte types

Remove integer types to use Standard Integer.
It's defined at integer.h with name BYTE.

Remove FF_FS_RPATH definition

This definition enable relative path commands.
We can keed 2 for all functions enabled.

#define FF_FS_RPATH 2
/* This option configures support for relative path.
/ 0: Disable relative path and remove related functions.
/ 1: Enable relative path. f_chdir() and f_chdrive() are available.
/ 2: f_getcwd() function is available in addition to 1.
*/

Change f_setcp() to use enum

The function f_setcp() has the codepage parameter. It's a uint16_t number with the codepage number.
If you change to use enum, it'll not be necessary any check.

Types using low-case

Change types to use low case.
For example, FRESULT should be fResult_t.
The FILINFO can be changed to fileInfo_t.

The list is:

  • PARTITION
  • FSIZE_t
  • FATFS
  • FFOBJID
  • FIL
  • DIR
  • FILINFO
  • FRESULT
  • DRESULT

Change Double Word types

Remove integer types to use Standard Integer.
It's defined at integer.h with name LONG and DWORD.

Change check_fs() return to enum

The function check_fs() return some defined numbers. There are some variables at the code that uses same variables to this returns and fs_type_t.

If the return from this functions changes to use enum, it'll force to use different variables. It'll avoid mistakes.

Remove version lock

At this point, there's no meaning to have a version define to lock ff.c and ff.h.
Remove FFCONF_DEF.

Change integer types

Remove integer types to use Standard Integer.
It's defined at integer.h with name INT and UINT.

Change Word types

Remove integer types to use Standard Integer.
It's defined at integer.h with name SHORT, WORD and WCHAR.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.