Pārlūkot izejas kodu

scheme: Remove debug code

Serj Kalichev 3 gadi atpakaļ
vecāks
revīzija
eacd8a1475
2 mainītis faili ar 7 papildinājumiem un 16 dzēšanām
  1. 1 10
      bin/klishd/klishd.c
  2. 6 6
      klish/kscheme/ischeme.c

+ 1 - 10
bin/klishd/klishd.c

@@ -54,16 +54,7 @@ ischeme_t sch = {
 
     VIEW {
       .name = "view2",
-    }, 
-    VIEW {
-      .name = "view3",
-    }, 
-
-
-(iview_t *)NULL,
-    VIEW {
-      .name = "view4",
-    }, 
+    },
 
   END_VIEW_LIST,
 };

+ 6 - 6
klish/kscheme/ischeme.c

@@ -11,18 +11,18 @@
 
 kscheme_t *kscheme_from_ischeme(kscheme_t *kscheme, ischeme_t *ischeme, faux_list_t *error_stack)
 {
-//	iview_t *iview = NULL;
-	kview_t *kview = NULL;
 
 	if (!kscheme)
 		return NULL;
 
 	if (ischeme->views) {
-		iview_t **piview = NULL;
-		for (piview = *ischeme->views; *piview; piview++) {
-			printf("view %p %s\n", *piview, (*piview)->name);
+		iview_t **p_iview = NULL;
+		for (p_iview = *ischeme->views; *p_iview; p_iview++) {
+			kview_t *kview = NULL;
+			iview_t *iview = *p_iview;
+			printf("view %p %s\n", iview, iview->name);
+			kview = kview;
 		}
-		kview = kview;
 	}
 
 	error_stack = error_stack;