Commit Graph

192 Commits

Author SHA1 Message Date
8f990ba515
getopt.rs(3): adds testing 2024-06-22 22:18:13 -06:00
4b3333d8d3
fop(1): record separator worky now? 2024-06-21 03:26:42 -06:00
35f49a699f
fop(1): fixes record separator, again 2024-06-19 15:26:46 -06:00
40da8135f1
getopt.rs(3): relicense to AGPLv3 2024-06-06 01:03:01 -06:00
d22d90b6ec
Merge branch 'fop-delim' (closes #106) 2024-06-05 17:28:51 -06:00
3392d64e44
fop(1): literal record separator 2024-06-05 17:25:22 -06:00
02daca87dc
fop(1): updated to latest optind api 2024-06-05 11:55:16 -06:00
e862b7fec6
getopt.rs(3): safe api around optind reading and setting 2024-06-05 11:54:55 -06:00
05cde15105
fop(1): updated to use new optind api 2024-06-04 19:15:55 -06:00
35ddc729fd
getopt.rs(3): makes optind part of the Opt struct 2024-06-04 19:15:22 -06:00
b7283d54fe
getopt.rs(3): formatting & organization 2024-06-04 15:07:11 -06:00
a5a9c91cb6
getopt.rs(3): optind support 2024-06-04 15:04:01 -06:00
642774bccf
src: removed erroneous file 2024-06-02 19:21:56 -06:00
2dd6c0ded7
fop(1): adds the ability to use any string as a delimiter 2024-06-02 19:05:30 -06:00
DTB
6132c9bf47
Merge branch 'main' into scrut-sysexits 2024-04-26 19:37:34 -06:00
DTB
919b171400
scrut(1): conditionally include non-POSIX sysexits.h 2024-04-26 19:35:33 -06:00
DTB
8e38db92c7
scrut(1): update copyright header 2024-04-26 19:33:45 -06:00
DTB
adc9dbded5
scrut(1): changed return status 1 to EXIT_FAILURE 2024-04-26 19:30:33 -06:00
488351da39
scrut(1): changed return status 0 to EXIT_SUCCESS 2024-04-25 16:46:05 -06:00
78eacd660a
getopt.rs(3): better Opt return 2024-04-13 23:42:11 -06:00
d1b77d652b
getopt.rs(3): returns last parsed option 2024-04-13 17:11:04 -06:00
95927ba8c5
getopt.rs(3): formatting 2024-04-11 23:51:52 -06:00
ad92fe27d4
fop(1): switch to getopt.rs(3) 2024-04-11 23:37:04 -06:00
bb2c63bfaf
getopt.rs(3): fixed pointer shenanigans 2024-04-11 20:33:42 -06:00
88b0d55440
getopt.rs(3): refactor to remove as much as possible from unsafe 2024-04-11 20:21:01 -06:00
320a70bc56
getopt.rs(3): initial commit 2024-04-01 20:39:10 -06:00
DTB
61382c34d9
mm(1): error out when given positional arguments 2024-03-31 22:54:03 -06:00
8d9ac33566
Merge branch 'strerror' 2024-03-29 19:23:27 -06:00
d87b5d0958
hru(1), fop(1): changed to reflect strerror changes 2024-03-18 21:31:25 -06:00
1891c3e1aa
strerror(3): created strerror() method 2024-03-18 21:30:43 -06:00
127192185f
Merge branch 'dj-fix' (closes #66) 2024-03-18 21:01:48 -06:00
f81232685a
Merge branch 'mm' 2024-03-18 20:56:06 -06:00
05b5a4480c
Merge branch 'swab' (closes #22) 2024-03-18 20:53:08 -06:00
b356ac522f
strerror(3): changed panic to 0 2024-03-18 20:45:53 -06:00
8193e471f0
changes redundant .unwrap_or_else(panic!()) to .unwrap() 2024-03-03 17:26:40 -07:00
c392dbc680
Makefile: better deps; fop(1), hru(1), strerror(3): changed strerror wrapper function name 2024-03-02 10:16:32 -07:00
ca01ca4074
rpn(1): remove erroneous strerror(3) dependency 2024-03-01 23:14:58 -07:00
3e6dc5cc46
rpn(1): make error messages consistent with other tools 2024-03-01 23:14:18 -07:00
cf1d16f860
hru(1): changed to use strerror(3) 2024-03-01 23:12:44 -07:00
8f956d775c
fop(1): changed to use strerror(3) 2024-03-01 23:10:28 -07:00
e81703c6e1
sterror(3): added library for C-like error messages; Makefile: some efficiency changes 2024-03-01 23:04:53 -07:00
DTB
135bf2a8eb
mm(1), mm.1: bring source in line with documentation 2024-02-26 09:11:47 -07:00
DTB
d74bc715cf
mm(1): fix full file handling 2024-02-26 09:02:58 -07:00
DTB
bbac85daf8
swab(1): add copyright notice 2024-02-26 08:42:06 -07:00
DTB
e788947fc4
swab(1): add argument parsing 2024-02-24 03:04:05 -07:00
e6b1db3f40
Merge branch 'hru' (closes #33) 2024-02-23 22:15:43 -07:00
ef1643660b
hru(1): fixed lack of newline 2024-02-23 22:11:23 -07:00
b0636b416e
Merge branch 'fop-trim' (closes #54, closes #58) 2024-02-23 22:05:56 -07:00
bd08ef479c
hru(1): error handling tweaks 2024-02-23 21:58:23 -07:00
3cee3de900
fop(1): committing to Rust error messages 2024-02-23 21:46:50 -07:00
DTB
3f0d95fe8f
swab(1): minimum viable program 2024-02-23 20:49:24 -07:00
DTB
58245c9484
dj(1): remove function pointer hijinks (fixes #66) 2024-02-22 19:27:14 -07:00
0801d89128
hru(1): fixed kilo prefix 2024-02-18 14:49:09 -07:00
DTB
194b19f94b
mm(1): add 2024-02-17 23:43:22 -07:00
DTB
64a1a19bd8
scrut(1): fix buffer overflow in option parsing 2024-02-16 01:13:37 -07:00
448211bbe2
fop(1): better newline removal (preserves existing newlines) 2024-02-14 23:05:39 -07:00
4c663bf9dd
fop(1): closure fix 2024-02-14 22:55:28 -07:00
f8e3013563
fop(1): fixed trimming and handled unwraps (closes #58) 2024-02-14 22:53:45 -07:00
e3a0069180
hru(1): improved SI prefix logic 2024-02-14 00:07:06 -07:00
1299aefc39
hru(1): fixed overflow 2024-02-13 23:56:01 -07:00
d0205b71da
hru(1): read stdin until EOF 2024-02-13 17:48:25 -07:00
1ee668aed6
hru(1): made it actually work 2024-02-13 17:32:31 -07:00
5b364e104e
rpn(1): fixed exponentiation 2024-02-13 16:57:29 -07:00
fa686eefb9
hru(1): updated copyright year 2024-02-07 21:42:43 -07:00
be89e72c45
Makefile, hru(1): add hru(1) 2024-02-07 20:58:57 -07:00
b95b198923
rpn(1): typo 2024-02-07 19:12:31 -07:00
4e040e0021
rpn(1): added alternative representation for powers 2024-02-07 18:51:58 -07:00
d768a257a3
rpn(1): made EvaluationError struct contain exit code 2024-02-06 23:29:43 -07:00
228a0111c7
rpn(1): fixed Invalid error handling 2024-02-02 21:05:34 -07:00
4993c53080
rpn(1): re-fixed arg parsing 2024-02-02 19:17:00 -07:00
6f98fdd1d4
rpn(1): fixed expressions on one line 2024-02-02 19:13:53 -07:00
fb2a164507
rpn(1): rewrote parser for the second time 2024-02-02 15:35:36 -07:00
4cb5e8e2b0
rpn(1): better error handling 2024-02-02 14:16:49 -07:00
885f167afc
rpn(1): changes to error message 2024-02-02 13:04:57 -07:00
258881dbb2
rpn(1): minor change 2024-02-01 23:35:49 -07:00
b35f87bd27
rpn(1): code cleanup 2024-02-01 23:34:20 -07:00
e7ee75b03f
rpn(1): added From trait to CalcType 2024-02-01 23:32:37 -07:00
0d97f81f49
rpn(1): unicode subtraction, multiplication, division & code cleanup 2024-02-01 13:06:46 -07:00
b68f13acdc
rpn(1): added floor division 2024-02-01 12:38:12 -07:00
f7108245ea
rpn(1): more code cleanup 2024-02-01 10:54:28 -07:00
34b9519e03
rpn(1): code cleanup 2024-02-01 10:46:10 -07:00
5f8e90b592
rpn(1): added modulo 2024-02-01 01:26:48 -07:00
5debb9d954
rpn(1): highest possible precision 2024-02-01 01:18:13 -07:00
942e284f93
rpn(1): fixed exiting the program on EOF 2024-02-01 00:57:51 -07:00
4870f4679c
Makefile, rpn(1): add sysexits dependency 2024-02-01 00:41:27 -07:00
ab4d732aaf
rpn: initial working prototype 2024-02-01 00:24:38 -07:00
e246290bff
Merge branch 'djfix' 2024-01-31 13:56:04 -07:00
DTB
271510476c
dj(1): fix getopt optstring 2024-01-29 22:33:04 -07:00
601954a0f6
Merge branch 'dj-fixes' 2024-01-19 20:27:31 -07:00
04923fb1ad
Makefile, true(1), false(1): ported true and false back to C for simplicity and size 2024-01-15 16:53:34 -07:00
c444198efc
closed #18 2024-01-15 16:49:46 -07:00
28becbafbc
fop(1): updated copyright year and usage info 2024-01-15 16:33:51 -07:00
52def0a32d
Makefile, fop(1): added argument parsing and -d option 2024-01-15 16:30:00 -07:00
91e129b813
Makefile, getopt-rs: added getopt-rs library 2024-01-15 15:50:12 -07:00
DTB
ba7bd26fe6
dj(1): fix typos in comments 2024-01-15 13:34:30 -07:00
DTB
d25c8a64f2
dj(1): add copyright header to dj.c 2024-01-15 13:32:33 -07:00
DTB
612067890f
dj(1): interpret a '-' file name as standard input/output 2024-01-10 15:03:04 -07:00
DTB
88a66bcc01
dj(1): import from git.sr.ht/~trinity/src 2024-01-09 23:43:45 -07:00
0c2223d4fb
getopt-rs(3): added getopt library for Rust 2023-12-29 15:17:39 -07:00
f89a686d3c
fop(1): made checking argv better 2023-12-28 22:42:05 -07:00