00001 //& **************************************************************************** 00002 //& 00003 //& Written by Ingo Blank, August 2004 00004 //& 00005 //& Copyright (C) 2004 The HP-GCC Development Team 00006 //& 00007 //& **************************************************************************** 00008 //& 00009 //& 00010 //& This file is part of HP-GCC. 00011 //& 00012 //& HP-GCC is free software; you can redistribute it and/or modify 00013 //& it under the terms of the GNU General Public License as published by 00014 //& the Free Software Foundation; either version 2, or (at your option) 00015 //& any later version. 00016 //& 00017 //& HP-GCC is distributed in the hope that it will be useful, 00018 //& but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 //& MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 //& GNU General Public License for more details. 00021 //& 00022 //& You should have received a copy of the GNU General Public License 00023 //& along with HP-GCC; see the file COPYING. 00024 //& 00025 //& As a special exception, you may use this file as part of a free software 00026 //& library without restriction. Specifically, if other files instantiate 00027 //& templates or use macros or inline functions from this file, or you compile 00028 //& this file and link it with other files to produce an executable, this 00029 //& file does not by itself cause the resulting executable to be covered by 00030 //& the GNU General Public License. This exception does not however 00031 //& invalidate any other reasons why the executable file might be covered by 00032 //& the GNU General Public License. 00033 //& 00034 //& **************************************************************************** 00035 00036 00037 00042 #ifndef _HPCONIO_H 00043 #define _HPCONIO_H 00044 00045 //#include <stddef.h> 00046 #include <hpstdlib.h> 00047 00048 // LONG TYPE DEFINITION, ADDED BY CLAUDIO 01/14/05 00049 #ifndef _LONGLONG_DEF 00050 typedef unsigned long long ULONGLONG; 00051 typedef long long LONGLONG; 00052 #define _LONGLONG_DEF 00053 #endif 00054 00055 00174 // crt0 00175 00176 EXTERN int puts(const char *); 00177 EXTERN char *ints(int,int); 00178 EXTERN char *uints(unsigned,int); 00179 EXTERN int putchar(int); 00180 EXTERN void putint(int); 00181 EXTERN void putintb(int,int); 00182 EXTERN unsigned randx(); 00183 EXTERN int delta_seconds(int,int); 00184 EXTERN void beep(); 00185 00186 // console io 00187 00188 EXTERN void home(); 00189 EXTERN int getx(); 00190 EXTERN int gety(); 00191 EXTERN void clreol(); 00192 #define clear_screen _clear_screen 00193 EXTERN void _clear_screen(); 00194 EXTERN void gotoxy(int,int); 00195 EXTERN int screen_width(); 00196 EXTERN int screen_height(); 00197 EXTERN int get_tabsize(); 00198 EXTERN void set_tabsize(int); 00199 EXTERN int getchar(); 00200 #ifdef NO_ASSEMBLY_GETS 00201 EXTERN char *_gets(char *buf); 00202 #define gets _gets 00203 #else 00204 EXTERN char *gets(char *buf); 00205 #endif 00206 00207 int get_decimal_digits(); 00208 void set_decimal_digits(int v); 00209 char *get_decimal_separator(); 00210 void set_decimal_separator(char a); 00211 00212 00213 #endif 00214