Skip to content

Conversation

@itislu
Copy link
Collaborator

@itislu itislu commented Jun 7, 2024


  • Reducing the double pointers makes it more clear when list pointers are not getting moved forward.
  • Move going to next cmd_table_node out of handle_builtin() to make the interface the same as handle_external_cmd().
  • Reuse get_cmd_table_type_from_list() more often.
  • Change interface of is_control_op_cmd_table() to align with its name.
  • Reduce unnecessary intermediary variables.
  • Delete get_cmd_table_from_list() and get_token_from_list() bc they are unnecessary and the code is even shorter without these function calls.

itislu added 8 commits June 7, 2024 08:13
"Binding" file descriptors is commonly used with sockets, not with files.
This makes the interface the same as `handle_external_cmd()`.
- Change interface of `is_control_op_cmd_table()` to align with its name.
- Reduce unnecessary intermediary variables.
It's a function that is not necessary and is only called once. The code is even shorter without the function call.
…om_list()`

- Reducing the double pointers makes it more clear when list pointers are not getting moved forward.
- The `get_token_from_list()` is not called anywhere anymore and is unnecessary.
@itislu itislu added the chore A routine task label Jun 7, 2024
@LeaYeh
Copy link
Owner

LeaYeh commented Jun 8, 2024

I'm ok to change this, but I don't feel any different. Do we really need to do that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore A routine task

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

3 participants