~james-page/ubuntu/saucy/openvswitch/1.12-snapshot

« back to all changes in this revision

Viewing changes to CodingStyle

  • Committer: James Page
  • Date: 2013-08-21 10:16:57 UTC
  • mfrom: (1.1.20)
  • Revision ID: james.page@canonical.com-20130821101657-3o0z0qeiv5zkwlzi
New upstream snapshot

Show diffs side-by-side

added added

removed removed

Lines of Context:
249
249
common case, so this can be a real form of optimization as well.)
250
250
 
251
251
 
 
252
RETURN VALUES
 
253
 
 
254
  For functions that return a success or failure indication, prefer
 
255
one of the following return value conventions:
 
256
 
 
257
    * An "int" where 0 indicates success and a positive errno value
 
258
      indicates a reason for failure.
 
259
 
 
260
    * A "bool" where true indicates success and false indicates
 
261
      failure.
 
262
 
 
263
 
252
264
MACROS
253
265
 
254
266
  Don't define an object-like macro if an enum can be used instead.