-
Notifications
You must be signed in to change notification settings - Fork 3
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
[FEAT] build ast and with debug function #38
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Implementation: After the token_list has been created and the token types have been set, there is now a second stage that goes through the token_list again and changes any mislabeled T_ASSIGNMENT_WORD token types to T_WORD.
These additions tell the compiler to separate the compile process into 3 stages: 1. Pre-processing: Creates .d files which keep track of all header file dependencies. 2. Compiling: Compiles the source files into object files. 3. Linking: Links the object files into an executable. Now, whenever something in a header file changes, all source files that include this header file will recompile, even if nothing in the source files themselves changed.
…ry in the compilation
When something in a library changes, the main project should be recompiled. But there's a bug: Because of the -j MAKEFLAG, multiple make jobs get executed at the same time. This means the library files might get checked for changes before the library actually compiles any changes. In that case, make has to be run again to include the updated library into the main executable.
…ibrary files change
The -s flag silences everything coming from Make. Therefore no other steps to silence printouts are needed anymore and have been removed. What kind of messages should get printed out is determined by the exit codes of new instances of Make and AND and OR operations. This message handling rule is now the default for the 'all' goal and gets checked everytime Make is run. The actual build prerequisites have been moved to a new goal, called 'build'.
Now the ft_lstclear and ft_lstdelone functions still free the node even when the function pointer argument is NULL. This really is more useful. And the ft_lstpop function now also sets the next ptr for the popped node to NULL.
…t just a single node
If given a NULL, now it will search for another NULL in the other given strings. Also no segfault anymore when any of the given strings is NULL.
53fa16d
to
4688b0b
Compare
itislu
reviewed
Dec 23, 2023
itislu
approved these changes
Dec 23, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolve #35