[haiku-gsoc] Re: Full Text Search and Indexing -- Looking for opinions/comments

  • From: Rene Gollent <anevilyak@xxxxxxxxx>
  • To: haiku-gsoc@xxxxxxxxxxxxx
  • Date: Tue, 2 Jun 2009 09:16:13 -0500

On Tue, Jun 2, 2009 at 9:10 AM, Ankur Sethi <get.me.ankur@xxxxxxxxx> wrote:
> | pthread_t th=pthread_self(); pthread_attr_t attr;pthread_join(th, 0);
> |                                       pthread_attr_init(&attr);
> |                                       pthread_mutex_t mtx; 
> pthread_mutex_init(&mtx,0);
> |                                       pthread_mutex_lock(&mtx); 
> pthread_mutex_unlock(&mtx);
> |                  pthread_mutex_destroy(&mtx)


Looks like it's failing because it expects C99, which allows variable
declarations in places other than the beginning of the function iirc.
You'll notice the test here makes several function calls before
declaring the mutex, which older C doesn't allow. Was this done on
gcc2 or 4?

Regards,

Rene

Other related posts: