-
Notifications
You must be signed in to change notification settings - Fork 44
C code conversion
To convert C code to C# we use some libraries for simulate C behavior.
We implements (x)printf base methods with the Richard Prinz project (http://www.codeproject.com/Articles/19274/A-printf-implementation-in-C) with somes updates.
We implements (x)scanf base methods with the Jonathan Wood project (http://www.blackbeltcoder.com/Articles/strings/a-sscanf-replacement-for-net) with some updates and unit tests.
All C files are included in the partial class 'SwissEph' each in a specific file.
All exported constants are defined as public in the class.
All exported methods are defined as public in the class.
The other elements are declared as private.
The compilation configuration use pre-processor constants. We remove lot of them in our case. The other are converted as constants, not pre-processor.