From 5058a94ee717d96285da20423324af3478df175d Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Mon, 25 Feb 2013 01:38:36 -0500 Subject: Expand the loadable object support. Provide a simple API for loaded objects to interact with GNU make. I still won't guarantee that this API won't change but it's much closer to something that's supported and provides easy-to-use interfaces with a public header file. --- read.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'read.c') diff --git a/read.c b/read.c index 68287b7..af5cf01 100644 --- a/read.c +++ b/read.c @@ -435,7 +435,7 @@ eval_makefile (const char *filename, int flags) } void -eval_buffer (char *buffer) +eval_buffer (char *buffer, const gmk_floc *floc) { struct ebuffer ebuf; struct conditionals *saved; @@ -448,7 +448,9 @@ eval_buffer (char *buffer) ebuf.buffer = ebuf.bufnext = ebuf.bufstart = buffer; ebuf.fp = NULL; - if (reading_file) + if (floc) + ebuf.floc = *floc; + else if (reading_file) ebuf.floc = *reading_file; else ebuf.floc.filenm = NULL; -- cgit v1.2.3