×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
I got a little problem with inlining a function in the following example code:
// Prototypes
int add_value(int x, int y);
int main(int argc, char **argv)
{
int returnValue = 0;
int x = 2;
int y = 0;
int z = add_value(x, y);
return returnValue;
}
static inline int add_value(int x, int y)
{
return x + y;
};
If i try to compile this I get:
/home/schmidt/main.c, 20.1: CZM0277(30) Syntax error: possible missing
';' or ','?
/home/schmidt/main.c, 19.8: CZM0485(30) Parameter declaration list is
incompatible with declarator for inline.
I have looked in the compiler reference, language reference and programmers guide but can't find out what is wrong. Any help is appreciated.
BTW adding INLINE(*ON) on the CRTCMOD command didn't help either.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.