Overview
Comment: | Add OFStrFTime() consistent with OFStrPTime() |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
05d675eb07af8984265ae14dbbdeb736 |
User & Date: | js on 2023-08-23 12:44:37 |
Other Links: | manifest | tags |
Context
2023-08-23
| ||
13:54 | OFStrFTime: Don't use OFASPrintF() check-in: ff64ec30f4 user: js tags: trunk | |
12:44 | Add OFStrFTime() consistent with OFStrPTime() check-in: 05d675eb07 user: js tags: trunk | |
08:55 | OFApplication: Reduce scope of some variables check-in: c7035e7dd2 user: js tags: trunk | |
Changes
Modified src/Makefile from [ac08fa67eb] to [3e54ffc274].
︙ | |||
198 199 200 201 202 203 204 205 206 207 208 209 210 211 | 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 | + | OFHuffmanTree.m \ OFINIFileSettings.m \ OFInvertedCharacterSet.m \ OFLHADecompressingStream.m \ OFMutableUTF8String.m \ OFRangeCharacterSet.m \ OFSandbox.m \ OFStrFTime.m \ OFStrPTime.m \ OFSubarray.m \ OFSubdata.m \ OFTaggedPointerColor.m \ OFTaggedPointerDate.m \ OFTaggedPointerNumber.m \ OFUTF8String.m \ |
︙ |
Modified src/OFASPrintF.h from [a9b63bfa65] to [a88266211f].
︙ | |||
25 26 27 28 29 30 31 32 33 34 35 36 37 38 | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | + | #import "macros.h" OF_ASSUME_NONNULL_BEGIN #ifdef __cplusplus extern "C" { #endif extern int OFASPrintF(char *_Nullable *_Nonnull, const char *_Nonnull, ...); extern int OFVASPrintF( char *_Nullable *_Nonnull, const char *_Nonnull, va_list); #ifdef __cplusplus } #endif OF_ASSUME_NONNULL_END |
Modified src/OFASPrintF.m from [84a6c0408a] to [1c0f37cece].
︙ | |||
32 33 34 35 36 37 38 39 40 41 42 43 44 45 | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | + | # include <xlocale.h> #endif #ifdef OF_HAVE_SYS_TYPES_H # include <sys/types.h> #endif #import "OFASPrintF.h" #import "OFString.h" #import "OFLocale.h" #import "OFInitializationFailedException.h" #define maxSubformatLen 64 |
︙ | |||
748 749 750 751 752 753 754 755 756 757 758 759 760 761 | 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 | + + + + + + + + + + + + + | static bool (*states[])(struct Context *) = { stringState, formatFlagsState, formatFieldWidthState, formatLengthModifierState, formatConversionSpecifierState }; int OFASPrintF(char **string, const char *format, ...) { int ret; va_list arguments; va_start(arguments, format); ret = OFVASPrintF(string, format, arguments); va_end(arguments); return ret; } int OFVASPrintF(char **string, const char *format, va_list arguments) { struct Context ctx; ctx.format = format; |
︙ |
Modified src/OFDate.m from [b7faec4dac] to [d12ca09b85].
︙ | |||
27 28 29 30 31 32 33 34 35 36 37 38 39 40 | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | + | #import "OFConcreteDate.h" #import "OFData.h" #import "OFDictionary.h" #import "OFMessagePackExtension.h" #ifdef OF_HAVE_THREADS # import "OFMutex.h" #endif #import "OFStrFTime.h" #import "OFStrPTime.h" #import "OFString.h" #import "OFSystemInfo.h" #import "OFTaggedPointerDate.h" #import "OFXMLAttribute.h" #import "OFInitializationFailedException.h" |
︙ | |||
508 509 510 511 512 513 514 | 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 | - + | return OFOrderedDescending; return OFOrderedSame; } - (OFString *)description { |
︙ | |||
688 689 690 691 692 693 694 | 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 | - - + + - - - - - - - | } # endif #endif pageSize = [OFSystemInfo pageSize]; buffer = OFAllocMemory(1, pageSize); @try { |
︙ | |||
748 749 750 751 752 753 754 | 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 | - - + + - - - - - - - | } # endif #endif pageSize = [OFSystemInfo pageSize]; buffer = OFAllocMemory(1, pageSize); @try { |
︙ |
Added src/OFStrFTime.h version [c0c458ef48].
|
Added src/OFStrFTime.m version [48d4c4eaa5].