You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "xiaoxiang781216 (via GitHub)" <gi...@apache.org> on 2023/02/25 17:15:13 UTC

[GitHub] [nuttx] xiaoxiang781216 commented on pull request #8653: sched/env: add tg_envc in task_group_s to avoid some loops in code

xiaoxiang781216 commented on PR #8653:
URL: https://github.com/apache/nuttx/pull/8653#issuecomment-1445162048

   > I think some time in the past we have count of variables, but moved away from it. @xiaoxiang781216 most probably can provide more details. Anyway I will review.
   
   Yes, but the layout is change:
   
   1. The old way save all env in one big char array like this "env1=value1\0env2=value2"
   2. The new way save all env in array of char array like this {"env1=value1", "env2=value2", NULL}
   
   Layout 2 is required implicitly by environ: https://pubs.opengroup.org/onlinepubs/7908799/xsh/environ.html
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org