~ubuntu-branches/ubuntu/wily/gargoyle-free/wily-proposed

« back to all changes in this revision

Viewing changes to tads/tads3/test/data/extfunc2.t

  • Committer: Bazaar Package Importer
  • Author(s): Sylvain Beucler
  • Date: 2009-09-11 20:09:43 UTC
  • Revision ID: james.westby@ubuntu.com-20090911200943-idgzoyupq6650zpn
Tags: upstream-2009-08-25
ImportĀ upstreamĀ versionĀ 2009-08-25

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *   test of 'extern function' declarations 
 
3
 */
 
4
 
 
5
#include "tads.h"
 
6
 
 
7
extern function test1(a, b, c);
 
8
extern function test2(d, e);
 
9
 
 
10
function test1(a, b, c)
 
11
{
 
12
    tadsSay('++ this is test1(' + a + ', ' + b + ', ' + c + ')\n');
 
13
    tadsSay('++ calling test2(888,999)...\n');
 
14
    test2(888, 999);
 
15
 
 
16
    tadsSay('++ back in test1 - returning\n');
 
17
}