File: builtin.ih

package info (click to toggle)
icmake 6.30-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,360 kB
  • ctags: 1,415
  • sloc: ansic: 7,727; makefile: 1,465; sh: 244; asm: 126; cpp: 39
file content (81 lines) | stat: -rw-r--r-- 1,878 bytes parent folder | download
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#include "builtin.h"

#include <unistd.h>
 
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
 
#include "../../rss/icrss.h"

#include "../global.h"

#include "../stack/stack.h"
#include "../list/list.h"
#include "../string/string.h"
#include "../virtual/virtual.h"
#include "../int/int.h"

extern int echo;

extern void (*builtinfun[])(void);

char *setstring(char *);


/*
    From fun_push_reg():
  
        This function is called when the return register is to be pushed. The
        return register is used to return information from built-in functions.
  
        {\bf Note that} the {\em count} field of the return register is {\bf
        not} incremented when the register is pushed. The associated memory is
        assigned by internal functions and may be freed by subsequent {\em
        pop}-instructions.
  
        Therefore, also the builtin functions do not have to free the reg's
        memory when assigning a value to reg.
*/

int getcmdlen(char **);

char *getarg(int, int *);
char **addcmd(char **, char *);
char **execmd(char **, int);
char *getexecarg(int, int *);

char *getLine(FILE *file);

void fun_empty(void);
void fun_arg_head(void);
void fun_arg_tail(void);
void fun_ascii_int(void);
void fun_ascii_str(void);
void fun_stat(void);
void fun_putenv(void);
void fun_chdir(void);
void fun_cmd_tail(void);
void fun_c_base(void);
void fun_c_ext(void);
void fun_c_path(void);
void fun_fields(void);
void fun_fgets(void);
void fun_fprintf(void);
void fun_g_base(void);
void fun_getch(void);
void fun_getpid (void);
void fun_gets(void);
void fun_g_ext(void);
void fun_g_path(void);
void fun_echo(void);
void fun_element(void);
void fun_exec(void);
void fun_exists(void);
void fun_makelist(void);
void fun_printf(void);
void fun_sizeoflist(void);
void fun_str_el(void);
void fun_system(void);
void fun_cmd_head(void);