Changeset: 3b091899277d for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=3b091899277d
Modified Files:
        sql/server/sql_parser.y
Branch: Mar2018
Log Message:

Indent.


diffs (71 lines):

diff --git a/sql/server/sql_parser.y b/sql/server/sql_parser.y
--- a/sql/server/sql_parser.y
+++ b/sql/server/sql_parser.y
@@ -1860,20 +1860,19 @@ func_def:
                                // code does not get cleaner than this people
                                if (strcasecmp($10, "PYTHON_MAP") == 0) {
                                        lang = FUNC_LANG_MAP_PY;
-                } else if (strcasecmp($10, "PYTHON3_MAP") == 0) {
-                       lang = FUNC_LANG_MAP_PY3;
-                } else if (strcasecmp($10, "PYTHON3") == 0) {
-                       lang = FUNC_LANG_PY3;
-                } else if (strcasecmp($10, "PYTHON2_MAP") == 0) {
-                       lang = FUNC_LANG_MAP_PY2;
-                } else if (strcasecmp($10, "PYTHON2") == 0) {
-                       lang = FUNC_LANG_PY2;
-                } else {
-                       lang = FUNC_LANG_PY;
-                }
-            }
-                       else if (l == 'C' || l == 'c') {
-                if (strcasecmp($10, "CPP") == 0) {
+                               } else if (strcasecmp($10, "PYTHON3_MAP") == 0) 
{
+                                       lang = FUNC_LANG_MAP_PY3;
+                               } else if (strcasecmp($10, "PYTHON3") == 0) {
+                                       lang = FUNC_LANG_PY3;
+                               } else if (strcasecmp($10, "PYTHON2_MAP") == 0) 
{
+                                       lang = FUNC_LANG_MAP_PY2;
+                               } else if (strcasecmp($10, "PYTHON2") == 0) {
+                                       lang = FUNC_LANG_PY2;
+                               } else {
+                                       lang = FUNC_LANG_PY;
+                               }
+                       } else if (l == 'C' || l == 'c') {
+                               if (strcasecmp($10, "CPP") == 0) {
                                        lang = FUNC_LANG_CPP;
                                } else {
                                        lang = FUNC_LANG_C;
@@ -1939,20 +1938,19 @@ func_def:
                        else if (l == 'P' || l == 'p') {
                                if (strcasecmp($10, "PYTHON_MAP") == 0) {
                                        lang = FUNC_LANG_MAP_PY;
-                } else if (strcasecmp($10, "PYTHON3_MAP") == 0) {
-                       lang = FUNC_LANG_MAP_PY3;
-                } else if (strcasecmp($10, "PYTHON3") == 0) {
-                       lang = FUNC_LANG_PY3;
-                } else if (strcasecmp($10, "PYTHON2_MAP") == 0) {
-                       lang = FUNC_LANG_MAP_PY2;
-                } else if (strcasecmp($10, "PYTHON2") == 0) {
-                       lang = FUNC_LANG_PY2;
-                } else {
-                       lang = FUNC_LANG_PY;
-                }
-            }
-            else if (l == 'C' || l == 'c') {
-                if (strcasecmp($10, "CPP") == 0) {
+                               } else if (strcasecmp($10, "PYTHON3_MAP") == 0) 
{
+                                       lang = FUNC_LANG_MAP_PY3;
+                               } else if (strcasecmp($10, "PYTHON3") == 0) {
+                                       lang = FUNC_LANG_PY3;
+                               } else if (strcasecmp($10, "PYTHON2_MAP") == 0) 
{
+                                       lang = FUNC_LANG_MAP_PY2;
+                               } else if (strcasecmp($10, "PYTHON2") == 0) {
+                                       lang = FUNC_LANG_PY2;
+                               } else {
+                                       lang = FUNC_LANG_PY;
+                               }
+                       } else if (l == 'C' || l == 'c') {
+                               if (strcasecmp($10, "CPP") == 0) {
                                        lang = FUNC_LANG_CPP;
                                } else {
                                        lang = FUNC_LANG_C;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to