|
|
extraneous old-style parameter list
ISC_QUAD * encode_date (yy, mm, dd);
int * yy;
int * mm;
int * dd;
{
struct tm t;
t.tm_year = yy;
t.tm_mon = mm;
t.tm_day = dd;
t.tm_sec = 0;
t.tm_min = 0;
t.tm_hour = 0;
t.tm_isdst = 0;
return gen_ib_date(&t);
};
Wedit output window build: Fri Jun 12 22:15:13 2009
Error e:\c\freeudflibc\date_functions.c: 83 extraneous old-style
parameter list
Error e:\c\freeudflibc\date_functions.c: 88 unrecognized declaration
What is happening here?
|
|
0
|
|
|
|
Reply
|
rgilland1966 (2)
|
6/12/2009 12:25:52 PM |
|
Robert Gilland wrote:
> ISC_QUAD * encode_date (yy, mm, dd);
>
> int * yy;
> int * mm;
> int * dd;
> {
>
> struct tm t;
>
> t.tm_year = yy;
> t.tm_mon = mm;
> t.tm_day = dd;
> t.tm_sec = 0;
> t.tm_min = 0;
> t.tm_hour = 0;
> t.tm_isdst = 0;
>
> return gen_ib_date(&t);
>
> };
>
>
> Wedit output window build: Fri Jun 12 22:15:13 2009
> Error e:\c\freeudflibc\date_functions.c: 83 extraneous old-style
> parameter list
> Error e:\c\freeudflibc\date_functions.c: 88 unrecognized declaration
>
>
> What is happening here?
>
>
>
> ISC_QUAD * encode_date (yy, mm, dd);
^^^
erase that extraneous ";" after the function definition
|
|
0
|
|
|
|
Reply
|
jacob
|
6/12/2009 12:58:37 PM
|
|
jacob navia <jacob@jacob.remcomp.fr> writes:
> Robert Gilland wrote:
>> ISC_QUAD * encode_date (yy, mm, dd);
>>
>> int * yy;
>> int * mm;
>> int * dd;
>> {
[...]
>> };
>>
>>
>> Wedit output window build: Fri Jun 12 22:15:13 2009
>> Error e:\c\freeudflibc\date_functions.c: 83 extraneous old-style
>> parameter list
>> Error e:\c\freeudflibc\date_functions.c: 88 unrecognized declaration
[...]
>
>> ISC_QUAD * encode_date (yy, mm, dd);
> ^^^
> erase that extraneous ";" after the function definition
Better yet, use prototypes rather than old-style function definitions:
ISC_QUAD *encode_date(int *yy, int *mm, int *dd)
{
/* ... */
}
--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
|
|
0
|
|
|
|
Reply
|
Keith
|
6/14/2009 7:16:44 AM
|
|
|
2 Replies
402 Views
(page loaded in 0.439 seconds)
Similiar Articles: "a parameter is out of range" - comp.graphics.apps.paint-shop-pro ...extraneous old-style parameter list - comp.compilers.lcc ... Depreciated and troublesome old-style JPEG - comp.graphics.apps ... >> parameter is ... naming convention for class attributes (member data)? - comp.lang ...extraneous old-style parameter list - comp.compilers.lcc ... naming convention for class attributes (member data)? - comp.lang ... When did this style become the "fashion ... syntax error "missing ; before statement" - comp.lang.javascript ...... bu' id='search_bu' onChange='fillZoneNm();' style ... It seems that you have an extraneous closing parentheses ... comp.soft-sys.matlab... not in formal parameter list square ... Finding ERRORs in SASLOG - comp.soft-sys.sas... be" "cannot open" "cartesian" "central parameter ... common" "default estimation" "default style will be ... cancelled" > > "expression has no" > > "extraneous ... Use of MATLAB fftshift - comp.dspWhat if the dimension to be indexed is itself is a parameter so that the unbiasing ... account the new indexing scheme for any parameter that is not provably an old-style ... Pointer to function Typedefs - comp.lang.c++.moderatedPassing va_list by reference to a function - comp.lang ... Also, what is the reason to typedef ... the ap parameter is ... Template Defining Typedef For Member Function ... old ... [memoir, fourier, microtype] horizontal/vertical shifts when ...What I'd like to do is change/set some parameters somewhere to values that give me the old behavior, but I ... standard.bbx 2010/03/19 v0.9a biblatex bibliography style ... Java Collections List : Converting from List 'I have a function that returns a list like this ... and often unintended) results, because even the parameters ... change every bit of the program that relies on the old ... Helical curve swept on a helical curve - comp.cad.pro-engineer ...... sketcher relation = that makes use of the trajpar parameter ... content=3D"MSHTML 8.00.6001.18828"> <STYLE></STYLE ... elegant ways to write this equation but as my old ... Looking for updated info on tclsoap and in particular SOAP::WSDL ...... net site of released files for tclsoap are pretty old ... prefixing the "xs:" in the elements, which are parameters ... But, how to specify the encoding style/use "rpc/encoded ... Obsolete Forms of Function Declarations and DefinitionsThe old-style function declarations and definitions use slightly different rules for declaring parameters than the syntax recommended by the ANSI C standard. First ... Node,list,stack,queue.... how to implement and run? - Dev ShedC:\Documents and Settings\smart\My Documents\Pelles C Projects\tprogram\tprogram.c(9): error #2161: Extraneous old-style parameter list. C:\Documents and Settings\smart ... 7/20/2012 8:21:30 PM
|
|
|
|
|
|
|
|
|