Ignore:
Timestamp:
Jan 22, 2013, 4:23:22 PM (11 years ago)
Author:
meunier
Message:

Code formatting in all source files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sources/src/port_dependency_ext.h

    r1 r52  
    11/*------------------------------------------------------------\
    2 |                                                             |
    3 | Tool    :                  systemcass                       |
    4 |                                                             |
    5 | File    :                  port_dependancy_ext.h            |
    6 |                                                             |
    7 | Author  :                 Buchmann Richard                  |
    8 |                                                             |
    9 | Date    :                   12_08_2004                      |
    10 |                                                             |
    11 \------------------------------------------------------------*/
     2  |                                                             |
     3  | Tool    :                  systemcass                       |
     4  |                                                             |
     5  | File    :                  port_dependancy_ext.h            |
     6  |                                                             |
     7  | Author  :                 Buchmann Richard                  |
     8  |                                                             |
     9  | Date    :                   12_08_2004                      |
     10  |                                                             |
     11  \------------------------------------------------------------*/
    1212
    1313/*
     
    4040
    4141// Declare dependancy
    42 extern void set_port_dependency (const sc_port_base* source,const sc_port_base& destination);
     42extern void set_port_dependency(const sc_port_base * source, const sc_port_base & destination);
    4343
    4444template<typename T, size_t N1, size_t N2>
    45 inline
    46 void
    47 set_port_dependency (sc_in<T>  (&source)[N1],
    48                      sc_out<T> (&destination)[N2])
    49 {
    50   int i;
    51   for (i = 0; i < N1; ++i)
    52   {
    53     int j;
    54     for (j = 0; j < N2; ++j)
    55     {
    56       set_port_dependency ((const sc_port_base*) &(source[i]), (const
    57 sc_port_base&) (destination[j]));
     45inline void set_port_dependency(sc_in<T> (&source)[N1], sc_out<T> (&destination)[N2]) {
     46    int i;
     47    for (i = 0; i < N1; ++i) {
     48        int j;
     49        for (j = 0; j < N2; ++j) {
     50            set_port_dependency ((const sc_port_base *) &(source[i]), (const sc_port_base&) (destination[j]));
     51        }
    5852    }
    59   }
    6053}
    6154
     
    6356
    6457#endif
     58
     59/*
     60# Local Variables:
     61# tab-width: 4;
     62# c-basic-offset: 4;
     63# c-file-offsets:((innamespace . 0)(inline-open . 0));
     64# indent-tabs-mode: nil;
     65# End:
     66#
     67# vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4
     68*/
     69
Note: See TracChangeset for help on using the changeset viewer.