0

trying to produce a class that holds minimal code for my debug helpers in c/c++ in my search for sources in c for getting OS Version, i have discoverd a link where code calls/defines an unknown return value !

STATUS
GVver( flags, vout )
i4 flags;
ING_VERSION* vout;

bool
GVosvers( OSVersionString )
char *OSVersionString;


int
GVvista()

is that a c Code ? i have tried to understand and follow internal links, **within the LINK> wiki **

what is this STATUS keyword?

David Hammen
  • 32,454
  • 9
  • 60
  • 108
Raj Felix
  • 685
  • 5
  • 16
  • It could be a typedef to something. Did you check the documentation? – NathanOliver Oct 23 '15 at 12:24
  • 2
    This looks very similar to the old-style (K&R) C "function declarations": function arguments are only named, the types are added on separate statements. – Wolf Oct 23 '15 at 12:28
  • @NathanOliver http://community.actian.com/wiki/Ingres_CL_GV – Raj Felix Oct 23 '15 at 12:29
  • this is the source = > https://www.google.co.il/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CB0QFjAAahUKEwidx8LEzNjIAhXF6xQKHZZHDw0&url=http%3A%2F%2Fwww.jonahharris.com%2Fosdb%2Fingres%2Fgpl%2Ftemp%2Fsrc%2Fcl%2Fclf%2Fgv%2Fgvosvers.c&usg=AFQjCNFCmerfZNHooq2UI5RF8GcIqS9cKQ&bvm=bv.105841590,d.d24&cad=rja – Raj Felix Oct 23 '15 at 12:33

1 Answers1

1

As Nathan mentions, STATUS most probably a typedef (as i4, ING_VERSION are, and probably also bool at this time). The syntax uses the old style for C function declarations -- known as K&R style -- that was already discussed on SO:

This means, you can read the above as the following in modern C/C++ syntax:

STATUS GVver(i4 flags, ING_VERSION* vout);
bool GVosvers(char *OSVersionString);
int GVvista();
Community
  • 1
  • 1
Wolf
  • 9,679
  • 7
  • 62
  • 108