Moving the kernel to modern C
Moving the kernel to modern C
Posted Mar 4, 2022 14:57 UTC (Fri) by dvdeug (guest, #10998)In reply to: Moving the kernel to modern C by marcH
Parent article: Moving the kernel to modern C
And it still stands; if it's the code base that you are working on, you should know what type is getting passed in and where to look for that code. Assuming you're not using Ruby, the type of the variable should be named nearby in the code.
And again, "I can't find which source tab to look at" is weird coming from someone bashing Java. In a.b(...), the code is found in file named after the type of a. In C, the definition of the function may be found in one of the files you #included in this code (or not; you can always declare external functions directly), but that header file name may have no relation to the file where the code is written. Of course, with the handy -D option to the C compiler, who knows what the function is actually named.
