author | William Roberts <williamr@symbian.org> |
Tue, 06 Apr 2010 21:24:03 +0100 | |
changeset 4 | c0296ad2454d |
parent 0 | fe474e3b08fb |
permissions | -rw-r--r-- |
0
fe474e3b08fb
Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
1 |
// Copyright (c) 2010 Symbian Foundation Ltd. |
fe474e3b08fb
Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
2 |
// All rights reserved. |
fe474e3b08fb
Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
3 |
// This component and the accompanying materials are made available |
fe474e3b08fb
Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
4 |
// under the terms of the License "Eclipse Public License v1.0" |
fe474e3b08fb
Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
5 |
// which accompanies this distribution, and is available |
fe474e3b08fb
Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
fe474e3b08fb
Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
7 |
// |
fe474e3b08fb
Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
8 |
// Initial Contributors: |
fe474e3b08fb
Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
9 |
// Symbian Foundation - Initial contribution |
fe474e3b08fb
Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
10 |
// |
fe474e3b08fb
Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
11 |
// Description: |
fe474e3b08fb
Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
12 |
// Entrypoint for Symbian .exe, keeps the compiler & linker happy |
fe474e3b08fb
Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
13 |
|
fe474e3b08fb
Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
14 |
#include <e32std.h> |
fe474e3b08fb
Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
15 |
|
fe474e3b08fb
Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
16 |
// helper function for other files which need to confuse the optimiser |
fe474e3b08fb
Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
17 |
int unknown(void) { return 42; } |
fe474e3b08fb
Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
18 |
|
fe474e3b08fb
Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
19 |
extern int source1(void); // from source1.cpp |
fe474e3b08fb
Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
20 |
|
fe474e3b08fb
Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
21 |
GLDEF_C TInt E32Main() |
fe474e3b08fb
Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
22 |
{ |
fe474e3b08fb
Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
23 |
// Call trivial functions in other source files, to stop them being optimised away |
fe474e3b08fb
Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
24 |
return source1(); |
fe474e3b08fb
Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
25 |
} |
fe474e3b08fb
Created the examples directory, containing components called "before" and "after"
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
26 |