Enlightenment CVS committal
Author : doursse
Project : e17
Module : libs/embryo
Dir : e17/libs/embryo/src/bin
Modified Files:
embryo_cc_sc1.c embryo_cc_sc3.c embryo_cc_sclist.c
Log Message:
initialize correctly the stuctures
===================================================================
RCS file: /cvs/e/e17/libs/embryo/src/bin/embryo_cc_sc1.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -3 -r1.38 -r1.39
--- embryo_cc_sc1.c 22 Mar 2008 08:31:38 -0000 1.38
+++ embryo_cc_sc1.c 11 Apr 2008 05:29:33 -0000 1.39
@@ -21,7 +21,7 @@
* must not be misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source
* distribution.
- * Version: $Id: embryo_cc_sc1.c,v 1.38 2008/03/22 08:31:38 doursse Exp $
+ * Version: $Id: embryo_cc_sc1.c,v 1.39 2008/04/11 05:29:33 doursse Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -1176,7 +1176,7 @@
symbol *sym;
cell val, size;
char *str;
- value lval = { 0 };
+ value lval = { NULL, 0, 0, 0, 0, NULL };
int cur_lit = 0;
int dim[sDIMEN_MAX];
int numdim, level;
@@ -3422,7 +3422,7 @@
{
int index, tok;
cell cidx;
- value lval = { 0 };
+ value lval = { NULL, 0, 0, 0, 0, NULL };
int localstaging = FALSE;
if (!staging)
@@ -3835,7 +3835,7 @@
{
int flab1, index;
cell cidx;
- value lval = { 0 };
+ value lval = { NULL, 0, 0, 0, 0, NULL };
if ((sc_debug & sCHKBOUNDS) != 0)
{
===================================================================
RCS file: /cvs/e/e17/libs/embryo/src/bin/embryo_cc_sc3.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- embryo_cc_sc3.c 13 Apr 2005 20:01:21 -0000 1.8
+++ embryo_cc_sc3.c 11 Apr 2008 05:29:33 -0000 1.9
@@ -18,7 +18,7 @@
* misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution.
*
- * Version: $Id: embryo_cc_sc3.c,v 1.8 2005/04/13 20:01:21 tsauerbeck Exp $
+ * Version: $Id: embryo_cc_sc3.c,v 1.9 2008/04/11 05:29:33 doursse Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -515,7 +515,7 @@
{
int lvalue, opidx;
int count;
- value lval2 = { 0 };
+ value lval2 = { NULL, 0, 0, 0, 0, NULL };
lvalue = plnge1(hier, lval);
if (nextop(&opidx, opstr) == 0)
@@ -547,7 +547,7 @@
plnge_rel(int *opstr, int opoff, int (*hier) (value * lval), value * lval)
{
int lvalue, opidx;
- value lval2 = { 0 }; /* intialize, to avoid a compiler
warning */
+ value lval2 = { NULL, 0, 0, 0, 0, NULL };
int count;
/* this function should only be called for relational operators */
@@ -630,7 +630,7 @@
{ /* constant on right side */
if (commutative(oper))
{ /* test for commutative operators */
- value lvaltmp = { 0 };
+ value lvaltmp = { NULL, 0, 0, 0, 0, NULL };
stgdel(index, cidx); /* scratch push1() and constant fetch
(then
* fetch the constant again */
const2(lval2->constval << dbltest(oper, lval1, lval2));
@@ -760,7 +760,7 @@
int
expression(int *constant, cell * val, int *tag, int chkfuncresult)
{
- value lval = { 0 };
+ value lval = { NULL, 0, 0, 0, 0, NULL };
if (hier14(&lval))
rvalue(&lval);
@@ -824,9 +824,8 @@
hier14(value * lval1)
{
int lvalue;
- value lval2 = { 0 }, lval3 =
- {
- 0};
+ value lval2 = { NULL, 0, 0, 0, 0, NULL };
+ value lval3 = { NULL, 0, 0, 0, 0, NULL };
void (*oper) (void);
int tok, level, i;
cell val;
@@ -1064,7 +1063,7 @@
hier13(value * lval)
{
int lvalue, flab1, flab2;
- value lval2 = { 0 };
+ value lval2 = { NULL, 0, 0, 0, 0, NULL };
int array1, array2;
lvalue = plnge1(hier12, lval);
@@ -1484,7 +1483,7 @@
{
int lvalue, index, tok, symtok;
cell val, cidx;
- value lval2 = { 0 };
+ value lval2 = { NULL, 0, 0, 0, 0, NULL };
char *st;
char close;
symbol *sym;
@@ -1901,7 +1900,7 @@
int nargs = 0; /* number of arguments */
int heapalloc = 0;
int namedparams = FALSE;
- value lval = { 0 };
+ value lval = { NULL, 0, 0, 0, 0, NULL };
arginfo *arg;
char arglist[sMAXARGS];
constvalue arrayszlst = { NULL, "", 0, 0 }; /* array size
list starts empty */
===================================================================
RCS file: /cvs/e/e17/libs/embryo/src/bin/embryo_cc_sclist.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- embryo_cc_sclist.c 13 Apr 2005 20:36:07 -0000 1.6
+++ embryo_cc_sclist.c 11 Apr 2008 05:29:33 -0000 1.7
@@ -21,7 +21,7 @@
* misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution.
*
- * Version: $Id: embryo_cc_sclist.c,v 1.6 2005/04/13 20:36:07 tsauerbeck Exp $
+ * Version: $Id: embryo_cc_sclist.c,v 1.7 2008/04/11 05:29:33 doursse Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -131,7 +131,7 @@
}
/* ----- alias table --------------------------------------------- */
-static stringpair alias_tab = { NULL, NULL, NULL }; /* alias table */
+static stringpair alias_tab = { NULL, NULL, NULL, 0 }; /* alias table */
stringpair *
insert_alias(char *name, char *alias)
@@ -217,7 +217,7 @@
/* ----- text substitution patterns ------------------------------ */
-static stringpair substpair = { NULL, NULL, NULL }; /* list of substitution
pairs */
+static stringpair substpair = { NULL, NULL, NULL, 0 }; /* list of
substitution pairs */
static stringpair *substindex['z' - 'A' + 1]; /* quick index to first
character */
static void
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs