[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kopete-devel
Subject:    Re: [kopete-devel] [PATCH] Send Yahoo! Buddy Icon
From:       "Duncan Mac-Vicar P." <duncan () kde ! org>
Date:       2005-06-26 19:19:03
Message-ID: 200506261519.03672.duncan () kde ! org
[Download RAW message or body]

On Sunday 26 June 2005 10:44, Thiago Macieira wrote:
> Andre Duffeck wrote:
> >+       void _gotBuddyIconRequestReceiver( int id, char *who );
> >+       void _uploadBuddyIconProceed( int id, int fd, int error, void
> > *data );
> > +       void _buddyIconUploaded( int id, const char *url);
>
> You're not allowed to start identifier names with _. Those are reserved.

According to the C++ Standard, 17.4.3.1.2 Global Names [lib.global.names], 
paragraph 1:
    Certain sets of names and function signatures are always reserved to the 
implementation:
        * Each name that contains a double underscore (__) or begins with an 
underscore followed by an uppercase letter (2.11) is reserved to the 
implemenation for any use. [1]
        * Each name that begins with an underscore is reserved to the 
implementation for use as a name in the global namespace. [2]

Anyway, I doubt gcc will reserve a symbol called _buddyIconUploaded. I was 
aware only about [1].  For consistency it is ok (even that it is not 
consistent, I think I used the suffix Receiver too). But we could change it 
easily.

Duncan
_______________________________________________
kopete-devel mailing list
kopete-devel@kde.org
https://mail.kde.org/mailman/listinfo/kopete-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic