Ticket #44605: patch-ChangeLog-modules_switch.cc-modules_switch.h-gui_gui_stopwatch.cc-fix-clang-compile-errors.diff
File patch-ChangeLog-modules_switch.cc-modules_switch.h-gui_gui_stopwatch.cc-fix-clang-compile-errors.diff, 3.4 KB (added by Ionic (Mihai Moldovan), 10 years ago) |
---|
-
ChangeLog
old new 1 2013-10-15 Borut Razem <borutr@users.sourceforge.net> 2 * modules/stimuli.cc, modules/stimuli.h, modules/switch.h, 3 modules/switch.cc, gui/gui_stopwatch.cc: applied patch 4 #32 Make gpsim compile with clang, 5 thanks to Ralf Horstmann 6 1 7 2011-04-27 Roy Rankin <rrankin@ihug.com.au> 2 8 * regression/p16f690/Makefile : use local lkr file 3 9 * regression/Makefile.am : tarball fix -
gui/gui_stopwatch.cc
old new 179 179 } 180 180 if(!sww->IsUpdate() && (text=gtk_entry_get_text (GTK_ENTRY(widget)))!=0) 181 181 { 182 long long v = strtoll(text,0,10);182 long long v = ::strtoll(text,0,10); 183 183 if(v!=(sww->cyclecounter-sww->offset)%sww->rollover) 184 184 { 185 185 v=(v+sww->offset)%sww->rollover; … … 201 201 } 202 202 if(!sww->IsUpdate() && (text=gtk_entry_get_text (GTK_ENTRY(widget)))!=0) 203 203 { 204 long long v = strtoll(text,0,10);204 long long v = ::strtoll(text,0,10); 205 205 206 206 if(v!=sww->offset) 207 207 { … … 221 221 } 222 222 if(!sww->IsUpdate() && (text=gtk_entry_get_text (GTK_ENTRY(widget)))!=0) 223 223 { 224 long long v = strtoll(text,0,10);224 long long v = ::strtoll(text,0,10); 225 225 226 226 if(v!=sww->rollover) 227 227 { … … 403 403 404 404 get_config(); 405 405 if(config_get_string(name(),"rollover",&string)) 406 rollover = strtoll(string,0,10);406 rollover = ::strtoll(string,0,10); 407 407 config_get_variable(name(),"count_dir",&count_dir); 408 408 409 409 if(enabled) -
modules/stimuli.cc
old new 216 216 //---------------------------------------------------------------------- 217 217 //---------------------------------------------------------------------- 218 218 219 PulseGen::PulseGen(const char *_name =0)219 PulseGen::PulseGen(const char *_name) 220 220 : StimulusBase(_name, "\ 221 221 Pulse Generator\n\ 222 222 Attributes:\n\ -
modules/stimuli.h
old new 48 48 gint64 time; 49 49 Value *v; 50 50 51 inline bool operator < ( ValueStimulusData &rValue){51 inline bool operator < (const ValueStimulusData &rValue) const { 52 52 return time < rValue.time; 53 53 } 54 inline bool operator == ( ValueStimulusData rValue){54 inline bool operator == (const ValueStimulusData rValue) const { 55 55 return time == rValue.time; 56 56 } 57 57 }; … … 72 72 { 73 73 public: 74 74 static Module *construct(const char *new_name); 75 PulseGen(const char *_name );75 PulseGen(const char *_name=0); 76 76 ~PulseGen(); 77 77 78 78 virtual void callback(); -
modules/switch.cc
old new 582 582 583 583 //======================================================================== 584 584 585 Switch::Switch(const char *_new_name =0)585 Switch::Switch(const char *_new_name) 586 586 : SwitchBase(_new_name, "\ 587 587 Two port switch\n\ 588 588 Attributes:\n\ -
modules/switch.h
old new 88 88 class Switch : public SwitchBase 89 89 { 90 90 public: 91 Switch(const char *_name );91 Switch(const char *_name=0); 92 92 ~Switch(); 93 93 94 94 virtual void setState(bool);