X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmetadata%2Fconsole-unix.c;h=fe71923dbbadbdb97378b047a0f822f80a977749;hb=HEAD;hp=7d60b770fe57a3999f7c0ba60b19ed292b2c157a;hpb=56edb3357c0af9eae94a01dd72c7623bd6322dd8;p=mono.git diff --git a/mono/metadata/console-unix.c b/mono/metadata/console-unix.c index 7d60b770fe5..fe71923dbba 100644 --- a/mono/metadata/console-unix.c +++ b/mono/metadata/console-unix.c @@ -1,5 +1,6 @@ -/* - * console-io.c: ConsoleDriver internal calls for Unix systems. +/** + * \file + * ConsoleDriver internal calls for Unix systems. * * Author: * Gonzalo Paniagua Javier (gonzalo@ximian.com) @@ -7,10 +8,6 @@ * Copyright (C) 2005-2009 Novell, Inc. (http://www.novell.com) * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ -#if defined(__native_client__) -#include "console-null.c" -#else - #include #include #include @@ -456,12 +453,16 @@ ves_icall_System_ConsoleDriver_TtySetup (MonoString *keypad, MonoString *teardow if (dims == -1){ int cols = 0, rows = 0; - const char *str = g_getenv ("COLUMNS"); - if (str != NULL) + char *str = g_getenv ("COLUMNS"); + if (str != NULL) { cols = atoi (str); + g_free (str); + } str = g_getenv ("LINES"); - if (str != NULL) + if (str != NULL) { rows = atoi (str); + g_free (str); + } if (cols != 0 && rows != 0) cols_and_lines = (cols << 16) | rows; @@ -520,5 +521,3 @@ ves_icall_System_ConsoleDriver_TtySetup (MonoString *keypad, MonoString *teardow return TRUE; } -#endif /* #if defined(__native_client__) */ -