brickviking / list

list is a curses-based interactive file listing program that combines the functions of less and hexdump into one handy program. It displays text on the screen in one of two different formats, either in hexadecimal dump format (a la MS-DOS debug.com format), or in text format, similar to what the programs less and more do.
GNU General Public License v2.0
2 stars 0 forks source link

Consolidate comments. There's too many. #9

Open brickviking opened 1 year ago

brickviking commented 1 year ago

Style - comments

Comments. I put too many into the code. Now we're working with literate programming, a lot of this code can get extracted into either the parent list.org, or get removed from the code if they're actually obvious enough. They were mainly there partly for me to explain my way through the code, and I think I may leave most of them in the code somewhere as they'll be the most use there.

Files to process

List of files to process, tick them off as I go:

brickviking commented 1 year ago

file.c:25 could be incorrect comment. It refers to a memory allocation failure, but the context seems a bit broken. Same line originates from list.org:1656

1655:  if(NULL == (fi->FName = (char *) malloc(sizeof(NewName) * PATH_MAX))) {
1656:    Bye(BR_NOMEM, __LINE__); /* Previously freed, or not alloc'ed until here */
1657:  }