Skip to main content
13 events
when toggle format what by license comment
Mar 28, 2024 at 11:01 comment added U. Windl Maybe, but at least you cannot easily assign a a NEW(dog) to a cat ;-)
Mar 28, 2024 at 3:12 comment added ad absurdum @U.Windl -- "I saw macros like...." Yes, people write terrible macros all the time.
Mar 27, 2024 at 14:21 comment added U. Windl I saw macros like #define NEW(x) (x *) malloc(sizeof(x)). Doesn't look very wrong IMHO.
Mar 27, 2024 at 4:47 history became hot network question
Mar 26, 2024 at 23:15 comment added ad absurdum tNode* node = (tNode *)malloc(sizeof(tNode)); --> tNode* node = malloc(sizeof *node);. I realize that you are only interested in commentary about MorrisTraversalCopy, but you should be open to commentary about other code. This malloc call is un-idiomatic in C. Better to avoid casting the result of malloc, and using the expression *node instead of the type tNode is easier to maintain.
Mar 26, 2024 at 21:55 history edited toolic CC BY-SA 4.0
From the Help Center: "any aspect of the code posted is fair game for feedback and criticism."
Mar 26, 2024 at 21:45 history edited Slav CC BY-SA 4.0
added 362 characters in body
Mar 26, 2024 at 21:32 answer added J_H timeline score: 5
Mar 26, 2024 at 21:16 history edited J_H CC BY-SA 4.0
explain some jargon, using a wikipedia link
Mar 26, 2024 at 21:15 answer added Madagascar timeline score: 4
Mar 26, 2024 at 20:46 history edited toolic CC BY-SA 4.0
added 3 characters in body
S Mar 26, 2024 at 20:43 review First questions
Mar 26, 2024 at 20:46
S Mar 26, 2024 at 20:43 history asked Slav CC BY-SA 4.0