[freenos] r396 committed - Implemented a naive version of libcrt....

  • From: freenos@xxxxxxxxxxxxxx
  • To: freenos@xxxxxxxxxxxxx
  • Date: Mon, 18 Oct 2010 23:35:27 +0000

Revision: 396
Author: nieklinnenbank
Date: Mon Oct 18 16:31:43 2010
Log: Implemented a naive version of libcrt.
This version simply calls the C main() with no arguments.

http://code.google.com/p/freenos/source/detail?r=396

Modified:
 /branches/scratch/lib/libcrt/entry.c

=======================================
--- /branches/scratch/lib/libcrt/entry.c        Fri Oct 15 14:59:41 2010
+++ /branches/scratch/lib/libcrt/entry.c        Mon Oct 18 16:31:43 2010
@@ -15,9 +15,10 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */

-#include <FreeNOS/types.h>
+extern int main(int argc, char **argv);

 void crt_entry(void)
 {
+    main(0, 0);
 }


Other related posts:

  • » [freenos] r396 committed - Implemented a naive version of libcrt.... - freenos