ANSI C (was RE: Access control to SAM / _samr_query_sec_obj)

Mike Sweet mike at easysw.com
Thu Jun 6 17:06:02 GMT 2002


Matt Seitz wrote:
> From: Tim Potter [mailto:tpot at samba.org]
> 
>>On Thu, Jun 06, 2002 at 09:01:45PM +1000, Andrew Bartlett wrote:
>>
>>
>>>Secondly, I have some further style nit-picks:
>>> - We can't use \\ as a comment in Samba, as many C compilers don't
>>>understand it.
>>
> 
>>It's actually not ANSI C!  
>>Another one I found recently was having a comma on the last element of 
>>an enum is not ANSI C. 
> 
> 
> Actually, both single line comments ("//") and trailing commas in
> enumeration declarations have been legal in ANSI C since 1999.

However, most ANSI C compilers do not implement C99...

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products                  mike at easysw.com
Printing Software for UNIX                       http://www.easysw.com





More information about the samba-technical mailing list