Gary-Hobson commented on code in PR #7688: URL: https://github.com/apache/incubator-nuttx/pull/7688#discussion_r1031753302
########## include/nuttx/streams.h: ########## @@ -40,6 +40,16 @@ * Pre-processor Definitions ****************************************************************************/ +#define stream_write(stream, buf, len) \ Review Comment: I have a little doubt about this code, (FAR struct lib_outstream_s *) Which variable is this type conversion decoration? According to the deduction of operator precedence, "->" has a higher priority than "()", and it should be modified puts But the type of puts is not the same as (FAR struct lib_outstream_s *), is this a problem 这段代码我有一点疑问, (FAR struct lib_outstream_s *) 这个类型转换修复是那一个变量呢 按照运算符优先级推导, “->” 的优先级高于 “()” ,它应该是修饰 puts 但是 puts 类型和(FAR struct lib_outstream_s *)并不相同,这是否存在问题 https://en.cppreference.com/w/c/language/cast https://en.cppreference.com/w/c/language/operator_precedence -- 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-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org