Re: About parsing the following if else condition



On Oct 3, 6:09 pm, "parag_p...@xxxxxxxxxxx" <parag_p...@xxxxxxxxxxx>
wrote:
Run the code through indent

What is the meaning of that ?

indent is a common Unix application which does automatic
indentation of a C programme. I would imagine it also
exists for other platforms.

@Mark
Your second answer was my original intent. Thanks for that. It is
pretty much same for all compilers . Is it?

It would have been nice if you had actually quoted this
"second answer". I assume you mean the following piece of
code by Mark Bluemel:

if ((type == vhpiCompInstStmtK) || (type == vhpiRootInstK))
{
if (reason) {
*reason = "Object is a scope";
}
} else {
if (reason) {
*reason = "object is not writable";
}
}

And yes it is the same for every compiler which conforms
to the C standard.


.



Relevant Pages

  • Re: The meaning of #line
    ... It is still commonplace for compilers to provide an option whereby only translation phases 1-4 are performed; all of the compilers I use most frequently do this when given a -E command line option. ... However, you're also free to insert #line directives of your own, though I can't imagine any good reason for doing so. ...
    (comp.lang.c)
  • Re: Determine if a character string is palindromic
    ... Chris F.A. Johnson wrote: ... I can't imagine including such a function, ... This does not require that you indent your text. ... I like code set flush left so that no ...
    (comp.lang.c)
  • Re: Word Tab and indent positions bug
    ... they are stored as Integer values of twips. ... This is the reason Word's page size cannot be larger than about 22", ... if you set an indent position at 1.5cm this gives a left indent of 42.55 ... If you set an indent position at 3 cm it gives a left indent of 85.05 ...
    (microsoft.public.office.developer.automation)
  • Re: Coding causing detail section in report to not grow/shrink
    ... I should have clarified my indent issue. ... The reason I'm using 5 different ... offset the boxes to the desired position. ... you're using controls in the report. ...
    (microsoft.public.access.modulesdaovba)
  • Re: [PATCH 01/13] sysfs: Update sysfs_setxattr so it updates secdata under the sysfs_mutex
    ... No prob. ... (as an aside, I can't see any reason to not just return if strncmp(name, ... XATTR_SECURITY_PREFIX,) above to avoid a level of indent and needless gotos) ...
    (Linux-Kernel)

Loading