File: callr.c

package info (click to toggle)
icmake 7.18.00-2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 2,840 kB
  • sloc: ansic: 7,784; makefile: 3,811; sh: 319; cpp: 83
file content (33 lines) | stat: -rw-r--r-- 972 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
\funcref{fun\_call\_rss}{void fun\_call\_rss ()}
    {}
    {}
    {error(), getopcode()}
    {}
    {funcallr.c}
    {

        This function is executed when an {\em op\_call\_rss} opcode is
        encountered in the binary makefile. Following this opcode a function
        index is expected (an {\em char} value), indicating the function number
        to call (see the enumeration type {\em FUNNR\_} in the file {\em
        icrss.h}).

        If the index indicates a non-existing function, i.e., when the index
        exceeds or equals {\em f\_hlt}, an error occurs. Else, the indicated
        built in function is called (see the {\em builtinfun} array of function
        pointers, files {\em opcodefun.ih} and {\em data.c}).
    }
*/

#include "opcodefun.ih"

void fun_call_rss ()
{
    size_t funnr = (size_t)getopcode (infile);

    if (funnr >= f_hlt)
        error ("unexisting rss function call at %s", hexstring(curoffs, 4));

    builtin(funnr);
}