summaryrefslogtreecommitdiff
path: root/tools/d2c/coder.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-10-30 21:53:30 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-10-30 21:53:30 (GMT)
commit65e12afde4bd9cd32e206f874cfa378708248918 (patch)
treef20703aa76917732b65781c8b45c2a356224bdc1 /tools/d2c/coder.c
parentb48aa163302c32be9624782015507c1138b13d59 (diff)
Defined the parent directory as the working location for generation.
Diffstat (limited to 'tools/d2c/coder.c')
-rw-r--r--tools/d2c/coder.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/d2c/coder.c b/tools/d2c/coder.c
index 9066869..61527bf 100644
--- a/tools/d2c/coder.c
+++ b/tools/d2c/coder.c
@@ -888,7 +888,7 @@ bool output_coder_body(const rented_coder *coder, const output_info *info)
if (!has_encoding_spec_prefix(coder->specs[j], enc_name->src))
continue;
- header_fd = open_header_file(info->directory, enc_name->dest, "opcodes", &header_new);
+ header_fd = open_header_file(info->opcodes_dir, enc_name->dest, "opcodes", &header_new);
if (header_fd == -1)
{
result = false;
@@ -910,7 +910,7 @@ bool output_coder_body(const rented_coder *coder, const output_info *info)
}
- code_fd = open_code_file(coder, info->directory, enc_name->dest, &code_new);
+ code_fd = open_code_file(coder, info->opcodes_dir, enc_name->dest, &code_new);
if (code_fd == -1)
{
result = false;
@@ -965,7 +965,7 @@ bool output_coder_body(const rented_coder *coder, const output_info *info)
if (!has_encoding_spec_prefix(coder->specs[j], enc_name->src))
continue;
- header_fd = open_header_file(info->directory, enc_name->dest, "opcodes", &header_new);
+ header_fd = open_header_file(info->opcodes_dir, enc_name->dest, "opcodes", &header_new);
if (header_fd == -1)
{
result = false;
@@ -974,7 +974,7 @@ bool output_coder_body(const rented_coder *coder, const output_info *info)
assert(!header_new);
- code_fd = open_code_file(coder, info->directory, enc_name->dest, &code_new);
+ code_fd = open_code_file(coder, info->opcodes_dir, enc_name->dest, &code_new);
if (code_fd == -1)
{
result = false;
@@ -1513,7 +1513,7 @@ bool output_coder_identifier(const rented_coder *coder, const output_info *info)
/* Ouverture de la destination */
- fd = open_header_file(info->directory, NULL, "identifiers", &created);
+ fd = open_header_file(info->opcodes_dir, NULL, "identifiers", &created);
if (fd == -1) goto oci_exit;
if (created)
@@ -1658,7 +1658,7 @@ bool output_coder_sub_identifier(const rented_coder *coder, const output_info *i
/* Ouverture de la destination */
- fd = open_header_file(info->directory, NULL, "subidentifiers", &created);
+ fd = open_header_file(info->opcodes_dir, NULL, "subidentifiers", &created);
if (fd == -1) goto ocsi_exit;
if (created)
@@ -1823,7 +1823,7 @@ bool output_coder_keyword(const rented_coder *coder, const output_info *info)
/* Ouverture de la destination */
- fd = open_header_file(info->directory, NULL, "keywords", &created);
+ fd = open_header_file(info->opcodes_dir, NULL, "keywords", &created);
if (fd == -1) goto ock_exit;
if (created)
@@ -2017,7 +2017,7 @@ bool output_coder_hooks(const rented_coder *coder, const output_info *info)
/* Ouverture de la destination */
- fd = open_header_file(info->directory, NULL, "hooks", &created);
+ fd = open_header_file(info->opcodes_dir, NULL, "hooks", &created);
if (fd == -1) goto och_exit;
if (created)
@@ -2179,7 +2179,7 @@ bool output_coder_description(const rented_coder *coder, const output_info *info
/* Ouverture de la destination */
- fd = open_header_file(info->directory, NULL, "descriptions", &created);
+ fd = open_header_file(info->opcodes_dir, NULL, "descriptions", &created);
if (fd == -1) goto ocd_exit;
if (created)