lkml.org 
[lkml]   [1997]   [Sep]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
Subjectlocal prototype declarations
Hi,

I know that all of you are working hard, and it might seem
inapropriate to bring up this issue, but anyway:

I think that declaring function prototypes in a local scope is a bad
thing for anything else but ugly short-term hacks. There is no check
that the prototype will match the functions signature on the long
term. The proper ways is to include the corresponding header file.

Why I'm telling you? I thought I've seen a local prototype in
keyboard.c for allow_interrupts() or something like that in the patch
2.0.31-pre9...

Ulrich
P.S: Are there any objections to move some of the timekeeping stuff
from sched.c into time.c? IMHO sched.c is already long enough...
P.P.S: I'm not subscribed here


\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.111 / U:0.708 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site