Ejemplo n.º 1
0
        public void WriteGlobals(Program program, string filename, TextWriter w)
        {
            var headerfile = Path.ChangeExtension(Path.GetFileName(program.Filename), ".h");

            WriteHeaderComment(filename, program, w);
            w.WriteLine("#include \"{0}\"", headerfile);
            w.WriteLine();
            var gdw = new GlobalDataWriter(program, new TextFormatter(w), true, true, services);

            gdw.Write();
            w.WriteLine();
        }
Ejemplo n.º 2
0
        public void WriteGlobals(Program program, string filename, TextWriter w)
        {
            var headerfile = DecompiledFileService.GenerateDerivedFilename(program, ".h");

            WriteHeaderComment(filename, program, w);
            w.WriteLine("#include \"{0}\"", headerfile);
            w.WriteLine();
            var gdw = new GlobalDataWriter(program, new TextFormatter(w), true, true, services);

            gdw.Write();
            w.WriteLine();
        }
Ejemplo n.º 3
0
        private void RunTest(string sExp)
        {
            var sw        = new StringWriter();
            var formatter = new TextFormatter(sw)
            {
                Indentation = 0,
                UseTabs     = false,
            };
            var gdw = new GlobalDataWriter(program, formatter, sc);

            gdw.Write();
            Assert.AreEqual(sExp, sw.ToString());
        }