comparison packages/infra/current/src/buffer.cxx @ 76:435cced73e2f ecos-v1_3_1-release

eCos v1.3.1 merged from eCos master repository on 2000-03-27-23:22:51-BST
author jlarmour
date Tue, 28 Mar 2000 14:10:45 +0000
parents 9c122302a886
children 59d97b6ba612
comparison
equal deleted inserted replaced
75:41bf073c0c32 76:435cced73e2f
174 174
175 #endif // CYGDBG_USE_TRACING 175 #endif // CYGDBG_USE_TRACING
176 176
177 // ------------------------------------------------------------------------- 177 // -------------------------------------------------------------------------
178 178
179 #if defined(CYGDBG_USE_TRACING) || defined(CYGDBG_USE_ASSERTS)
180
179 static const char *trim_file(const char *file) 181 static const char *trim_file(const char *file)
180 { 182 {
181 #if CYG_FILENAME 183 #if CYG_FILENAME
182 if ( NULL == file ) 184 if ( NULL == file )
183 file = "<nofile>"; 185 file = "<nofile>";
248 diag_write_char(']'); 250 diag_write_char(']');
249 diag_write_char(' '); 251 diag_write_char(' ');
250 #endif 252 #endif
251 } 253 }
252 254
253 // ------------------------------------------------------------------------- 255 #endif // defined(CYGDBG_USE_TRACING) || defined(CYGDBG_USE_ASSERTS)
256
257 // -------------------------------------------------------------------------
258
259 #if defined(CYGDBG_USE_TRACING) || defined(CYGDBG_USE_ASSERTS)
254 260
255 #if CYG_THREADID 261 #if CYG_THREADID
256 static cyg_uint32 get_tid(void) 262 static cyg_uint32 get_tid(void)
257 { 263 {
258 264
264 return tid; 270 return tid;
265 } 271 }
266 #else 272 #else
267 # define get_tid() (0xFFFF) 273 # define get_tid() (0xFFFF)
268 #endif 274 #endif
275
276 #endif // defined(CYGDBG_USE_TRACING) || defined(CYGDBG_USE_ASSERTS)
269 277
270 #ifdef CYGDBG_USE_ASSERTS 278 #ifdef CYGDBG_USE_ASSERTS
271 static void write_thread_id() 279 static void write_thread_id()
272 { 280 {
273 #if CYG_THREADID 281 #if CYG_THREADID