Changeset 5041:5b5d478781e6 in orange


Ignore:
Timestamp:
07/31/08 17:14:44 (6 years ago)
Author:
janezd <janez.demsar@…>
Branch:
default
Convert:
3b3702eac59b9d8fcfd858e2c98e4a7e0a972abc
Message:
  • small preprocessor patches
Location:
source/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source/include/crc.h

    r5031 r5041  
     1#ifndef __CRC_H 
     2#define __CRC_H 
     3 
    14extern unsigned long crc_table[256]; 
    25 
     
    912      crc = (crc >> 8) ^ crc_table[(crc & 0xFF) ^ *(b++)]); \ 
    1013 
    11 inline void add_CRC(const unsigned long data, unsigned long &crc)  
     14inline void add_CRC(const unsigned long data, unsigned long &crc) 
    1215{ ADD_CRC } 
    1316 
    14 inline void add_CRC(const float data, unsigned long &crc)  
     17inline void add_CRC(const float data, unsigned long &crc) 
    1518{ ADD_CRC } 
    1619 
     
    2023inline void add_CRC(const char *c, unsigned long &crc) 
    2124{ 
    22   for(; *c; add_CRC((unsigned char)*c++, crc));  
     25  for(; *c; add_CRC((unsigned char)*c++, crc)); 
    2326  add_CRC((unsigned char)0, crc); 
    2427} 
     28 
     29#endif 
  • source/include/student.hpp

    r2694 r5041  
    2020*/ 
    2121 
     22#ifndef __STUDENT_HPP 
     23#define __STUDENT_HPP 
    2224 
    2325/*, 2,  4,  6,  8,  10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 700*/ 
     
    9092  return students[int(floor(T*10+0.5))][(freedom>30) ? 15 : (freedom-1)/2]; 
    9193} 
     94 
     95#endif 
Note: See TracChangeset for help on using the changeset viewer.