Add scouts honor escape hatch for source embedding

This commit is contained in:
Justine Tunney 2020-06-15 19:01:28 -07:00
parent c91b3c5006
commit b4269930f7
547 changed files with 1516 additions and 944 deletions

View file

@ -18,7 +18,7 @@
02110-1301 USA
*/
#include "libc/macros.h"
.yoink __FILE__
.source __FILE__
.initbss 800,_init_calloc
hook$calloc:

View file

@ -19,7 +19,7 @@
*/
#include "libc/macros.h"
#include "libc/notice.inc"
.yoink __FILE__
.source __FILE__
/ Allocates n * itemsize bytes, initialized to zero.
/

View file

@ -18,7 +18,7 @@
02110-1301 USA
*/
#include "libc/macros.h"
.yoink __FILE__
.source __FILE__
/ Frees memory the C++ way.
/

View file

@ -18,7 +18,7 @@
02110-1301 USA
*/
#include "libc/macros.h"
.yoink __FILE__
.source __FILE__
.initbss 800,_init_free
hook$free:

View file

@ -18,7 +18,7 @@
02110-1301 USA
*/
#include "libc/macros.h"
.yoink __FILE__
.source __FILE__
/ Free memory returned by malloc() & co.
/

View file

@ -18,7 +18,7 @@
02110-1301 USA
*/
#include "libc/macros.h"
.yoink __FILE__
.source __FILE__
/ Allocates memory the C++ way.
/

View file

@ -18,7 +18,7 @@
02110-1301 USA
*/
#include "libc/macros.h"
.yoink __FILE__
.source __FILE__
.initbss 800,_init_malloc
hook$malloc:

View file

@ -18,7 +18,7 @@
02110-1301 USA
*/
#include "libc/macros.h"
.yoink __FILE__
.source __FILE__
/ Allocates uninitialized memory.
/

View file

@ -19,7 +19,7 @@
*/
#include "libc/macros.h"
#include "libc/notice.inc"
.yoink __FILE__
.source __FILE__
/ Returns the number of bytes you can actually use in
/ an allocated chunk, which may be more than you requested

View file

@ -18,7 +18,7 @@
02110-1301 USA
*/
#include "libc/macros.h"
.yoink __FILE__
.source __FILE__
/ Allocates aligned memory the C++ way.
/

View file

@ -18,7 +18,7 @@
02110-1301 USA
*/
#include "libc/macros.h"
.yoink __FILE__
.source __FILE__
.initbss 800,_init_memalign
hook$memalign:

View file

@ -19,7 +19,7 @@
*/
#include "libc/macros.h"
#include "libc/notice.inc"
.yoink __FILE__
.source __FILE__
/ Allocates aligned memory.
/

View file

@ -18,7 +18,7 @@
02110-1301 USA
*/
#include "libc/macros.h"
.yoink __FILE__
.source __FILE__
/ Allocates aligned memory the POSIX way.
/

View file

@ -19,7 +19,7 @@
*/
#include "libc/macros.h"
#include "libc/notice.inc"
.yoink __FILE__
.source __FILE__
/ Equivalent to valloc(minimum-page-that-holds(n)), that is,
/ round up n to nearest PAGESIZE.

View file

@ -18,7 +18,7 @@
02110-1301 USA
*/
#include "libc/macros.h"
.yoink __FILE__
.source __FILE__
.initbss 800,_init_realloc
hook$realloc:

View file

@ -19,7 +19,7 @@
*/
#include "libc/macros.h"
#include "libc/notice.inc"
.yoink __FILE__
.source __FILE__
/ Allocates / resizes / frees memory, e.g.
/

View file

@ -19,7 +19,7 @@
*/
#include "libc/macros.h"
#include "libc/notice.inc"
.yoink __FILE__
.source __FILE__
/ Resizes the space allocated for p to size n, only if this can be
/ done without moving p (i.e., only if there is adjacent space

View file

@ -19,7 +19,7 @@
*/
#include "libc/macros.h"
#include "libc/notice.inc"
.yoink __FILE__
.source __FILE__
/ Equivalent to memalign(PAGESIZE, n).
/