-
Notifications
You must be signed in to change notification settings - Fork 155
fbdoc & tools update Feb 2018 #66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… the tools in to a single module cmd_opts.bas
…moved pages marked for delete from the set of pages to check
…E !!!, and -html option to write 'delete.html' helper file to delete pages from the wiki.
578f20c to
0272b85
Compare
doc/fbchkdoc/delextra.bas
Outdated
| dim chk as string = "!!! DELETE ME !!!" | ||
|
|
||
| sBody = LoadFileAsString( filename ) | ||
| if( left( ucase( ltrim( sBody, any " " & chr(9))), len( chk ) ) = chk ) then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This if could be solved out, in favour of return (left(...) = chk)
doc/fbchkdoc/delextra.bas
Outdated
|
|
||
| pagename = left( d, len(d) - len(".wakka") ) | ||
|
|
||
| if( filehash.test( lcase(d) ) = FALSE ) then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe this if can be turned into a function, then e.g. var remove = shouldRemove(d)
doc/fbchkdoc/delextra.bas
Outdated
| dim as string cache_dir, def_cache_dir, web_cache_dir, dev_cache_dir | ||
| dim as integer i = 1, isgit = FALSE, nodelete = FALSE | ||
| '' from cmd_opts.bas | ||
| extern cmd_opt_help as boolean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extern declarations can be moved into a header file, like function declarations, to avoid mismatching signatures.
…header to prevent mismatches in signatures
…oughout all the tools
|
dkl, thanks for the notes. I appreciate you giving up your free time to do that. I gave the delextra tool a once over with your suggestions and I see how I can improve the code in other tools (next month). |
fbdoc & tools update for February 2018