Browse Source

The simple aliases is working. TODO: Set internal variables to appropriate values

git-svn-id: https://klish.googlecode.com/svn/trunk@319 0eaa4687-2ee9-07dd-09d9-bcdd2d2dd5fb
Serj Kalichev 13 years ago
parent
commit
de1dfc3e40
2 changed files with 1 additions and 20 deletions
  1. 0 4
      clish/command/command.c
  2. 1 16
      clish/nspace/nspace.c

+ 0 - 4
clish/command/command.c

@@ -189,8 +189,6 @@ clish_command_t * clish_command_alias_to_link(clish_command_t * this)
 	ref = clish_view_find_command(this->alias_view, this->alias, BOOL_FALSE);
 	if (!ref)
 		return this;
-printf("!!!!!!!! alias=%s\n", this->name);
-clish_command_dump(this);
 	memcpy(&tmp, this, sizeof(tmp));
 	*this = *ref;
 	memcpy(&this->bt_node, &tmp.bt_node, sizeof(tmp.bt_node));
@@ -199,8 +197,6 @@ clish_command_dump(this);
 	this->link = ref;
 	clish_command_fini(&tmp);
 
-printf("!!!!!!!! link=%s\n", this->name);
-clish_command_dump(this);
 	return this;
 }
 

+ 1 - 16
clish/nspace/nspace.c

@@ -91,15 +91,9 @@ static clish_command_t *clish_nspace_find_create_command(clish_nspace_t * this,
 				strlen(clish_command__get_name(ref)));
 		help = clish_command__get_text(ref);
 	}
-printf("!!!!!! name=%s\n", name);
+
 	/* The command is cached already */
 	if ((cmd = lub_bintree_find(&this->tree, name))) {
-
-printf("!!!!!!!!! Already\n");
-if (cmd) {
-	printf("Pre cmd:\n");
-	clish_command_dump(cmd);
-}
 		free(name);
 		return cmd;
 	}
@@ -204,16 +198,7 @@ clish_command_t *clish_nspace_find_command(clish_nspace_t * this, const char *na
 		}
 	}
 
-printf("real_prefix=%s cmd=%s\n", real_prefix, cmd ? clish_command__get_name(cmd): NULL);
 	retval = clish_nspace_find_create_command(this, real_prefix, cmd);
-//if (retval) {
-//	printf("Retval\n");
-//	clish_command_dump(retval);
-//if (cmd) {
-//	printf("Post cmd:\n");
-//	clish_command_dump(cmd);
-//}
-//}
 	lub_string_free(real_prefix);
 
 	return retval;