Commit fafca0a690633272846ece452a3e8954ccd6cf5d

Authored by Alain Prouté
1 parent be0c26bd

Fixed the pb with private type aliases.

Showing 1 changed file with 4 additions and 1 deletions   Show diff stats
anubis_dev/compiler/src/typetools.c
... ... @@ -5,6 +5,7 @@
5 5  
6 6 *****************************************************************/
7 7  
  8 +#include <string.h>
8 9 #include "compil.h"
9 10  
10 11 //#define allow_empty_types
... ... @@ -22,7 +23,9 @@ static int find_type_alias_id(Expr type_name)
22 23 if (type_aliases[i].name == type_name)
23 24 {
24 25 if (is_visible(string_content(type_aliases[i].abs_file_path))
25   - && ((type_aliases[i].global)&op_public))
  26 + && (((type_aliases[i].global)&op_public)
  27 + || (!strcmp(string_content(type_aliases[i].abs_file_path),current_file_abs_path)))
  28 + )
26 29 return i;
27 30 else
28 31 return -1;
... ...