+2002-05-22 Richard Henderson <rth@redhat.com>
+
+ * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
+ * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
+
2002-05-22 Jakub Jelinek <jakub@redhat.com>
PR c/6643
* content selection pattern - do fix if pattern found
*/
tSCC zThread_KeywordSelect0[] =
- " __thread,";
+ " __thread([,)])";
#define THREAD_KEYWORD_TEST_CT 1
static tTestDesc aThread_KeywordTests[] = {
*/
static const char* apzThread_KeywordPatch[] = {
"format",
- " __thr,",
+ " __thr%1",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
hackname = thread_keyword;
files = "pthread.h";
files = "bits/sigthread.h";
- select = " __thread,";
+ select = " __thread([,)])";
c_fix = format;
- c_fix_arg = " __thr,";
+ c_fix_arg = " __thr%1";
test_text =
"extern int pthread_create (pthread_t *__restrict __thread,\n"
- "extern int pthread_kill (pthread_t __thread, int __signo);";
+ "extern int pthread_kill (pthread_t __thread, int __signo);\n"
+ "extern int pthread_cancel (pthread_t __thread);";
};
/*
#if defined( THREAD_KEYWORD_CHECK )
extern int pthread_create (pthread_t *__restrict __thr,
extern int pthread_kill (pthread_t __thr, int __signo);
+extern int pthread_cancel (pthread_t __thr);
#endif /* THREAD_KEYWORD_CHECK */