Browse Source

rename a function

phyto 6 months ago
parent
commit
970231b357
3 changed files with 10 additions and 10 deletions
  1. 1
    1
      viz/curses/ecran.c
  2. 2
    2
      viz/curses/ecran.h
  3. 7
    7
      viz/curses/t.c

+ 1
- 1
viz/curses/ecran.c View File

@@ -36,7 +36,7 @@ nodelay(stdscr, FALSE);
36 36
 return r;
37 37
 }
38 38
 /* ---------------------------------------------------------------- */
39
-int message(char *txt)
39
+int aff_message(char *txt)
40 40
 {
41 41
 static	int	pass = 0;
42 42
 

+ 2
- 2
viz/curses/ecran.h View File

@@ -2,10 +2,10 @@
2 2
  *	interface ncurses pour dd2 monitoring
3 3
  */
4 4
 
5
-int kbhit(void);
5
+int kbhit(void);			/* experimental */
6 6
 
7 7
 int fond_ecran(char *titre);
8
-int message(char *);
8
+int aff_message(char *);
9 9
 
10 10
 
11 11
 int aff7segs_base(WINDOW * win, int lig, int col, int bits, int k);

+ 7
- 7
viz/curses/t.c View File

@@ -20,7 +20,7 @@ char		chaine[100];
20 20
 for (loop=0; loop<nbl; loop++) {
21 21
 
22 22
 	sprintf(chaine, "== %06X ==", loop);
23
-	message(chaine);
23
+	aff_message(chaine);
24 24
 
25 25
 	sprintf(chaine, ".%08d.", rand()%1000000);
26 26
 
@@ -58,11 +58,11 @@ for (loop=0; loop<nbl; loop++) {
58 58
 	sval = (short)((loop % 1024)-512);
59 59
 
60 60
 	foo = aff7segs_short(stdscr, 5, 3, sval);
61
-	if (foo) message("KRKRK aff7 short");
61
+	if (foo) aff_message("KRKRK aff7 short");
62 62
 
63 63
 	fval = (float)sval / 1024.0;
64 64
 	foo = aff7segs_float(stdscr, 16, 3, fval);
65
-	if (foo) message("KRKRK aff7 float");
65
+	if (foo) aff_message("KRKRK aff7 float");
66 66
 
67 67
 	fval = fabs(fval);
68 68
 	foo = vumetre_0(stdscr, 29, 5, fval, COLS-10);
@@ -100,7 +100,7 @@ for (loop=0; loop<nbl; loop++) {
100 100
 		p_tms = localtime(&temps);
101 101
 		foo = strftime(ligne, 100, "%F %H:%M", p_tms);
102 102
 		// sprintf(ligne, "%12ld | %s", temps, ctime(&temps));
103
-		message(ligne);
103
+		aff_message(ligne);
104 104
 		}
105 105
 
106 106
 	refresh();
@@ -134,7 +134,7 @@ for (loop=0; loop<nbl; loop++) {
134 134
 	if (verbosity && (loop%2)) {
135 135
 		temps = time(NULL);
136 136
 		sprintf(ligne, "%12ld | %s", temps, ctime(&temps));
137
-		message(ligne);
137
+		aff_message(ligne);
138 138
 		}
139 139
 	
140 140
 	refresh();
@@ -159,7 +159,7 @@ water = open_waterfall("premier essai", 0);
159 159
 for (loop=0; loop<nbl; loop++) {
160 160
 
161 161
 	sprintf(line, " %06X  %04X ", loop, rand()&0xffff);
162
-	message(line);
162
+	aff_message(line);
163 163
 
164 164
 	wrefresh(stdscr);
165 165
 
@@ -178,7 +178,7 @@ for (loop=0; loop<nbl; loop++) {
178 178
 	foo = nanosleep(&ts, NULL);
179 179
 	if (foo) {
180 180
 		/* got a signal ? */
181
-		message("err on nanosleep");
181
+		aff_message("err on nanosleep");
182 182
 		}
183 183
 	}
184 184
 

Loading…
Cancel
Save