The IDE takes care of that. If you want to specifiy a function prototype, your code would look something like
void setup() {
// put your setup code here, to run once:
}
int light;
int LED;
int analogWrite(byte pin, byte value);
void loop() {
// put your main code here, to run repeatedly:
light = sin(PI * 2 * millis() / 1000.0) * 127 + 127;
analogWrite(LED, light);
}
As said, the IDE takes care of that (although it can make mistakes).