~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to man/fr/programming/funptr.xml

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
 
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
 
3
<MAN>
 
4
  <LANGUAGE>eng</LANGUAGE>
 
5
  <TITLE>funptr</TITLE>
 
6
  <TYPE>Scilab Function</TYPE>
 
7
  <DATE>April 1993</DATE>
 
8
  <SHORT_DESCRIPTION name="funptr"> coding of  primitives ( wizard stuff )  </SHORT_DESCRIPTION>
 
9
  <CALLING_SEQUENCE>
 
10
    <CALLING_SEQUENCE_ITEM> [numptr] = funptr(name)  </CALLING_SEQUENCE_ITEM>
 
11
  </CALLING_SEQUENCE>
 
12
  <PARAM>
 
13
    <PARAM_INDENT>
 
14
      <PARAM_ITEM>
 
15
        <PARAM_NAME>name</PARAM_NAME>
 
16
        <PARAM_DESCRIPTION>
 
17
          <SP>: a string, the name of a primitive</SP>
 
18
        </PARAM_DESCRIPTION>
 
19
      </PARAM_ITEM>
 
20
      <PARAM_ITEM>
 
21
        <PARAM_NAME>numptr</PARAM_NAME>
 
22
        <PARAM_DESCRIPTION>
 
23
          <SP>: the internal routine number of the primitive</SP>
 
24
        </PARAM_DESCRIPTION>
 
25
      </PARAM_ITEM>
 
26
    </PARAM_INDENT>
 
27
  </PARAM>
 
28
  <DESCRIPTION>
 
29
    <P>
 
30
    Utility function (for experts only) to get the internal routine number <VERB>numptr</VERB>
 
31
    of the primitive <VERB>'name'</VERB>. <VERB>numptr</VERB> is formed from the interface
 
32
    number <VERB>fun</VERB> and the routine number <VERB>fin</VERB> of the primitive in its interface
 
33
    by <VERB>numptr = 100*fun + fin</VERB> (fin &lt; 100). From  <VERB>numptr</VERB> you can get 
 
34
    the interface number <VERB>fun = floor(numptr/100)</VERB> which may be useful to link a 
 
35
    dynamical interface with arguments passed by reference (see example section).</P>
 
36
  </DESCRIPTION>
 
37
  <EXAMPLE>
 
38
<![CDATA[
 
39
// Suppose you want to load some codes via the dynamic 
 
40
// loading facilities offers by addinter. By default 
 
41
// arguments are passed by values but if you want to 
 
42
// pass them by reference you can do the following 
 
43
// (name being the scilab name of one of the interfaced 
 
44
// routines) :
 
45
//
 
46
// addinter(files,spnames,fcts)  // args passed by values
 
47
// num_interface = floor(funptr(name)/100)
 
48
// intppty(num_interface)  // args now passed by reference
 
49
//
 
50
// Note that if you enter the following
 
51
//
 
52
// intppty()                
 
53
//
 
54
// you will see all the interfaces working by reference
 
55
 ]]>
 
56
  </EXAMPLE>
 
57
  <SEE_ALSO>
 
58
    <SEE_ALSO_ITEM>
 
59
      <LINK>clearfun</LINK>
 
60
    </SEE_ALSO_ITEM>
 
61
    <SEE_ALSO_ITEM>
 
62
      <LINK>newfun</LINK>
 
63
    </SEE_ALSO_ITEM>
 
64
    <SEE_ALSO_ITEM>
 
65
      <LINK>intppty</LINK>
 
66
    </SEE_ALSO_ITEM>
 
67
    <SEE_ALSO_ITEM>
 
68
      <LINK>addinter</LINK>
 
69
    </SEE_ALSO_ITEM>
 
70
  </SEE_ALSO>
 
71
</MAN>