Skip to content
Snippets Groups Projects
  1. Mar 18, 2024
  2. Mar 17, 2024
    • komark06's avatar
      Hook calloc for test harness (#172) · f087e771
      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.
      Unverified
      f087e771
  3. Mar 10, 2024
    • Lin Chun Yeh's avatar
      Fix typo (#171) · 6c80a7d7
      Lin Chun Yeh authored
      "qcontext_t" in the description of q_merge should be queue_contex_t.
      6c80a7d7
  4. Mar 08, 2024
  5. Mar 06, 2024
  6. Mar 04, 2024
  7. Mar 02, 2024
    • vax-r's avatar
      Introduce eventmux callback function for linenoise · b13335b8
      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.
      b13335b8
  8. Feb 29, 2024
    • Jim Huang's avatar
      Merge pull request #163 from 25077667/master · 39c85e97
      Jim Huang authored
      Suppress Cppcheck checking level
      Unverified
      39c85e97
    • scc's avatar
      Suppress Cppcheck checking level · cec5179a
      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.
      cec5179a
  9. Feb 27, 2024
    • SCC/楊志璿's avatar
      Suppress Cppcheck constant check (#154) · 3aa0d557
      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.
      Unverified
      3aa0d557
  10. Feb 25, 2024
  11. Feb 24, 2024
  12. Feb 21, 2024
  13. Feb 20, 2024
    • vax-r's avatar
      Fix pre-push.hook validation bug · 9fa4d904
      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
      9fa4d904
  14. Feb 19, 2024
  15. Jan 30, 2024
    • Jim Huang's avatar
      Enforce grep -E instead of egrep · 844d107e
      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'.
      844d107e
  16. Jan 26, 2024
  17. Nov 11, 2023
  18. Nov 08, 2023
    • elin's avatar
      Fix duplicate item detection issue · 40f20ff3
      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.
      40f20ff3
  19. Aug 12, 2023
  20. Jul 23, 2023
  21. Jun 15, 2023
  22. Mar 16, 2023
  23. Mar 15, 2023
    • paul90317's avatar
      Change CHUNK_SIZE to 2 · 1c2dc541
      paul90317 authored
      CHUNK_SIZE should be 2 because the random number ranging from 0 to 65535 takes 16 bits, which is 2 bytes.
      1c2dc541
Loading