From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
---|---|
To: | mohsen soodkhah mohammadi <mohsensoodkhah(at)gmail(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: name.c |
Date: | 2013-12-01 14:58:45 |
Message-ID: | 529B4EA5.3070600@dunslane.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 12/01/2013 02:59 AM, mohsen soodkhah mohammadi wrote:
> in name.c file in source code of postgresql
> I find some fuctions that I don't know where did use them?
> the functions are:
> int namecpy(Name n1, Name n2){..}
> int namecat(Name n1, Name n2){..}
> int namecmp(Name n1, Name n2){..}
> int namestrcpy(Name name, const char *str){..}
> int namestrcat(Name name, const char *str){..}
> also before some of these functions became the #ifdef NOT_USED
> when NOT_USED is set?and why it set?
> thanks.
>
>
It's never defined, of course, or else the name would be a lie. That
means this is essentially dead code which we haven't removed for some
reason.
If you want to find out where something is used, grep -r is one way to
look. ctags is another. Each developer has his/her own way of doing
tasks like this.
cheers
andrew
From | Date | Subject | |
---|---|---|---|
Next Message | Gurjeet Singh | 2013-12-01 17:07:21 | Re: Shave a few instructions from child-process startup sequence |
Previous Message | Dimitri Fontaine | 2013-12-01 14:58:02 | Re: Extension Templates S03E11 |