|
43df0e137b
|
pure_getline.c: do not continue if output is NULL
|
2024-04-02 20:41:14 +03:00 |
|
|
514cdf6ee2
|
str_replace.c: move the legal notice to the end of the note
|
2024-03-31 21:23:52 +03:00 |
|
|
ca8a8c0cc5
|
safe_mem.h: move the legal notice to the end of the note
|
2024-03-31 19:42:10 +03:00 |
|
|
c56c084c88
|
reverse-ramdisk.c: clarify the first TODO
|
2024-03-31 16:32:39 +03:00 |
|
|
6d16e8c278
|
reverse-ramdisk.c: add 4 important TODOs
|
2024-03-31 16:28:55 +03:00 |
|
|
b9ca065ef4
|
reverse-ramdisk.c: add an important TODO
|
2024-03-31 15:30:35 +03:00 |
|
|
7c81854fcb
|
safe_mem.h: simplify conditional compilation for *BSD
|
2024-03-27 19:57:27 +03:00 |
|
|
c5adf96adf
|
extol.c: move functions below main
|
2024-03-27 01:32:03 +03:00 |
|
|
dd1d4d5e37
|
safe_mem.h: require OpenBSD v. >= 5.5, FreeBSD v. >= 11.0
|
2024-03-26 23:12:37 +03:00 |
|
|
8ca528509b
|
safe_mem.h: check for OpenBSD correctly
|
2024-03-26 21:36:38 +03:00 |
|
|
01b13c7443
|
safe_mem.h: use correct header
|
2024-03-25 00:28:11 +03:00 |
|
|
1a0095e6d0
|
C: add be_to_le_ptr.h
|
2024-03-24 22:10:32 +03:00 |
|
|
f4fbea4850
|
safe_mem.h: fix secure_erase macro
|
2024-03-24 21:04:39 +03:00 |
|
|
471e2a8583
|
safe_mem.h: simplify #if defined(...) to #ifdef ...
|
2024-03-24 19:45:53 +03:00 |
|
|
0f40878fbb
|
safe_mem.h: fix the condition of memset_s availability
|
2024-03-24 18:09:40 +03:00 |
|
|
429d34fdff
|
safe_mem.test.c: remove STDERR_FILENO
|
2024-03-24 18:08:38 +03:00 |
|
|
324d23d6a6
|
safe_mem.h: add missing inclusions of string.h
|
2024-03-24 17:29:04 +03:00 |
|
|
c2b3caf728
|
opt_int_div.*: label as a header-only library
|
2024-03-24 16:02:31 +03:00 |
|
|
76ec85397a
|
safe_mem.test.c: fix the file name in the note
|
2024-03-24 15:58:19 +03:00 |
|
|
eb0c6e0dd9
|
C: add mem/safe_mem.*
|
2024-03-24 15:54:04 +03:00 |
|
|
df611cf964
|
opt_int_div.h: use operator != instead of ^
|
2024-03-24 13:25:43 +03:00 |
|
|
8f402a5ac9
|
C: add CC0-LICENSE.c
|
2024-03-24 10:58:07 +03:00 |
|
|
a61e910a59
|
str_replace.*: fix the count bug, add a constant
|
2024-03-16 15:24:22 +03:00 |
|
|
e0d686f033
|
str_replace.c: fix the typo in perror call
|
2024-03-16 14:07:41 +03:00 |
|
|
c8e2aa3308
|
asprintf.c: fix grammar
|
2024-03-13 22:40:19 +03:00 |
|
|
4bbb0b6c5e
|
asprintf.c: test: fix function usage and asserts
|
2024-03-13 22:33:45 +03:00 |
|
|
ad2babeb25
|
asprintf.c: remove the ending superfluous comma in a macro
|
2024-03-13 22:25:45 +03:00 |
|
|
4ce2d32a8a
|
freadln.c: fix the STDIN input testing code
|
2024-03-13 08:22:33 +03:00 |
|
|
d422049dc3
|
freadln.c: add missing #define
|
2024-03-13 08:19:40 +03:00 |
|
|
282670f23f
|
fwrite_le.c: reformat
|
2024-03-10 16:20:25 +03:00 |
|
|
d1a6bb91fa
|
freadln.c: reformat
|
2024-03-10 15:46:24 +03:00 |
|
|
06c5330a67
|
freadln.*: add testing against unexpected STDOUT flushing
|
2024-03-10 15:40:51 +03:00 |
|
|
53d0b8908d
|
freadln.*: handle EOF in a special way to indicate EOF
|
2024-03-10 15:38:14 +03:00 |
|
|
3638c9eb7c
|
freadln.*: fix error handling logic
|
2024-03-10 15:25:59 +03:00 |
|
|
18af3053f3
|
freadln.c: set errno to EINVAL if *output is NULL
|
2024-03-10 15:06:20 +03:00 |
|
|
ec06d2165b
|
freadln.c: flush stdout only if file is stdin
|
2024-03-10 14:50:42 +03:00 |
|
|
d7be00df1f
|
freadln.c: improve the test, make last TODO optional
|
2024-03-10 14:47:41 +03:00 |
|
|
1a69cfa4ad
|
freadln.c: add a comment to indicate initial length
|
2024-03-10 14:40:02 +03:00 |
|
|
e8d66db238
|
freadln.*: implement reading lines from arbitrary file
|
2024-03-10 14:39:10 +03:00 |
|
|
7d223427b6
|
freadln.h: use intuitive enum values
|
2024-03-10 14:19:29 +03:00 |
|
|
9a2979efe5
|
freadln.c: add a test
|
2024-03-10 14:14:38 +03:00 |
|
|
9d47a1d50b
|
freadln.c: improve function I/O logic
|
2024-03-10 14:14:02 +03:00 |
|
|
8025dbfb61
|
freadln.c: add missing semicolons
|
2024-03-10 14:12:51 +03:00 |
|
|
139afe969b
|
freadln.c: add flushing of STDOUT
|
2024-03-10 14:12:05 +03:00 |
|
|
692eb05bf5
|
freadln.c: add new TODOs
|
2024-03-10 14:08:28 +03:00 |
|
|
c09c9481c9
|
freadln.h: fix prototype mismatch
|
2024-03-10 13:55:21 +03:00 |
|
|
df477f5d44
|
reverse-ramdisk.c: extend and improve the comment about compilers
|
2024-03-10 13:20:06 +03:00 |
|
|
cccdc5087d
|
reverse-ramdisk.c: change warning style
|
2024-03-10 12:19:18 +03:00 |
|
|
c0b07642c4
|
static-vs-dynamic-mem-alloc.c: make sure to avoid macro integer overflow
|
2024-03-10 11:54:20 +03:00 |
|
|
df8d36b8d5
|
str_replace.c: change to-do style
|
2024-03-10 11:52:23 +03:00 |
|
|
34832e541b
|
reverse-ramdisk.c: change to-do style
|
2024-03-10 11:51:09 +03:00 |
|
|
2ac97f81a7
|
freadln.c: change to-do style
|
2024-03-10 11:50:09 +03:00 |
|
|
0957b5dc49
|
opt_int_div.h: make test precision limit optional
|
2024-03-09 19:29:11 +03:00 |
|
|
4839ab2330
|
opt_int_div.h: add parentheses around a and b in last part of OPT_INT_DIV
|
2024-03-09 17:56:53 +03:00 |
|
|
3c9278f472
|
opt_int_div.h: add optimization for case abs(a) < abs(b)
|
2024-03-09 17:51:22 +03:00 |
|
|
fef612cec2
|
opt_int_div.h: extract sign explanation
|
2024-03-09 17:48:05 +03:00 |
|
|
e8d0b5a091
|
opt_int_div.h: fix the test in OPT_INT_DIV
|
2024-03-09 17:16:46 +03:00 |
|
|
9ead68332f
|
opt_int_div.h: explain the comment in macro OPT_INT_DIV_ROUNDING
|
2024-03-09 16:50:42 +03:00 |
|
|
195e1c177b
|
opt_int_div.h: fix macro OPT_INT_DIV_ROUNDING
|
2024-03-09 16:49:33 +03:00 |
|
|
4ea244ca91
|
C: add extol.modern.c
|
2024-03-09 16:47:42 +03:00 |
|
|
bb3f589cbe
|
extol.c: assign new file handler to old file handler
|
2024-03-09 15:50:58 +03:00 |
|
|
bef0606936
|
extol.c: pack all loop-related operations into it
|
2024-03-09 14:04:32 +03:00 |
|
|
93768da40f
|
extol.c: fix calling fclose with NULL argument
|
2024-03-09 13:54:41 +03:00 |
|
|
267b869440
|
extol.c: add file size limit
|
2024-03-09 12:14:56 +03:00 |
|
|
4ae64ebf95
|
extol.c: add error checking for fopen
|
2024-03-09 12:09:57 +03:00 |
|
|
988389a6ea
|
extol.c: clear 4 rightmost bits before the loop
|
2024-03-09 11:46:09 +03:00 |
|
|
1060bfbe45
|
C: add extol.c [joke!]
|
2024-03-09 11:42:06 +03:00 |
|
|
fc829628d9
|
cpuid_vendor_id.mod.c: use only tabs for scope indentation
|
2024-03-08 19:40:54 +03:00 |
|
|
b6f79fadf5
|
C: floatscan-experiment.c: wrap for 80 characters per line
|
2024-03-08 15:03:32 +03:00 |
|
|
3983e7f35d
|
C: add cpuid_vendor_id.mod.c
|
2024-03-08 14:56:35 +03:00 |
|
|
c040b0bd44
|
floatscan-experiment.c: implement shunget to normalize operation of the original code
|
2024-03-02 16:12:59 +03:00 |
|
|
f411dfc6dc
|
floatscan-experiment.c: reformat the original code
|
2024-03-02 16:08:42 +03:00 |
|
|
4f9ceae08f
|
floatscan-experiment.c: upgrade the experiment code, do not use STDIN
|
2024-03-02 15:29:04 +03:00 |
|
|
ca099f2797
|
floatscan-experiment.c: add function prototypes
|
2024-03-02 15:25:41 +03:00 |
|
|
223393b38c
|
floatscan-experiment.c: sort #include s
|
2024-03-02 15:20:37 +03:00 |
|
|
b17b8aa71a
|
floatscan-experiment.c: simplify the note
|
2024-03-02 15:20:20 +03:00 |
|
|
0e6fd4e322
|
C: opt_int_div.*: add the full name
|
2024-02-25 01:09:36 +03:00 |
|
|
7898a3c1ca
|
C: opt_int_div.h: remove the unnecessary division after rounding
|
2024-02-25 01:07:22 +03:00 |
|
|
0ef6c03393
|
C: add opt_int_div.*
|
2024-02-24 20:05:25 +03:00 |
|
|
a73f75c489
|
C: add bool-operations.c
|
2024-02-24 12:05:20 +03:00 |
|
|
bfd51c23c2
|
C: add static-vs-dynamic-mem-alloc.c
|
2024-02-24 12:02:14 +03:00 |
|
|
3e37f5fb73
|
C: reverse-ramdisk.c: tf_free : prevent memory leaks
|
2024-02-22 22:00:45 +03:00 |
|
|
bae1b1a301
|
C: reverse-ramdisk.c: fix memory usage in tf_alloc
|
2024-02-22 21:10:55 +03:00 |
|
|
9c47cde541
|
C: reverse-ramdisk.c: make use of ternary operator
|
2024-02-22 20:29:14 +03:00 |
|
|
544ae06944
|
C: reverse-ramdisk.c: apply D.R.Y. to conditional compilation
|
2024-02-22 20:28:41 +03:00 |
|
|
d36ed5f273
|
C: reverse-ramdisk.c: reformat macros
|
2024-02-22 20:21:07 +03:00 |
|
|
4d797a9854
|
C: pure_getline.h: move include statements
|
2024-02-22 19:20:26 +03:00 |
|
|
c1916f928c
|
C: freadln.h: fix syntax; reformat
|
2024-02-22 19:09:37 +03:00 |
|
|
8f4b853094
|
C: clock-malfunction-imitation.c: reformat
|
2024-02-21 21:53:22 +03:00 |
|
|
a0d4c9d104
|
C: clock-malfunction-imitation.c: remove unsafe optimization
|
2024-02-21 21:52:41 +03:00 |
|
|
5123278748
|
C: clock-malfunction-imitation.c: remove IR leftovers
|
2024-02-21 21:51:26 +03:00 |
|
|
685154e035
|
C: clock-malfunction-imitation.c: optimize sizeof(time(NULL))
|
2024-02-21 19:11:30 +03:00 |
|
|
96af138bb7
|
C: clock-malfunction-imitation.c: fix syntax
|
2024-02-20 22:18:40 +03:00 |
|
|
f345d55d3a
|
C: clock-malfunction-imitation.c: reformat macros
|
2024-02-20 19:47:40 +03:00 |
|
|
130179ab6b
|
C: add str_replace.*
|
2024-02-20 19:41:24 +03:00 |
|
|
eb34ee33b3
|
C: categorize files, update .gitignore
|
2024-02-20 19:36:12 +03:00 |
|
|
73257b0c55
|
C: add freadln.*
|
2024-02-20 01:38:45 +03:00 |
|
|
714d32b4b4
|
C: pure_getline.c: add arguments docs
|
2024-02-20 01:36:11 +03:00 |
|
|
f9985a55ce
|
C: pure_getline.c: remove string reallocation
|
2024-02-20 01:34:07 +03:00 |
|
|
d25a4aa7f3
|
C: jokes/brexit.c: fix the Windows issue
|
2024-02-04 12:36:27 +03:00 |
|