rename a function
This commit is contained in:
parent
9ef568a677
commit
970231b357
@ -36,7 +36,7 @@ nodelay(stdscr, FALSE);
|
||||
return r;
|
||||
}
|
||||
/* ---------------------------------------------------------------- */
|
||||
int message(char *txt)
|
||||
int aff_message(char *txt)
|
||||
{
|
||||
static int pass = 0;
|
||||
|
||||
|
@ -2,10 +2,10 @@
|
||||
* interface ncurses pour dd2 monitoring
|
||||
*/
|
||||
|
||||
int kbhit(void);
|
||||
int kbhit(void); /* experimental */
|
||||
|
||||
int fond_ecran(char *titre);
|
||||
int message(char *);
|
||||
int aff_message(char *);
|
||||
|
||||
|
||||
int aff7segs_base(WINDOW * win, int lig, int col, int bits, int k);
|
||||
|
@ -20,7 +20,7 @@ char chaine[100];
|
||||
for (loop=0; loop<nbl; loop++) {
|
||||
|
||||
sprintf(chaine, "== %06X ==", loop);
|
||||
message(chaine);
|
||||
aff_message(chaine);
|
||||
|
||||
sprintf(chaine, ".%08d.", rand()%1000000);
|
||||
|
||||
@ -58,11 +58,11 @@ for (loop=0; loop<nbl; loop++) {
|
||||
sval = (short)((loop % 1024)-512);
|
||||
|
||||
foo = aff7segs_short(stdscr, 5, 3, sval);
|
||||
if (foo) message("KRKRK aff7 short");
|
||||
if (foo) aff_message("KRKRK aff7 short");
|
||||
|
||||
fval = (float)sval / 1024.0;
|
||||
foo = aff7segs_float(stdscr, 16, 3, fval);
|
||||
if (foo) message("KRKRK aff7 float");
|
||||
if (foo) aff_message("KRKRK aff7 float");
|
||||
|
||||
fval = fabs(fval);
|
||||
foo = vumetre_0(stdscr, 29, 5, fval, COLS-10);
|
||||
@ -100,7 +100,7 @@ for (loop=0; loop<nbl; loop++) {
|
||||
p_tms = localtime(&temps);
|
||||
foo = strftime(ligne, 100, "%F %H:%M", p_tms);
|
||||
// sprintf(ligne, "%12ld | %s", temps, ctime(&temps));
|
||||
message(ligne);
|
||||
aff_message(ligne);
|
||||
}
|
||||
|
||||
refresh();
|
||||
@ -134,7 +134,7 @@ for (loop=0; loop<nbl; loop++) {
|
||||
if (verbosity && (loop%2)) {
|
||||
temps = time(NULL);
|
||||
sprintf(ligne, "%12ld | %s", temps, ctime(&temps));
|
||||
message(ligne);
|
||||
aff_message(ligne);
|
||||
}
|
||||
|
||||
refresh();
|
||||
@ -159,7 +159,7 @@ water = open_waterfall("premier essai", 0);
|
||||
for (loop=0; loop<nbl; loop++) {
|
||||
|
||||
sprintf(line, " %06X %04X ", loop, rand()&0xffff);
|
||||
message(line);
|
||||
aff_message(line);
|
||||
|
||||
wrefresh(stdscr);
|
||||
|
||||
@ -178,7 +178,7 @@ for (loop=0; loop<nbl; loop++) {
|
||||
foo = nanosleep(&ts, NULL);
|
||||
if (foo) {
|
||||
/* got a signal ? */
|
||||
message("err on nanosleep");
|
||||
aff_message("err on nanosleep");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user