summaryrefslogtreecommitdiff
path: root/lib/stdlib/test/epp_SUITE_data
Commit message (Collapse)AuthorAgeFilesLines
* compiler: Make EPP respect +deterministicTom Davies2022-05-062-0/+7
| | | | | | | Makes the EPP module use basenames rather than absolute paths for all -file attributes / ?FILE macros when +deterministic is set. Previously, EPP did not respect +deterministic in all scenarios, so build output could still contain absolute paths.
* Fix inconsistency in defining ?FILE macroPer Gustafsson2021-08-232-0/+9
| | | | | | This happens when the source_name is explicitly defined as an option to epp:parse_file/2. Before an include it got expanded to the actual file name, after an include it was defined as the source_name. With this change it will always be the source_name. This come up when using --deterministic mode to compile causing the output to be less deterministic if you use the ?FILE macro before any includes.
* epp: Allow user to set source name independently of input file nameJohn Högberg2018-10-051-0/+27
| | | | | Note that this does *not* affect -include()'d files or the -file() directive.
* update copyright-yearHenrik Nord2016-03-157-7/+7
|
* Change license text to APLv2Bruce Yinhe2015-06-187-70/+77
|
* Make epp search directory of current file first when including another fileRichard Carlsson2011-10-174-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The expected behaviour of a C-style preprocessor (such as Erlang's epp) is to allow a header file to include another header file in the same directory even though that directory is not explicitly in the include path, and even if the actual include path might reference another directory containing a file with the same name. For example, if src/foo.erl explicitly includes "../include/foo.hrl", then foo.hrl should be able to include "bar.hrl" in that same directory even though "../include" might not be in the search path, and even if another file named bar.hrl could be found using the search path it should not override the one in the same directory as foo.hrl. In Erlang, the most common situation is that a user of an installed application includes a main public header file using include_lib ("appname/include/foo.hrl") and that file includes a secondary header file "bar.hrl". However, if it does this using include_lib, it causes a bootstrapping problem - in the build environment for the application itself, the application is not necessarily found by name. On the other hand, if foo.hrl uses a plain include, then bar.hrl might be found when the application is built (if explicit paths are set in the makefils) but not later on when a user includes the main header file of the installed application via include_lib. By making -include always look in the directory of the current file before it uses the search path, this problem is remedied, and include directives behave in a more intuitive way. This completes a partial fix in R11 that only worked for include_lib().
* The R13B03 release.OTP_R13B03Erlang/OTP2009-11-207-0/+207