Kaydet (Commit) cb49cf72 authored tarafından Your Name's avatar Your Name Kaydeden (comit) Suleyman Poyraz

if-elseif-else yapılarına el atıldı

üst a529c74d
...@@ -63,8 +63,7 @@ elif 'test' in sys.argv: ...@@ -63,8 +63,7 @@ elif 'test' in sys.argv:
class Install(install): class Install(install):
def finalize_options(self): def finalize_options(self):
# NOTE: for Pardus distribution if os.path.exists("/etc/sulin-release"):
if os.path.exists("/etc/pardus-release"):
self.install_platlib = '$base/lib/sulin' self.install_platlib = '$base/lib/sulin'
self.install_purelib = '$base/lib/sulin' self.install_purelib = '$base/lib/sulin'
install.finalize_options(self) install.finalize_options(self)
......
...@@ -660,8 +660,7 @@ sax_core (iksparser *prs, char *buf, int len) ...@@ -660,8 +660,7 @@ sax_core (iksparser *prs, char *buf, int len)
prs->context = C_ENTITY; prs->context = C_ENTITY;
prs->entpos = 0; prs->entpos = 0;
break; break;
} }else if ('<' == c) {
if ('<' == c) {
if (old < pos && prs->cdataHook) { if (old < pos && prs->cdataHook) {
err = prs->cdataHook (prs->user_data, &buf[old], pos - old); err = prs->cdataHook (prs->user_data, &buf[old], pos - old);
if (IKS_OK != err) return err; if (IKS_OK != err) return err;
...@@ -678,12 +677,10 @@ sax_core (iksparser *prs, char *buf, int len) ...@@ -678,12 +677,10 @@ sax_core (iksparser *prs, char *buf, int len)
if ('/' == c) { if ('/' == c) {
prs->tagtype = IKS_CLOSE; prs->tagtype = IKS_CLOSE;
break; break;
} }else if ('?' == c) {
if ('?' == c) {
prs->context = C_PI; prs->context = C_PI;
break; break;
} }else if ('!' == c) {
if ('!' == c) {
prs->context = C_MARKUP; prs->context = C_MARKUP;
break; break;
} }
...@@ -702,8 +699,7 @@ sax_core (iksparser *prs, char *buf, int len) ...@@ -702,8 +699,7 @@ sax_core (iksparser *prs, char *buf, int len)
stack_old = -1; stack_old = -1;
STACK_PUSH_END; STACK_PUSH_END;
break; break;
} }else if ('/' == c) {
if ('/' == c) {
if (IKS_CLOSE == prs->tagtype) return IKS_BADXML; if (IKS_CLOSE == prs->tagtype) return IKS_BADXML;
prs->tagtype = IKS_SINGLE; prs->tagtype = IKS_SINGLE;
prs->context = C_TAG_END; prs->context = C_TAG_END;
...@@ -711,8 +707,7 @@ sax_core (iksparser *prs, char *buf, int len) ...@@ -711,8 +707,7 @@ sax_core (iksparser *prs, char *buf, int len)
stack_old = -1; stack_old = -1;
STACK_PUSH_END; STACK_PUSH_END;
break; break;
} }else if ('>' == c) {
if ('>' == c) {
prs->context = C_TAG_END; prs->context = C_TAG_END;
if (stack_old != -1) STACK_PUSH (buf + stack_old, pos - stack_old); if (stack_old != -1) STACK_PUSH (buf + stack_old, pos - stack_old);
stack_old = -1; stack_old = -1;
...@@ -744,8 +739,7 @@ sax_core (iksparser *prs, char *buf, int len) ...@@ -744,8 +739,7 @@ sax_core (iksparser *prs, char *buf, int len)
prs->tagtype = IKS_SINGLE; prs->tagtype = IKS_SINGLE;
prs->context = C_TAG_END; prs->context = C_TAG_END;
break; break;
} }else if ('>' == c) {
if ('>' == c) {
prs->context = C_TAG_END; prs->context = C_TAG_END;
re = 1; re = 1;
break; break;
...@@ -791,8 +785,7 @@ sax_core (iksparser *prs, char *buf, int len) ...@@ -791,8 +785,7 @@ sax_core (iksparser *prs, char *buf, int len)
prs->atts[prs->attcur] = NULL; prs->atts[prs->attcur] = NULL;
prs->context = C_TAG_END; prs->context = C_TAG_END;
break; break;
} }else if ('>' == c) {
if ('>' == c) {
prs->atts[prs->attcur] = NULL; prs->atts[prs->attcur] = NULL;
prs->context = C_TAG_END; prs->context = C_TAG_END;
re = 1; re = 1;
...@@ -807,8 +800,7 @@ sax_core (iksparser *prs, char *buf, int len) ...@@ -807,8 +800,7 @@ sax_core (iksparser *prs, char *buf, int len)
if ('\'' == c) { if ('\'' == c) {
prs->context = C_VALUE_APOS; prs->context = C_VALUE_APOS;
break; break;
} }else if ('"' == c) {
if ('"' == c) {
prs->context = C_VALUE_QUOT; prs->context = C_VALUE_QUOT;
break; break;
} }
...@@ -899,8 +891,7 @@ sax_core (iksparser *prs, char *buf, int len) ...@@ -899,8 +891,7 @@ sax_core (iksparser *prs, char *buf, int len)
if ('[' == c) { if ('[' == c) {
prs->context = C_SECT; prs->context = C_SECT;
break; break;
} }else if ('-' == c) {
if ('-' == c) {
prs->context = C_COMMENT; prs->context = C_COMMENT;
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment