]> git.sur5r.net Git - cc65/blob - libsrc/common/_environ.s
Clean wherey.s
[cc65] / libsrc / common / _environ.s
1 ;
2 ; Ullrich von Bassewitz, 2005-04-21
3 ;
4 ; extern char** _environ;
5 ;
6 ;
7 ; __environ is a pointer to the environment.
8 ; __envcount is the number of entries in the environment.
9 ; __envsize is the size of the allocated array.
10 ;
11 ; The maximum number of environment entries is 64. putenv() will set errno
12 ; to ENOMEM when trying to increase the number beyond this limit.
13 ;
14
15         .export         __environ, __envcount, __envsize
16         .import         initenv
17         .constructor    env_init
18
19         env_init := initenv
20
21 .data
22
23 __environ:
24         .addr   0
25 __envcount:
26         .byte   0
27 __envsize:
28         .byte   0