coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PATCH: date: Refactor


From: Bruno Haible
Subject: PATCH: date: Refactor
Date: Thu, 31 Jul 2025 18:51:06 +0200

The source code src/date.c is written mostly bottom-up, a style which does
not need forward declarations. Here's a patch to make it entirely bottom-up,
removing the last needed forward declarations.

NB: I'm not saying that bottom-up style is "better" or should be _generally_
preferred to the top-down style. Each has its own benefits. Only that
having an 80% bottom-up style with a helper function at the end (20%
top-down style) makes the code hard to understand.


Attachment: 0001-date-Refactor.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]