Skip to content
Snippets Groups Projects
Commit a7ff4938 authored by Rene Brun's avatar Rene Brun
Browse files

Change C++ style comments to C style

git-svn-id: http://root.cern.ch/svn/root/trunk@8168 27541ba8-7e3a-0410-8455-c3a389f83636
parent d6376555
No related branches found
No related tags found
No related merge requests found
/* @(#)root/clib:$Name: $:$Id: Getline.c,v 1.22 2004/02/07 10:42:19 brun Exp $ */ /* @(#)root/clib:$Name: $:$Id: Getline.c,v 1.24 2004/02/09 09:34:42 brun Exp $ */
/* Author: */ /* Author: */
/* /*
...@@ -505,7 +505,6 @@ gl_char_cleanup() /* undo effects of gl_char_init */ ...@@ -505,7 +505,6 @@ gl_char_cleanup() /* undo effects of gl_char_init */
} }
#if defined(MSDOS) && !defined(WIN32) #if defined(MSDOS) && !defined(WIN32)
// +DECK, PAUSE, T=XCC, IF=WINNT. (from KERNDOS.CAR )
# include <conio.h> # include <conio.h>
int pause_() int pause_()
{ {
...@@ -517,7 +516,6 @@ gl_char_cleanup() /* undo effects of gl_char_init */ ...@@ -517,7 +516,6 @@ gl_char_cleanup() /* undo effects of gl_char_init */
#endif #endif
#if defined(MSDOS) && defined(WIN32) #if defined(MSDOS) && defined(WIN32)
//______________________________________________________________________________
int pause_() int pause_()
{ {
static HANDLE hConsoleInput = NULL; static HANDLE hConsoleInput = NULL;
...@@ -531,7 +529,7 @@ int pause_() ...@@ -531,7 +529,7 @@ int pause_()
if (!hConsoleInput) hConsoleInput = GetStdHandle(STD_INPUT_HANDLE); if (!hConsoleInput) hConsoleInput = GetStdHandle(STD_INPUT_HANDLE);
if (iCharCount) iCharCount--; // Whether several symbols had been read if (iCharCount) iCharCount--; /* Whether several symbols had been read */
else { else {
chLastChar = 0; chLastChar = 0;
while (chLastChar == 0) { while (chLastChar == 0) {
...@@ -1174,8 +1172,8 @@ gl_redraw() ...@@ -1174,8 +1172,8 @@ gl_redraw()
static void setCursorPosition(int x) static void setCursorPosition(int x)
{ {
// Set console cursor position. /* Set console cursor position.
// Restore console parameters in case of console corruption Restore console parameters in case of console corruption */
#ifdef WIN32 #ifdef WIN32
CONSOLE_SCREEN_BUFFER_INFO ci; CONSOLE_SCREEN_BUFFER_INFO ci;
...@@ -1324,7 +1322,7 @@ gl_fixup(const char *prompt, int change, int cursor) ...@@ -1324,7 +1322,7 @@ gl_fixup(const char *prompt, int change, int cursor)
} }
} }
gl_pos = cursor; gl_pos = cursor;
setCursorPosition(gl_pos + strlen(prompt) - gl_shift); // bb&vo setCursorPosition(gl_pos + strlen(prompt) - gl_shift);
} }
static int static int
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment