[v3] other 16bit inits
Benjamin Kosnik
bkoz@redhat.com
Sat Feb 3 00:34:00 GMT 2001
As per jeff's other patch.
2001-02-03 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/stl_threads.h (struct _STL_mutex_lock): Same.
* include/bits/localefwd.h: More initialization cleanups.
Index: include/bits/stl_threads.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/include/bits/stl_threads.h,v
retrieving revision 1.1
diff -c -p -r1.1 stl_threads.h
*** stl_threads.h 2000/10/05 11:27:01 1.1
--- stl_threads.h 2001/02/03 08:31:33
*************** struct _STL_mutex_lock
*** 246,252 ****
struct timespec __ts;
/* Max sleep is 2**27nsec ~ 60msec */
__ts.tv_sec = 0;
! __ts.tv_nsec = 1 << __log_nsec;
nanosleep(&__ts, 0);
# elif defined(__STL_WIN32THREADS)
if (__log_nsec <= 20) {
--- 246,252 ----
struct timespec __ts;
/* Max sleep is 2**27nsec ~ 60msec */
__ts.tv_sec = 0;
! __ts.tv_nsec = 1L << __log_nsec;
nanosleep(&__ts, 0);
# elif defined(__STL_WIN32THREADS)
if (__log_nsec <= 20) {
Index: include/bits/localefwd.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/include/bits/localefwd.h,v
retrieving revision 1.9
diff -c -p -r1.9 localefwd.h
*** localefwd.h 2001/01/30 09:18:50 1.9
--- localefwd.h 2001/02/03 08:31:57
*************** namespace std
*** 228,239 ****
// Category values:
// NB: Order must match _S_facet_categories definition in locale.cc
static const category none = 0;
! static const category ctype = 1 << 0;
! static const category numeric = 1 << 1;
! static const category collate = 1 << 2;
! static const category time = 1 << 3;
! static const category monetary = 1 << 4;
! static const category messages = 1 << 5;
static const category all = (collate | ctype | monetary |
numeric | time | messages);
--- 228,239 ----
// Category values:
// NB: Order must match _S_facet_categories definition in locale.cc
static const category none = 0;
! static const category ctype = 1L << 0;
! static const category numeric = 1L << 1;
! static const category collate = 1L << 2;
! static const category time = 1L << 3;
! static const category monetary = 1L << 4;
! static const category messages = 1L << 5;
static const category all = (collate | ctype | monetary |
numeric | time | messages);
More information about the Gcc-patches
mailing list