Changeset 12 for sources/src


Ignore:
Timestamp:
Jan 23, 2009, 11:05:05 AM (16 years ago)
Author:
buchmann
Message:

Changes:

  • Convert some includes like <stdlib.h> into <cstdlib>
  • Remove some unused includes
Location:
sources/src
Files:
20 edited

Legend:

Unmodified
Added
Removed
  • sources/src/alias.cc

    r3 r12  
    3434
    3535#include"alias.h"
    36 #include<string>
    37 //#include<cstdarg.h>
    38 //#include<cstdio.h>
    3936#include<iostream>
    4037
  • sources/src/bit2string.cc

    r1 r12  
    66|                                                             |
    77| Author  :                 Kingbo Paul-Jerome                |
     8|                           Buchmann Richard                  |
    89|                                                             |
    910| Date    :                   09_07_2004                      |
     
    3637#include "bit2string.h"
    3738#include "sc_unit.h"
    38 #include <string>
    39 #include <stdarg.h>
    40 #include <stdio.h>
    41 #include <stdlib.h>
     39#include <cstdarg>
     40#include <cstdio>
     41#include <cstdlib>
    4242#include <iostream>
    4343       
  • sources/src/gen_code.cc

    r1 r12  
    3535 */
    3636
    37 #include<stdio.h>
    38 #include<stdlib.h>
     37#include<cstdio>
     38#include<cstdlib>
    3939#include<iostream>
    4040#include<fstream>
     
    264264  o << "// generated by " << sc_version () << endl
    265265                << "#include<casc.h>\n\n"
    266                 << "#include<stdio.h>\n\n"
     266                << "#include<cstdio>\n\n"
    267267//              << "#include<iostream>\n\n"
    268268                << "namespace sc_core {\n"
     
    325325  o << "// generated by " << sc_version () << endl
    326326                << "#include<casc.h>\n\n"
    327                 << "#include<stdio.h>\n\n"
     327                << "#include<cstdio>\n\n"
    328328//              << "#include<iostream>\n\n"
    329329                << "namespace sc_core {\n"
  • sources/src/graph.cc

    r1 r12  
    105105 */
    106106
    107 #include <stdio.h>
     107#include <cstdio>
    108108#include <map>
    109 #include <string>
    110109
    111110#include "graph.h"
  • sources/src/graph_cass.cc

    r1 r12  
    118118#include <iostream>
    119119#include <fstream>
    120 #include <stdio.h>
     120#include <cstdio>
    121121#include <map>
    122122#include <string>
  • sources/src/graph_signals.cc

    r1 r12  
    130130 */
    131131
    132 #include <stdio.h>
     132#include <cstdio>
    133133#include <map>
    134 #include <string>
    135134
    136135#include "graph_signals.h"
  • sources/src/guess_endianness.cc

    r1 r12  
    1414}
    1515
    16 #include <stdio.h>
     16#include <cstdio>
    1717
    1818int
  • sources/src/hex2string.cc

    r1 r12  
    3636#include "hex2string.h"
    3737
    38 #include <string>
     38//#include <string>
    3939#include <stdarg.h>
    40 #include <stdio.h>
    41 #include <stdlib.h>
     40#include <cstdio>
     41#include <cstdlib>
    4242#include <iostream>
    4343       
  • sources/src/internal.h

    r11 r12  
    1616#include <map>
    1717#include <string>
     18#include <vector>
    1819
    1920namespace sc_core {
  • sources/src/sc_main.cc

    r4 r12  
    3636
    3737#include<sstream>
    38 #include<string>
    3938#include<list>
    4039#include<set>
     40
    4141#include"internal.h"
    4242#include"global_functions.h"
  • sources/src/sc_module.cc

    r1 r12  
    3535 */
    3636
     37#include <stdarg.h>
     38#include <vector>
     39#include <set>
    3740
    3841#include "sc_module.h"
     
    4144#include "module_hierarchy.h"
    4245#include "serialization.h" // set_save_handler
    43 #include <stdarg.h>
    44 #include <vector>
    45 #include <string>
    46 #include <set>
    4746#include "sc_port.h"
    4847#include "sc_signal.h"
  • sources/src/sc_object.cc

    r1 r12  
    3535
    3636
    37 #include <stdio.h>
     37#include <cstdio>
    3838#include <string>
    3939#include <map>
  • sources/src/sc_pat_trace.cc

    r1 r12  
    4141#include"internal.h" // notrace
    4242
    43 #include<time.h>
    44 #include<string>
     43#include<ctime>
    4544
    4645#ifdef PAT_TRACE_FORMAT
     
    5352
    5453//#include "malloc.h" // NO LONGER SUPPORTED
    55 #include <stdlib.h>
    56 #include "stdio.h"
     54#include <cstdlib>
     55#include <cstdio>
    5756
    5857//-----------------------------------------
  • sources/src/sc_port.cc

    r4 r12  
    3737
    3838#include<iomanip>
    39 #include<list>
    4039#include<map>
    41 #include<vector>
    4240
    4341#include"sc_port.h"
  • sources/src/sc_time.cc

    r4 r12  
    3636
    3737#include"sc_time.h"
    38 #include <time.h>
     38#include <ctime>
    3939#include <sys/time.h>
    4040#include <string>
  • sources/src/sc_trace.cc

    r1 r12  
    4444
    4545#include <list>
    46 #include <stdio.h>
     46#include <cstdio>
    4747#include <iostream>
    4848
     
    5959
    6060//#include "malloc.h" // NO LONGER SUPPORTED
    61 #include <stdlib.h>
    62 #include <stdio.h>
     61#include <cstdlib>
     62#include <cstdio>
    6363
    6464#endif // PAT_TRACE_FORMAT
  • sources/src/sc_vcd_trace.cc

    r1 r12  
    4242#include"assert.h"
    4343
    44 #include<time.h>
     44#include<ctime>
    4545#include<string>
    4646
  • sources/src/sc_ver.cc

    r1 r12  
    3636
    3737#include "sc_ver.h"
    38 #include <string>
    3938#include <iostream>
    4039
  • sources/src/serialization.cc

    r1 r12  
    3535
    3636
    37 #include<vector>
    3837#include<map>
    39 #include<fstream> // save_module_hierarchy
     38#include<fstream>
     39//#include<vector> // save_module_hierarchy
     40
    4041#include"internal_ext.h" // tab_t
    4142#include"serialization.h"
  • sources/src/signal_dependency.cc

    r1 r12  
    3434 */
    3535
    36 #include <set>
    3736#include <iostream>
    3837#include <fstream>
     38
    3939#include "signal_dependency.h"
    4040#include "simplify_string.h"
Note: See TracChangeset for help on using the changeset viewer.