Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/embryo
Dir : e17/libs/embryo/src/lib
Modified Files:
Makefile.am embryo_amx.c embryo_main.c embryo_private.h
Added Files:
embryo_rand.c embryo_str.c embryo_time.c
Log Message:
more meaty api...
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/embryo/src/lib/Makefile.am,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- Makefile.am 25 Mar 2004 02:07:28 -0000 1.3
+++ Makefile.am 29 Mar 2004 11:58:56 -0000 1.4
@@ -19,6 +19,9 @@
embryo_amx.c \
embryo_float.c \
embryo_main.c \
+embryo_rand.c \
+embryo_str.c \
+embryo_time.c \
embryo_private.h
libembryo_la_LIBADD = $(LDFLAGS) -lm
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/embryo/src/lib/embryo_amx.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- embryo_amx.c 26 Mar 2004 08:07:47 -0000 1.13
+++ embryo_amx.c 29 Mar 2004 11:58:57 -0000 1.14
@@ -197,6 +197,9 @@
#endif
/* init native api for handling floating point - default in embryo */
_embryo_fp_init(ep);
+ _embryo_rand_init(ep);
+ _embryo_str_init(ep);
+ _embryo_time_init(ep);
return 1;
}
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/embryo/src/lib/embryo_main.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- embryo_main.c 24 Mar 2004 09:48:28 -0000 1.1
+++ embryo_main.c 29 Mar 2004 11:58:57 -0000 1.2
@@ -1,4 +1,5 @@
#include "embryo_private.h"
+#include <time.h>
static int _embryo_init_count = 0;
@@ -10,6 +11,8 @@
_embryo_init_count++;
if (_embryo_init_count > 1) return _embryo_init_count;
+ srand(time(NULL));
+
return _embryo_init_count;
}
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/embryo/src/lib/embryo_private.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- embryo_private.h 26 Mar 2004 08:07:47 -0000 1.7
+++ embryo_private.h 29 Mar 2004 11:58:57 -0000 1.8
@@ -276,5 +276,8 @@
} __attribute__((packed));
void _embryo_fp_init(Embryo_Program *ep);
+void _embryo_rand_init(Embryo_Program *ep);
+void _embryo_str_init(Embryo_Program *ep);
+void _embryo_time_init(Embryo_Program *ep);
#endif
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs