R
Robbie Brown
That depends upon what you mean by "head of main", and where you
#include the header file:
bar.h:
#ifndef H_BAR
#define H_BAR
int bar(int);
#endif
foo.h:
#ifndef H_FOO
#define H_FOO
void foo();
#endif
main.c:
// Is this what you mean by "head of main"?
Yes, my fault for not being clear.
I think I've probably got this now, interesting point about defining
functions after main(). I can see some sense in that now.
// create a file scope declaration for bar():
#include "bar.h"
int file_scope_declaration(double);
int main()
{
// Or is this what you mean by "head of main"?
// NB: I do NOT recommend block scope function declarations
double block_scope_declaration(int);
// Create block scope declaration for foo()
#include "foo.h"
// Do NOT do this with any standard header - the behavior is
// undefined (7.1.2p4).
Yea, I'd probably run screaming into the night if I came across this.
Never even considered it.
--
Rob - not floundering, fishing
========================================================
For every SCoP we generate the polyhedral representation
and transform it back to gimple.
========================================================
Seems perfectly reasonable to me.