1 #if !defined(lint) && !defined(DOS)
2 static char rcsid
[] = "$Id: status.c 761 2007-10-23 22:35:18Z hubert@u.washington.edu $";
6 * ========================================================================
7 * Copyright 2013-2017 Eduardo Chappa
8 * Copyright 2006 University of Washington
10 * Licensed under the Apache License, Version 2.0 (the "License");
11 * you may not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
14 * http://www.apache.org/licenses/LICENSE-2.0
16 * ========================================================================
19 #include "../pith/headers.h"
20 #include "../pith/status.h"
21 #include "../pith/state.h"
24 /*----------------------------------------------------------------------
25 Put a message with 1 printf argument on queue for status line
27 Args: min_t -- minimum time to display message for
28 max_t -- minimum time to display message for
29 s -- printf style control string
30 a -- argument for printf
32 Result: message queued
37 q_status_message1(int flags
, int min_t
, int max_t
, char *s
, void *a
)
39 snprintf(tmp_20k_buf
, SIZEOF_20KBUF
, s
, a
);
40 q_status_message(flags
, min_t
, max_t
, tmp_20k_buf
);
45 /*----------------------------------------------------------------------
46 Put a message with 2 printf argument on queue for status line
48 Args: min_t -- minimum time to display message for
49 max_t -- maximum time to display message for
50 s -- printf style control string
51 a1 -- argument for printf
52 a2 -- argument for printf
54 Result: message queued
59 q_status_message2(int flags
, int min_t
, int max_t
, char *s
, void *a1
, void *a2
)
61 snprintf(tmp_20k_buf
, SIZEOF_20KBUF
, s
, a1
, a2
);
62 q_status_message(flags
, min_t
, max_t
, tmp_20k_buf
);
67 /*----------------------------------------------------------------------
68 Put a message with 3 printf argument on queue for status line
70 Args: min_t -- minimum time to display message for
71 max_t -- maximum time to display message for
72 s -- printf style control string
73 a1 -- argument for printf
74 a2 -- argument for printf
75 a3 -- argument for printf
77 Result: message queued
82 q_status_message3(int flags
, int min_t
, int max_t
, char *s
, void *a1
, void *a2
, void *a3
)
84 snprintf(tmp_20k_buf
, SIZEOF_20KBUF
, s
, a1
, a2
, a3
);
85 q_status_message(flags
, min_t
, max_t
, tmp_20k_buf
);
90 /*----------------------------------------------------------------------
91 Put a message with 4 printf argument on queue for status line
94 Args: min_t -- minimum time to display message for
95 max_t -- maximum time to display message for
96 s -- printf style control string
97 a1 -- argument for printf
98 a2 -- argument for printf
99 a3 -- argument for printf
100 a4 -- argument for printf
102 Result: message queued
103 ----------------------------------------------------------------------*/
106 q_status_message4(int flags
, int min_t
, int max_t
, char *s
, void *a1
, void *a2
, void *a3
, void *a4
)
108 snprintf(tmp_20k_buf
, SIZEOF_20KBUF
, s
, a1
, a2
, a3
, a4
);
109 q_status_message(flags
, min_t
, max_t
, tmp_20k_buf
);
115 q_status_message5(int flags
, int min_t
, int max_t
, char *s
, void *a1
, void *a2
, void *a3
, void *a4
, void *a5
)
117 snprintf(tmp_20k_buf
, SIZEOF_20KBUF
, s
, a1
, a2
, a3
, a4
, a5
);
118 q_status_message(flags
, min_t
, max_t
, tmp_20k_buf
);
124 q_status_message6(int flags
, int min_t
, int max_t
, char *s
, void *a1
, void *a2
, void *a3
, void *a4
, void *a5
, void *a6
)
126 snprintf(tmp_20k_buf
, SIZEOF_20KBUF
, s
, a1
, a2
, a3
, a4
, a5
, a6
);
127 q_status_message(flags
, min_t
, max_t
, tmp_20k_buf
);
131 /*----------------------------------------------------------------------
132 Put a message with 7 printf argument on queue for status line
135 Args: min_t -- minimum time to display message for
136 max_t -- maximum time to display message for
137 s -- printf style control string
138 a1 -- argument for printf
139 a2 -- argument for printf
140 a3 -- argument for printf
141 a4 -- argument for printf
142 a5 -- argument for printf
143 a6 -- argument for printf
144 a7 -- argument for printf
147 Result: message queued
148 ----------------------------------------------------------------------*/
151 q_status_message7(int flags
, int min_t
, int max_t
, char *s
, void *a1
, void *a2
, void *a3
, void *a4
, void *a5
, void *a6
, void *a7
)
153 snprintf(tmp_20k_buf
, SIZEOF_20KBUF
, s
, a1
, a2
, a3
, a4
, a5
, a6
, a7
);
154 q_status_message(flags
, min_t
, max_t
, tmp_20k_buf
);
160 q_status_message8(int flags
, int min_t
, int max_t
, char *s
, void *a1
, void *a2
, void *a3
, void *a4
, void *a5
, void *a6
, void *a7
, void *a8
)
162 snprintf(tmp_20k_buf
, SIZEOF_20KBUF
, s
, a1
, a2
, a3
, a4
, a5
, a6
, a7
, a8
);
163 q_status_message(flags
, min_t
, max_t
, tmp_20k_buf
);