Menu

(bad) circular references

I'm currently rearranging all files of the project.
This is because a circular reference appeared in it:
1 myMap.c included "myRobot.c" to enable void Map_Robot_Draw(ROBOT& R) compilation.
2 myRobot.c included "mySimulation.c" because it calls Simu_Step() function.
3 mySimulation.c included "myMap.c" because it needs Map_Cell...() family functions.

So I'm splitting all files into a header (.h) with only structures declarations and functions signatures and a source (.c) with data instances and codes.

See you.
Miki.

Posted by michael 2012-04-01

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.