122 Commits

Author SHA1 Message Date
anon
15b43c126f fix highly faulty trim_trailing_ws() 2025-01-12 23:32:55 +01:00
anon
54d1af9b88 fix(is_valid_c_sym) 2024-12-16 00:44:50 +01:00
Sau P
eab8920b99 docs(bugs): Bug doc update 2024-12-15 19:33:35 +00:00
Sau P
a7958f510a refactor(find.c): New func to check for valid sym 2024-12-15 19:33:35 +00:00
Sau P
e3297cdad2 refactor(find.c): Replace magic num 8 with const 2024-12-15 19:33:35 +00:00
Sau P
642e766b72 refactor(find.c): New function to trim whitespace 2024-12-15 19:33:35 +00:00
Sau P
0b95ea9172 fix(find.c): Ensure 'pattlen' is non-zero 2024-12-15 19:33:35 +00:00
anon
59c17475e4 remove references to CCS/sgs.h 2024-12-05 13:15:07 +01:00
anon
840dad3075 remove commented out legacy function call 2024-12-05 13:15:07 +01:00
anon
bb0035ab3d removed useless comments 2024-12-05 13:15:07 +01:00
anon
47ca1d984e renamed a function 2024-12-05 13:15:07 +01:00
anon
8f97bb51e5 formatting 2024-12-05 13:15:07 +01:00
anon
0df5b014a3 remove legacy macro 2024-12-05 13:03:33 +01:00
Sau P
51e8f8bf76 fix(find.c): Check for empty pattern and free mem 2024-12-05 10:16:48 +01:00
Sau P
2b7b6d8de2 fix(dir.c): Free allocations for path string 2024-12-05 09:07:52 +00:00
Sau P
498f4107d5 refactor(path.c): Split up 'compress_path' 2024-12-05 09:07:52 +00:00
Sau P
9bc76d151d fix(path.c): Check pathname is valid 2024-12-05 09:07:52 +00:00
Sau P
741921d60c new(main.c): Func to remove trailing newline
Make use of remove newline function

document the remove_trailing new line
2024-11-30 10:53:32 +01:00
Sau P
c88a2aaba4 refactor(main.c): General readability improvements
- Braces around 'if' statements, line breaks too
- Assignments are clearer when they are not within a conditionals
2024-11-30 10:53:32 +01:00
Sau P
dbd9636495 refactor(main.c): Simplify 'caseless' toggling
Regarding the note: Control C on most terminals close the
currently running process/program (in this case csope).

We should look to change this bind in the future.
2024-11-30 10:53:32 +01:00
Sau P
5b92f04e9c fix(global.h): Update func declaration 2024-11-30 10:53:32 +01:00
Sau P
e8cfe0a66e fix(global.h): Remove redundant home declaration 2024-11-30 10:53:32 +01:00
Sau P
0306a40664 fix(build.c): Check for successful reallocation 2024-11-30 10:53:22 +01:00
Sau P
776baf0c21 fix(display): Specify void
Empty parameters for a function is undefined behaviour.
2024-11-20 00:16:50 +00:00
anon
2790d60f2a typedef struct symbol 2024-11-15 19:32:40 +01:00
anon
110a057112 further clean main() 2024-11-15 19:27:46 +01:00
anon
f3f2d2d134 pass reffile to opendatabase explicitly 2024-11-15 19:16:49 +01:00
anon
29645c1632 make setup_build_files() argument const 2024-11-15 19:13:17 +01:00
anon
b9d494600e remove useless heap allocation 2024-11-15 19:12:51 +01:00
anon
f25f2eadb6 remove all useless NOTREACHED comments from the scanner 2024-11-15 18:49:59 +01:00
anon
2f1821d603 merge rule declarations 2024-11-15 18:42:52 +01:00
anon
aefd747400 prefered nop notation 2024-11-15 18:42:28 +01:00
anon
d02a515c35 fix bug introduced in af4145d 2024-11-15 18:37:48 +01:00
anon
50363c2cdc ripped out giga-block from main 2024-11-15 12:15:08 +01:00
anon
feaf54e3a8 rewritting egrep.y is should be easier than understanding and refactoring the original 2024-11-15 12:15:08 +01:00
anon
d0ec6f3ecb just formatting 2024-11-15 12:15:08 +01:00
anon
2519c81fc8 nothing of importance 2024-11-15 12:15:08 +01:00
anon
17c8d522a8 remove unused var 2024-11-15 12:15:08 +01:00
anon
ecd3f1b803 drop Lex compatibility code which has been broken for the past 20 years anyways 2024-11-15 12:15:08 +01:00
anon
4c27e8d99e fix reported compile error on newer gcc versions 2024-11-15 12:15:08 +01:00
anon
e1f39ed852 simplify filetype bookkeeping by merging state bools to an enum 2024-11-15 12:15:08 +01:00
anon
af4145d153 merge IN_PREPROC rules 2024-11-15 12:15:03 +01:00
anon
3ddf4faed9 harder to compare whitespacing 2024-11-15 12:14:13 +01:00
anon
ccdab83c06 remove useless comments 2024-11-15 12:13:22 +01:00
anon
9ef30ae49b explicitly name clusterfuck-y patterns 2024-11-15 12:12:55 +01:00
anon
367116ac79 basic whitespacing 2024-11-15 12:11:43 +01:00
anon
c6106aa336 remove useless header 2024-11-15 12:10:14 +01:00
anon
a7fe078b33 nothing of significance 2024-11-14 11:28:28 +01:00
anon
6f97db5f58 use postfatal as FIXME comment suggested 2024-11-13 15:34:55 +01:00
anon
0ff4063cb2 helpful comment 2024-11-13 15:30:25 +01:00