-
Notifications
You must be signed in to change notification settings - Fork 27
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
Implementing automatic includes #561
Conversation
- making the bootstrap compiler aware of auto-includes and changed helper routines
- internal handling logic adapted from already available vwatch auto-including - vwatch as well as the new auto-include files now run through the same logic - added beforefirstline.bi with CONST definitions - added afterlastline.bm with new _MIN and _MAX functions and helper routines
- removed old WhatIsMyIP routine (myip.cpp) - implemented new helper routines from auto-includes - added _MIN and _MAX to highlighter
- a special edit mode will be automatically enabled when loading one of the auto-includes - it is changing options and checks to enforce the rules set for these files
- implements id.hr_syntax entries for user defined SUBs and FUNCTIONs for better reference
- need to remember to use the 64bit version for those changes
Just some trivia: The force include mechanism was already there when I adapted it for $debug; Galleon had put it in place for the old Virtual Keyboard subsystem (remember the Android dream?). |
Aha, didn't know that. |
Some thoughts on the Http changes: After seeing this I'm thinking I was wrong about having us encode the URL for the user, I think it would be better to expose your The separate thing is libcurl inclusion. You mentioned in the comments keeping |
- all changes related to the PR comments and discussions at Discord
- further adjustments to the special edit mode for auto-includes and its internal keyword registration
- recognize F/f as exponent introduction for _FLOAT numbers given to VAL() - reset IDE path when "New" is selected, avoids quick inattentive saves to disappear to wherever you were before - _EXPLICITARRAY was missed from reserved words list
- once more update the bootstrap compiler for latest changes of the internals
- oh look, it knows F now :) - however, range still limited to DOUBLE yet
Long discussed, finally here :)
beforefirstline.bi
andafterlastline.bm
files in internal/support/include, which implement some CONST and helper functions and be helpful in the future for other things. Read the file header, some rules must be followed to avoid conflicts or errors with user code.Also in this PR:
_MIN
and_MAX
functions as new internal keywords to QB64PE, more or less as example how to make it.EncodeURL$
andDecodeURL$
functions here, which may be used in conjunction with the _OPENCLIENT(HTTP:url) syntaxYou may probably ignore reviewing the internal/source related commits, too many changes to the internals, so I just thought to provide the whole thing for bootstrapping.