{
starttag = curlocater;
endtag = curlocater + strlen(key);
- if ((endtag == NULL) || (*endtag != '='))
+ if ((!endtag) || (*endtag != '='))
{
foundflag = 0;
return -1;
break;
else
starttag--;
- if (starttag == NULL) break;
+ if (!starttag) break;
}
- while (NULL != endtag)
+ while (endtag)
{
if (*endtag == '<')
{
break;
else
endtag++;
- if (endtag == NULL) break;
+ if (!endtag) break;
}
if ((foundflag != 0) && (*starttag == '<') && (*endtag == '>'))
srcstring = eina_strbuf_string_get(srcbuf);
curlocater = strstr(srcstring, key);
- if (curlocater == NULL)
+ if (!curlocater)
insertflag = 1;
else
{
tagtxtlen = endtag - starttag;
if (tagtxtlen <= 0) tagtxtlen = 0;
if ((starttag < curlocater) && (curlocater < endtag)) break;
- if ((endtag != NULL) && ((endtag + 1) != NULL))
+ if ((endtag) && ((endtag + 1)))
srcstring = endtag + 1;
else
break;
eina_strbuf_append_n(repbuf, starttag, tagtxtlen);
srcstring = eina_strbuf_string_get(repbuf);
curlocater = strstr(srcstring, key);
- if (curlocater != NULL)
+ if (curlocater)
{
replocater = curlocater + strlen(key) + 1;
- while ((*replocater != '=') && (replocater != NULL))
+ while ((*replocater != '=') && (replocater))
replocater++;
- if (replocater != NULL)
+ if (replocater)
{
replocater++;
while ((*replocater != ' ') &&
(*replocater != '>') &&
- (replocater == NULL))
+ (!replocater))
replocater++;
}
- if (replocater != NULL)
+ if (replocater)
{
replocater--;
eina_strbuf_append_n(diffbuf, curlocater,
insertflag = 1;
}
- if (repbuf == NULL) repbuf = eina_strbuf_new();
- if (diffbuf == NULL) diffbuf = eina_strbuf_new();
+ if (!repbuf) repbuf = eina_strbuf_new();
+ if (!diffbuf) diffbuf = eina_strbuf_new();
if (insertflag)
{
if (_get_value_in_key_string(wd->label, "font_size", &kvalue) == 0)
{
- if (kvalue != NULL) cur_fontsize = atoi((char *)kvalue);
+ if (kvalue) cur_fontsize = atoi((char *)kvalue);
}
txtbuf = eina_strbuf_new();
if (cur_fontsize > minfontsize)
{
cur_fontsize--;
- if (fontbuf != NULL)
+ if (fontbuf)
{
eina_strbuf_free(fontbuf);
fontbuf = NULL;
}
else
{
- if (txtbuf != NULL)
+ if (txtbuf)
{
eina_strbuf_free(txtbuf);
txtbuf = NULL;
oldenv = environ;
- for (i = 0, size = 0; environ[i] != NULL; i++)
+ for (i = 0, size = 0; environ[i]; i++)
size += strlen(environ[i]) + 1;
p = malloc((i + 1) * sizeof(char *));
environ = p;
- for (i = 0; oldenv[i] != NULL; i++)
+ for (i = 0; oldenv[i]; i++)
environ[i] = strdup(oldenv[i]);
environ[i] = NULL;
}
ecore_evas_callback_resize_set(win->ee, NULL);
if (win->deferred_resize_job) ecore_job_del(win->deferred_resize_job);
if (win->deferred_child_eval_job) ecore_job_del(win->deferred_child_eval_job);
- while (((child = evas_object_bottom_get(win->evas)) != NULL) &&
+ while (((child = evas_object_bottom_get(win->evas))) &&
(child != obj))
{
evas_object_del(child);
}
- while (((child = evas_object_top_get(win->evas)) != NULL) &&
+ while (((child = evas_object_top_get(win->evas))) &&
(child != obj))
{
evas_object_del(child);