예제 #1
0
 private void AddRamTable(TableMetaData table, int line)
 {
     if (table.isBase)
     {
         if (!BaseRamTables.ContainsKey(table.name))
         {
             BaseRamTables.Add(table.name, table);
         }
         else
         {
             Trace.WriteLine("Warning, duplicate table: " + table.name + ". Please check the definition: " + this.filePath + " Line number: " + line);
         }
     }
     else
     {
         if (!ExposedRamTables.ContainsKey(table.name))
         {
             ExposedRamTables.Add(table.name, table);
         }
         else
         {
             Trace.WriteLine("Warning, duplicate table: " + table.name + ". Please check the definition: " + this.filePath + " Line number: " + line);
         }
     }
 }
예제 #2
0
 private void AddRamTable(Table table)
 {
     if (table.isBase)
     {
         if (!BaseRamTables.ContainsKey(table.name))
         {
             BaseRamTables.Add(table.name, table);
         }
         else
         {
             Trace.WriteLine("Warning, duplicate table: " + table.name + ". Please check the definition!!");
         }
     }
     else
     {
         if (!ExposedRamTables.ContainsKey(table.name))
         {
             ExposedRamTables.Add(table.name, table);
         }
         else
         {
             Trace.WriteLine("Warning, duplicate table: " + table.name + ". Please check the definition!!");
         }
     }
 }
예제 #3
0
        private void AddRamTable(TableMetaData table, int line)
        {
            TableMetaData dupe;

            if (table.isBase)
            {
                if (!BaseRamTables.ContainsKey(table.name))
                {
                    BaseRamTables.Add(table.name, table);
                }
                else
                {
                    BaseRamTables.TryGetValue(table.name, out dupe);
                    Trace.WriteLine("Warning, duplicate table: " + table.name + ". Please check the definition: " + this.filePath + " Line numbers: " + line + " and " + dupe.LineNumber);
                }
            }
            else
            {
                if (!ExposedRamTables.ContainsKey(table.name))
                {
                    ExposedRamTables.Add(table.name, table);
                }
                else
                {
                    ExposedRamTables.TryGetValue(table.name, out dupe);
                    Trace.WriteLine("Warning, duplicate table: " + table.name + ". Please check the definition: " + this.filePath + " Line numbers: " + line + " and " + dupe.LineNumber);
                }
            }
        }
예제 #4
0
 private void Clear()
 {
     ExposedRomTables.Clear();
     ExposedRamTables.Clear();
     BaseRomTables.Clear();
     BaseRamTables.Clear();
     ScalingList.Clear();
     inheritList.Clear();
 }