kpilot/lib
testconstants.cc00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #include "options.h"
00030
00031 #define private public
00032 #define protected public
00033
00034 #include "pilotDatabase.h"
00035
00036 #include <pi-appinfo.h>
00037
00038 int main(int argc, char **argv)
00039 {
00040 PilotAppInfoBase info;
00041
00042 kdDebug() << "*** Sizes of structures" << endl;
00043 kdDebug() << "AppInfoBase: " << sizeof(PilotAppInfoBase) << endl;
00044 kdDebug() << "CategoryInfo: " << sizeof(info.categoryInfo()) << endl;
00045 kdDebug() << "CategoryInfo: " << sizeof(*info.categoryInfo()) << endl;
00046 kdDebug() << "Category names: " << sizeof(info.categoryInfo()->name) << endl;
00047 kdDebug() << "Single category: " << sizeof(info.categoryInfo()->name[0]) << endl;
00048
00049 if ( sizeof(info.categoryInfo()->name[0]) != 16 ) return 1;
00050 if ( sizeof(info.categoryInfo()->name) / sizeof(info.categoryInfo()->name[0]) != 16 ) return 1;
00051 return 0;
00052 }
00053
00054
|