summaryrefslogtreecommitdiffstats
path: root/linker.c
AgeCommit message (Collapse)Author
2015-08-16Fix linker.c includes for win32 (fix #911)jq-1.5-branchNicolas Williams
2015-08-13Make search path expansion portable (fix #817)Nicolas Williams
This is part 2 of the fix to #817. Part 1 is the previous commit.
2015-06-26Restore import into caller's namespaceNicolas Williams
2015-03-30Include filename and lineno in error messagesNicolas Williams
2015-01-02Look for jq/main.jq for importsNicolas Williams
2014-12-31Further module system revamp (fix #659)Nicolas Williams
To import a module now use: # Import module.jq file: import "relative/path/to/module" as foo; # Use the module's defs as foo::<def-name> To import a JSON file: # Read file.json: import "relative/path/to/file" as $foo; # # Use as $foo::foo Using `-L` now drops the builtin library path and appends the requested path to the empty array (or the result of an earlier `-L`). Support for the `$JQ_LIBRARY_PATH` environment variable has been removed.
2014-12-24Module search revamp for pkg managersNicolas Williams
The search path listed in an import directive can now be an array. The top-level search path is appended. Null and empty strings in the path terminate any search. The "." in "." and "./*" is replaced with the directory containing the file doing the import (for command-line programs this is the current directory, though that may be a bad idea). No version numbers or anything of the sort are gratuitously added to the search paths. All this makes external package managers possible by allowing dependencies to be installed local to dependents.
2014-08-30Drop the jq version directory from search pathNicolas Williams
2014-08-20Drop "any/" in module search; use 1.x-masterNicolas Williams
2014-08-14Add `module` directive, `modulemeta` builtinNicolas Williams
Fix #425.
2014-08-14Add jq_report_error() function; use itNicolas Williams
Put a stop to fprintf(stderr, ...) where we shouldn't.
2014-07-27Fixing crash when a library's dependency could not be loaded.William Langford
Signed-off-by: Nicolas Williams <nico@cryptonector.com>
2014-07-22Added library system with -l, -L, and JQ_LIBRARY_PATHWilliam Langford
Created util.[ch] to hold common utilities.