I've been trying to use the Void of digitalWrite without really typing digitalWrite, so I looked inside the wiring_digital.c file and I saw how the digitalWrite is made.
Well, it could be a good way of teaching myself how the arduino language is made.
I dont have an intention of changing the pins_arduino.c because there are no commands there, only definition of each pin (right?)
Yes, pins_arduino.c contains information on the mapping of pins to physical ports and timers. This information is stored in program memory to minimse the RAM usage.
wiring_digital.c and wiring_analog.c contain the commands that use this information to do something with the pins.
studying those three files should help you see how arduino uses pins