filippo wrote:
> ok John and Xho, you convinced me 
>
> In fact I have just a couple of global variables so I can easily
> redesign my subroutines to manage these as arguments.
>
> Which is the best method to have a C-like splitting method?
What on earth is a "C-like splitting method"?
In C (and in Perl, and in Modula2, and in any other language that allows
to spread source code over more than a single source file), you split by
grouping things that belong together.
When using #include, you put only definitions (types, structures,
function prototypes, constants) into the files that are included.
Otherwise you put code that belongs together into a C source file and
compile each source file independently into object files which are then
linked together into an executable. The .h-files included provide some
glue between these source files.
--
Josef Möllers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize
-- T. Pratchett