~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to examples/intersci-examples-so/ex07.sce

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Example ex07
 
2
//[1] call intersci with Makefile 
 
3
//
 
4
V=G_make('ex07fi.c','ex07fi.c');
 
5
//[2] run the builder generated by intersci.
 
6
//    Since files and libs were nor transmited 
 
7
//    to intersci we give them here 
 
8
files = ['ex07fi.o';'ex07c.o'];
 
9
libs  = [] ;
 
10
exec ex07fi_builder.sce 
 
11
 
 
12
//[3] run the loader to load the interface 
 
13
//    Note that the file loader.sce 
 
14
//    is changed each time you run a demo 
 
15
//    if several .desc are present in a directory
 
16
exec loader.sce 
 
17
 
 
18
 
 
19
//[4] test the loaded function 
 
20
 
 
21
if calc('one')<>1 then pause,end
 
22
if calc('two')<>2 then pause,end
 
23
if calc('other')<>-1 then pause,end
 
24