Fix remaining naming and style inconsistencies

- Add const to RecordObjectCompare parameters
- Add static to crc32_table and table_computed in hash.c
- Rename NewRecordObject to RecordObjectNew
- Replace magic number 8192 with BUFFER_SIZE in utility.c
- Unify comment style to /* */ across all files
- Standardize _POSIX_C_SOURCE to 200809L
- Remove unreachable dead code in diff.c
This commit is contained in:
Fabio Scotto di Santolo
2026-08-26 00:03:13 +02:00
parent a7f13e408b
commit 464bb58c8c
9 changed files with 23 additions and 27 deletions

View File

@@ -23,11 +23,11 @@ const char *RecordObjectFieldName(enum Fields f);
struct RecordObject;
// Methods
struct RecordObject *NewRecordObject();
/* Methods */
struct RecordObject *RecordObjectNew();
int RecordObjectUnpack(struct RecordObject *, char *);
int RecordObjectWrite(struct RecordObject *self, const char *path, FILE *out);
int RecordObjectCompare(struct RecordObject *, struct RecordObject *);
int RecordObjectCompare(const struct RecordObject *, const struct RecordObject *);
char RecordObjectFileType(const struct RecordObject *);
unsigned int RecordObjectPermissions(const struct RecordObject *);
uintmax_t RecordObjectUid(const struct RecordObject *);