Warning, /frameworks/syntax-highlighting/autotests/folding/systemc.c.fold is written in an unsupported language. File is not indexed.
0001 #include "systemc.h" 0002 0003 <beginfold id='1'>/*</beginfold id='1'> 0004 multi line comment 0005 <endfold id='1'>*/</endfold id='1'> 0006 0007 // declare some module 0008 SC_MODULE(gate) 0009 <beginfold id='2'>{</beginfold id='2'> 0010 // inputs 0011 sc_in<bool> inA, inB; 0012 0013 // outputs 0014 sc_out<bool> out; 0015 0016 // C function 0017 void do_something() 0018 <beginfold id='2'>{</beginfold id='2'> 0019 out.write(inA.read() || inB.read()); 0020 <endfold id='2'>}</endfold id='2'> 0021 0022 // constructor 0023 SC_CTOR(gate) 0024 <beginfold id='2'>{</beginfold id='2'> 0025 // register method 0026 SC_METHOD(do_something); 0027 <endfold id='2'>}</endfold id='2'> 0028 <endfold id='2'>}</endfold id='2'>;