Experimental Physics and Industrial Control System
|
Subject: |
Using C++ keywords as variable names in C code |
From: |
Ralph Lange <[email protected]> |
To: |
EPICS Core Talk <[email protected]> |
Date: |
Wed, 16 Jun 2010 10:39:42 -0400 |
Hello everybody,
I found that db_access.c is using the C++ keyword "new" as a variable
name. While this is of course valid code, it confuses IDEs, syntax
highlighting editors and such, so I would probably consider it bad practice.
Has anybody considered fixing this issue? Else I would create a branch
for it and get it done. While I'm at it - any other C++ keywords I
should rename? Should I enforce straight C comments instead of C++ style
"//" comments, too? Or are all compilers accepting these nowadays?
Cheers,
Ralph
- Replies:
- RE: Using C++ keywords as variable names in C code Jeff Hill
- Navigate by Date:
- Prev:
Re: [Merge] lp:~michael-abbott/epics-base/dynamic-array into lp:epics-base Michael Abbott
- Next:
RE: Using C++ keywords as variable names in C code Jeff Hill
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
<2010>
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: [Merge] lp:~michael-abbott/epics-base/dynamic-array into lp:epics-base Michael Abbott
- Next:
RE: Using C++ keywords as variable names in C code Jeff Hill
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
<2010>
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|
ANJ, 02 Feb 2012 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|