Skip to content

Conversation

@jayrm
Copy link
Member

@jayrm jayrm commented Feb 25, 2018

fbdoc & tools update for February 2018

  • wiki snapshot up to 2018-02-24
  • remove dead pages
  • common module for common options across (almost all) fbchkdoc tools
  • additional checks in chkdocs tool to improve wiki content

dim chk as string = "!!! DELETE ME !!!"

sBody = LoadFileAsString( filename )
if( left( ucase( ltrim( sBody, any " " & chr(9))), len( chk ) ) = chk ) then
Copy link
Member

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)


pagename = left( d, len(d) - len(".wakka") )

if( filehash.test( lcase(d) ) = FALSE ) then
Copy link
Member

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)

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
Copy link
Member

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.

@jayrm
Copy link
Member Author

jayrm commented Feb 25, 2018

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).

@jayrm jayrm merged commit 991e0b8 into freebasic:master Mar 1, 2018
@jayrm jayrm deleted the manual-feb-2018 branch March 1, 2018 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants