- Mar 18, 2024
-
-
Lin Chun Yeh authored
Add supllementary explainations for q_ascend and q_descend, indicating the required memory operations that must be implemented in these functions.
-
Lumynous authored
The original comment states that false is returned when list head is NULL. However, this is inconsistent with functions such as 'q_delete_mid' and has been confirmed to be a typo.
-
- Mar 17, 2024
-
-
komark06 authored
This commit introduces a generic alloc function to handle both test_malloc and test_calloc operations based on the provided alloc_func_t. Additionally, it implements the test_calloc function to allocate memory and initialize it to zero.
-
- Mar 10, 2024
-
-
Lin Chun Yeh authored
"qcontext_t" in the description of q_merge should be queue_contex_t.
-
- Mar 08, 2024
-
-
W.S. Wang authored
-
- Mar 06, 2024
-
-
Jim Huang authored
Enforce newline at the end of files
-
Kuan-Wei Chiu authored
Ensure that all the files conform to the standard of having a newline character at the end. Link: https://medium.com/@alexey.inkin/how-to-force-newline-at-end-of-files-and-why-you-should-do-it-fdf76d1d090e
-
- Mar 04, 2024
-
-
Jim Huang authored
Integrate linenoise with web server
-
- Mar 02, 2024
-
-
vax-r authored
In the previous version of console implementation, we tried to integrate tiny-web-server to enable the ability of processing commands from web requests. As the result, the package linenoise which is responsible for command-line auto-complete needs to be disabled during the running time of tiny-web-server. Because the main loop in "line_edit()" function in linenoise doesn't have the ability to handle web requests correctly. When we start the web server, we use "cmd_select" in console.c and use "select" function to monitor web socket file descriptor and stdin_fd at the same time. I re-design the control flow of web request and command-line input by implement the function "web_eventmux()", and register it as a hook function of type "line_eventmux_callback_t" inside linenoise package. As the result, we can utilize function inside the main loop of linenoise which is located inside the function "line_edit()". "web_eventmux()" is a function which use the function "select()" to monitor both input file descriptor and web file descriptor and modify "line_edit()" to use "eventmux_callback()" so we can process command-line input as normal and provide the command-line auto-complete feature alongside with the abitlity to deal with inputs from different input sources, such as web request. One may wonder why don't we simply modify the function "line_edit()", the reason is that linenoise is an upstream package so we only want to do the miminal changes to this package.
-
- Feb 29, 2024
-
-
Jim Huang authored
Suppress Cppcheck checking level
-
scc authored
Refine the pre-commit hook to enforce a minimum Cppcheck version of 1.90, alerting users with an error message and providing guidance on compiling Cppcheck from source if their version is outdated. Additionally, upgrade the hook for "--check-level=exhaustive" option against Cppcheck versions 2.11 and above, ensuring a comprehensive analysis. This adjustment leverages the enhanced capabilities available from version 2.11, promoting more detailed code quality checks. This commit is aiming for fixing commit #3aa0d557's misinformed title. We just add comments to explain why this changes.
-
- Feb 27, 2024
-
-
SCC/楊志璿 authored
Refine the pre-commit hook to enforce a minimum Cppcheck version of 1.90, alerting users with an error message and providing guidance on compiling Cppcheck from source if their version is outdated. Additionally, upgrade the hook for "--check-level=exhaustive" option against Cppcheck versions 2.11 and above, ensuring a comprehensive analysis. This adjustment leverages the enhanced capabilities available from version 2.11, promoting more detailed code quality checks.
-
- Feb 25, 2024
- Feb 24, 2024
-
-
komark06 authored
-
- Feb 21, 2024
- Feb 20, 2024
-
-
vax-r authored
We utilize ./scripts/pre-push.hook to do the checking when trying to do `git push`. One of the stages is to check a speicific commit hash number for validation of the repository. It tries to get the hash number of commit 3ed17237, using a filter to get the value of `commit` whose git log message matches the pattern specified in line 15 of `/scripts/pre-push.hook`. However when merging the commit into the master branch, it generated a new commit which is 390ade9e, so the value of `commit` in line 15 of `/scripts/pre-push.hook` will be incorrect. That's why we modify a small part of the command in line 15 from `-n 1` to `--skip 1`, so we can neglect the merging commit and get the actual commit hash number we want. Fix #151
-
- Feb 19, 2024
- Jan 30, 2024
-
-
Jim Huang authored
The egrep command has been deprecated since 2007. Beginning with GNU grep 3.8, calling the command will now issue a warning to the user that instead they should use 'grep -E'.
-
- Jan 26, 2024
- Nov 11, 2023
-
-
Jim Huang authored
Revert "Fix duplicate item detection issue"
-
Steven Cheng authored
-
Steven Cheng authored
Fix duplicate item detection issue
-
- Nov 08, 2023
-
-
elin authored
Remove the 'is_this_dup' from qtest.c's delete duplicate implementation. Previously, 'is_this_dup' was used to indicate if the current item in the old list was a duplicate of the previous item, while 'is_next_dup' indicated if the current item was a duplicate of the next item. This led to comparisons always skipping when (is_next_dup || is_this_dup) was true, resulting in the item with duplicates not being compared with items in the new list. The 'is_next_dup' is retained for accurate comparison.
-
- Aug 12, 2023
-
-
kata1219 authored
-
- Jul 23, 2023
- Jun 15, 2023
- Mar 16, 2023
-
-
Steven Cheng authored
Change CHUNK_SIZE to 2
-
- Mar 15, 2023
-
-
paul90317 authored
CHUNK_SIZE should be 2 because the random number ranging from 0 to 65535 takes 16 bits, which is 2 bytes.
-