ãã©ãŒã©ã ã§äººã
ãšã³ãã¥ãã±ãŒã·ã§ã³ããšããªãããéçåæã®æ¹æ³è«ã«é¢ããããã€ãã®æ°žç¶çãªèª€è§£ã«æ°ä»ããŸããã 次ã®ç¥è©±ãææãããïŒ
- éçã¢ãã©ã€ã¶ãŒã¯1åéãã®è£œåã§ãã
- ããã®éçºè
ã¯æããªééããç¯ããŸããã
- åçåæã¯éçåæãããåªããŠããŸãã
- ããã°ã©ããŒã¯ãéçã¢ãã©ã€ã¶ãŒã«ã«ãŒã«ãè¿œå ããããšèããŠããŸãã
ç¥è©±1-éçã¢ãã©ã€ã¶ãŒã¯1åéãã®è£œåã§ã
ãã©ãŒã©ã ã§è°è«ãããšãããã®ã¹ããŒãã¡ã³ãã¯æ¬¡ã®ããã«ãªããŸãïŒéåã€ã¡ãŒãžïŒã
è©Šçšç/ã¯ã©ãã¯çã䜿çšãããšããã¹ãŠã®ãããžã§ã¯ããç¡æã§å®è¡ããå€ããšã©ãŒãèŠã€ããŠãå®éã«ã¯ãã°ããèœã¡çãããšãã§ããŸãã誰ãã幞ãã§ãã 人ã
ã¯ãã§ãã¯ããŸããã ã¢ãã©ã€ã¶ãŒã®éçºè
ã¯ã圌ããã ãŸãããŠå¥ªãããããšãç¥ããŸããã§ããããã®å Žåãããã°ã©ãã¯ããŒã«ã®äœæè
ã§ã¯ãªããèªåã欺ããã 圌ã¯è¡ãããä»äºããã®å©çã®å€èŠ³ã®ã¿ãåãåããŸããããæ¬åœã®å©çã¯åãåããŸããã§ããã ãããŸã§ã®ãšãããç§ã¯ãã®èããäŒããããšãã§ããŸããã§ããããç§ã¯ãããããããšãç¶ããŸãã éçã¢ãã©ã€ã¶ãŒã®ã·ã³ã°ã«ã¹ã¿ãŒãããã®äœ¿çšã¯ãããŸããã
é¡æšïŒ
ã³ã³ãã€ã©ã®èŠåã¬ãã«/ W0ãèšå®ããŸãã ãããŠãç§ãã¡ã¯ãããžã§ã¯ããéçºããŠããŸãã ç§ãã¡ã¯èªããæããªééããã¿ã€ããã¹ãä¿®æ£ããããå€ãã®æéããã¹ãããŸãã ãã®åŸãææ/ W3ããªã³ã«ããŠèŠåä»ãã§æŠããåã³/ W0ã«æ»ããŸãã åæã«ãã³ã³ãã€ã©ã/ W3ã¬ãã«ã§ææ¡ã§ããããšã¯å€§èã«ããé·ãéãããã¬ã§æ€çŽ¢ãã10ã100åã®æéãè²»ãããŸããã ããã«ãããã°ã©ããŒã¯/ W3ã®çµæãæ°ã«å
¥ããªãããšã«æ³šæããŠãã ããã çµå±ã®ãšããã圌ã¯ãã¹ããšãããã°ã«ãã£ãŠã»ãšãã©ãã¹ãŠã®ãšã©ãŒãä¿®æ£ããŸããã ã¬ãã«/ W3ã®ã³ã³ãã€ã©ã¯ãã»ãšãã©ã誀æ€ç¥ãçæããŸãã
éçåæã«æ»ããŸãã åçã¯å®å
šã«åäžã§ãã ã¢ãã©ã€ã¶ãŒã®ãŸããªèµ·åã«ãããå€ãã®èª€æ€ç¥ãçºçããŸãã ãããã®ãšã©ãŒã¯ä»ã®æ¹æ³ã§æ€åºãããããããããããã§ãã
/ W3ã¹ã€ãããšåæ§ã«ãéçåæã䜿çšããããšã¯ãå®æçã«äœ¿çšããå Žåã«æã圹ç«ã¡ãŸãã ãšããã§ãéçåæã¯ãã³ã³ãã€ã©ãŒã«ãã£ãŠçºè¡ãããèŠåã®äžçš®ã§ãã ãã€ãŠå€ãã¢ãã©ã€ã¶ãŒã«å®è£
ãããŠããå€ãã®èšºæã¯ãåŸã
ã«ã³ã³ãã€ã©ãŒã«ç§»è¡ããŠããŸãã ãã¡ããã蚺æèšç»ã§ã¯ãã¢ãã©ã€ã¶ãŒã¯åžžã«ã³ã³ãã€ã©ãŒãããåªå
ãããŸãã ãã®ããã«ç¹å¥ã«èšèšãããŠããŸãã ã³ã³ãã€ã©ã«ã¯ä»ã®æžå¿µäºé
ããããããã«å³ããããã©ãŒãã³ã¹èŠä»¶ã課ãããŠããŸãã
è°è«ã®æžŠäžã«ãã人ã®äžã«ã¯ããã®ããã«åå¿ãã人ãããŸãã
ãã®èãæ¹ã¯ãåå¿è
ã®åŠçã«ãåœãŠã¯ãŸããŸãã å°é家ã«ãšã£ãŠãããã¯ããã»ã©éèŠã§ã¯ãããŸããã ç§ã¯/ W0ãå
¥ããã°ãç§ã¯æªåããŸããã æŸèæããŒã«ã®æ°ãå¢ããã®ã§ã¯ãªããããã°ã©ãã³ã°ã¹ã¿ã€ã«ãæ¹åããå¿
èŠããããŸããäžèšã®ãã¹ãŠã«å®å
šã«åæããŸãã ãããã次ã®ããã«ããã¹ããåçããŠããçŽããŸãããã
ãã®èãæ¹ã¯ãåå¿è
ãã©ã€ããŒã«ãåœãŠã¯ãŸããŸãã å°é家ã«ãšã£ãŠãããã¯ããã»ã©éèŠã§ã¯ãããŸããã ã·ãŒããã«ããç· ããªããã°ãæªåããããšã¯ãããŸããã é転ã¹ã¿ã€ã«ãæ¹åããå®å
šã³ã³ããŒãã³ãã®æ°ãå¢ããå¿
èŠã¯ãããŸãããç¹°ãè¿ããŸãããè°è«ããããšã¯ã§ããŸããã ãã ããé©åã«èãããããã©ã€ããŒã§ããã°ãç· ããã®ããŸã æçšã§ããããšãç解ããŠããŸãã éç解æã圹ç«ã¡ãŸãã å®éãæãçµéšè±å¯ãªããã°ã©ããŒã§ããããšã©ãŒãã¿ã€ããã¹ã®åœ±é¿ãåããŸããã ãããŠã
ãã®èšäºã§äžããããäŸã¯ã
ããã®è¯ã確èªã§ãã ãã¡ããããã¹ãŠã®ããã®ããã°ã©ãã¯ããã®ãããªæããªééããç¯ããªããšç¢ºä¿¡ããŠããŸãããããã«ã€ããŠã¯åŸã§è©³ãã説æããŸãã
第äºã®ç¥è©±-ããã®éçºè
ã¯æããªééããç¯ããªã
2çªç®ã®ç¥è©±ïŒãããã®éçºè
ã¯ãäž»ã«éçã³ãŒãã¢ãã©ã€ã¶ãŒã«ãã£ãŠãã£ãããããæããªééããç¯ããŸãããã
ãã©ãŒã©ã ã§è°è«ãããšãããã®ã¹ããŒãã¡ã³ãã¯æ¬¡ã®ããã«ãªããŸãïŒéåã€ã¡ãŒãžïŒã
ããã®éçºè
ã§ããç§ã¯ãN幎éãã¡ã¢ãªã®ç Žæããªããžã§ã¯ãã®å¯¿åœãªã©ã®åé¡ãæ±ããŠããŸããã éçåæã¯ãã¯ããã«ãã®ããŒã«ã§ãããããïŒå°éãã©ãŒã©ã ïŒã§ãªã¿ã¯ã座ã£ãŠããŸãã çŸåšãç§ã®äž»ãªåé¡ã¯ããªããžã§ã¯ãã®ç¶æ
ã«é¢ããæé»ã®ã³ã³ãã©ã¯ãã䜿çšããŠãã¢ã«ãŽãªãºã ãšä»ã®éçºè
ãšã®çµ±åããã¹ãããã®ãé£ããããšã§ããã¿ã€ããã¹ã®åé¡ãšäžæ³šæã®ãšã©ãŒã®ããã«èãããŸãããããã¯å€ãã®åŠçã§ãã ããã®éçºè
ã¯é·ãéããããäœæããŠããããäž»ãªåé¡ã¯åæã®åé¡ãè€éãªããŒã¿åŠçã¢ã«ãŽãªãºã ãªã©ã®è€éãªãšã©ãŒãåå ã§ãã
ããã§ã¯ãããŸããã ããã°ã©ããŒã¯æããªééããç¯ããŸãã ããªãã¯ç§ãèããŠããªãããšãç¥ã£ãŠããŸãã ç§ã¯ç°ç«¯ã®èããç¹°ãè¿ããŸãã ãã¹ãŠã®ããã°ã©ãã¯æããªééããç¯ããŸãã ã©ããªçš®é¡ã®å°é家ã§ãã£ãŠãã 人ã
ã¯ééããç¯ããã¡ã§ãã ã»ãšãã©ã®å Žåããããã®ãšã©ãŒã¯åçŽã§ãã
ããã°ã©ããŒã¯ããšã©ãŒã«é¢ããç§ã®å£°æã«ã€ããŠéåžžã«äžèŠªåã§ãã 圌ãã®æèŠã§ã¯ãéåžžã«é·ãéãã®ãããªéã¡ãç¯ããªãã£ãã®ã¯åœŒãã§ããã 粟ç¥ã®èå³æ·±ãåŽé¢ãããã§æ©èœããèå³ã®ãªãããã°ã©ãã³ã°ã®ç¬éã®èšæ¶ãé€å€ãããšæããŸãã
å°ãè±ç·ããŠããªãããŸããŸãªæå ããç²ã匷ãã®ããæãåºããŸãããã æåã®çç±ã¯éåžžã«ææ§ãªèšèé£ãã§ããã人ãèªåã«é å¿ããã®ã¯ç°¡åã§ãã ãããã2çªç®ã®ã³ã³ããŒãã³ãã«èå³ããããŸãã 人ã
ã¯ãäºæž¬ãå®çŸããªãã£ãå ŽåãèŠããŠããŸããã ãããã圌ãã¯èªåãã¡ã®ç掻ç¶æ³ãæå ãã§èª¬æãããç¶æ³ãšäžèŽããå Žåãéåžžã«ããæãåºããèªãçŽããŸãã ãã®çµæãããã¹ã³ãŒãã話ãããæãåºããããããšãããã¹ã³ãŒããæ©èœããŠããããšã瀺ãNåã®ç¢ºèªãèŠã€ãããããã¹ã³ãŒããæ©èœããªãã£ãN * 10ã®ã±ãŒã¹ã«ã€ããŠã¯èŠããŠããŸããã
ããã°ã©ããŒããšã©ãŒãæ€çŽ¢ãããšã䌌ããããªããšãèµ·ãããŸãã 圌ã¯è€éã§èå³æ·±ãééãã«ã€ããŠããèŠããŠããŸãã ååãšè°è«ããããããã°ã«ã¡ã¢ãæžãããã§ããŸãã å€æ°ãABãã®ä»£ããã«ãBAããæžããããšã«æ°ä»ããšã圌ã¯åã«ééããèšæ£ãããã®äºå®ã¯ããã«åœŒã®èšæ¶ããæ¶ããŸãã ããã€ãã¯ã次ã®èšæ¶ã®ç¹åŸŽã«æ³šæãåããŸãããèªåã«ã€ããŠã®è¯å®çãªçºèšãèšæ¶ããåŠå®çãªçºèšãå¿ããããšã¯äººéã®æ¬æ§ã§ãã 人ãã¢ã«ãŽãªãºã ã®åââé¡ã§é£ãããšã©ãŒãšæŠã£ãŠããå Žåããããä¿®æ£ãããšãèªåãããŒããŒãšèŠãªããŸãã èŠããŠãä»ã®äººã«äŒãã䟡å€ãããããŸãã 圌ãæããªãã°ãèŠã€ãããšãããããèŠããçç±ãšæ¬²æ±ã¯ãããŸããã
ã©ã®ãããªèšŒæ ããããŸããïŒ ã»ãšãã©ã®ã¿ã€ããã¹ãééãã¯ä¿®æ£ãããŠããŸããããããã®ããã€ãã¯ãŸã æ°ã¥ãããŠããŸããã ãããŠã
ãã®ãããªãšã©ãŒã®å€ãã®äŸã
ãã®èšäºã«ãããŸãã ãã®èšäºã¯ãééãã¯åå¿è
ã§ã¯ãªããè³æ Œã®ããããã°ã©ããŒãç¯ããããšãæ確ã«ç€ºããŠããŸãã
ãããã« ããã°ã©ããŒã¯ãæã£ããããã¿ã€ããã¹ãä¿®æ£ããã®ã«å€ãã®æéãè²»ãããŠããŸãã éçåæããŒã«ã¯ããã¹ã段éã®åã§ããããã®ãšã©ãŒã®äžéšãç¹å®ããããšã«ãããéçºè
ã®åŽåã倧å¹
ã«ç¯çŽã§ããŸãã
ç¥è©±3-åçåæã¯éçãããåªããŠãã
誀解3ïŒãvalgrind for C / C ++ã®ãããªããŒã«ã䜿çšããåçæ€èšŒã¯ãéçã³ãŒãåæãããã¯ããã«çç£çã§ããã
ã¹ããŒãã¡ã³ãã¯ããªãå¥åŠã§ãã åçããã³éçåæã¯ãäºãã«è£å®ãã2ã€ã®ç°ãªãæ¹æ³è«ã«ãããŸããã ããã°ã©ããŒã¯ãããç解ããŠããããã§ãã ããããåçåæã¯éçåæãããåªããŠãããšäœåºŠãè³ã«ããŸãã
éçã³ãŒãåæã®é·æããªã¹ãããŸãã
ãã¹ãŠã®ããã°ã©ã ãã©ã³ãã®èšºæå®éã®åçåæã§ã¯ãããã°ã©ã ã®ãã¹ãŠã®ãã©ã³ããã«ããŒããããšã¯ã§ããŸããã ãããã®èšèã®åŸãvalgrindãã¡ã³ã¯æ£ãããã¹ããè¡ãå¿
èŠããããšäž»åŒµããŸãã çè«çã«ã¯ã圌ãã¯æ£ããã§ãã ãããããããè¡ãããšãã人ã¯ã ãã§ããäœæ¥ã®è€éããšéãç解ããŠããŸãã å®éã«ã¯ãåªãããã¹ãã§ãããã°ã©ã ã³ãŒãã®80ïŒ
ããã«ããŒããŠããŸããã
ããã¯ãéæšæº/ç·æ¥äºæ
ãåŠçããã³ãŒãã»ã¯ã·ã§ã³ã§ç¹ã«é¡èã§ãã å€ããããžã§ã¯ãã䜿çšãããšããããã®å Žæã®éçã¢ãã©ã€ã¶ãŒã«ãã£ãŠã»ãšãã©ã®ãšã©ãŒãæ€åºãããŸãã ãã®çç±ã¯ããããžã§ã¯ããå€ãå Žåã§ãããããã®ãµã€ãã¯å®éã«ã¯ãã¹ããããŠããªãããã§ãã ç§ãæå³ããããšã瀺ãããã«ãéåžžã«çãäŸã瀺ããŸãïŒFCE Ultraãããžã§ã¯ãïŒïŒ
fp = fopenïŒnameã "wb"ïŒ;
int x = 0;
ifïŒïŒfpïŒ
int x = 1;
ãã¡ã€ã«ãéãããŠããªãå Žåããxããã©ã°ã¯1ãšçãããªããŸããã ããã°ã©ã ã§äœããããŸããããªããšããããããé©åãªãšã©ãŒã¡ãã»ãŒãžã®ä»£ããã«èœã¡ãããç¡æå³ãªã¡ãã»ãŒãžãåºãã®ã¯ããŸãã«ãã®ãããªãšã©ãŒã®ããã§ãã
æ¡åŒµæ§åçãªæ¹æ³ã䜿çšããŠå€§èŠæš¡ãªãããžã§ã¯ããå®æçã«ãã§ãã¯ããã«ã¯ãç¹å¥ãªã€ã³ãã©ã¹ãã©ã¯ãã£ãäœæããå¿
èŠããããŸãã ç¹å¥ãªãã¹ããå¿
èŠã§ãã ç°ãªãå
¥åããŒã¿ã䜿çšããŠãã¢ããªã±ãŒã·ã§ã³ã®è€æ°ã®ã€ã³ã¹ã¿ã³ã¹ã䞊è¡ããŠå®è¡ããå¿
èŠããããŸãã
éçåæã¯æ°åç°¡åã«ã¹ã±ãŒãªã³ã°ã§ããŸãã ååãšããŠãéç解æãå®è¡ããããã°ã©ã ã«å€æ°ã®ã³ã¢ãæã€ããã°ã©ã ãæäŸããã ãã§ååã§ãã
é«ã¬ãã«åæåçã¢ãã©ã€ã¶ãŒã«ã¯ãã©ã®é¢æ°ãã©ã®åŒæ°ã§åŒã³åºãããããç¥ã£ãŠãããšããå©ç¹ããããŸãã ãã®çµæã圌ã¯ã³ãŒã«ã®æ£ç¢ºãã確èªã§ããŸãã ã»ãšãã©ã®å Žåãéçåæã§ã¯ãããèŠã€ãåºããåŒæ°ã®å€ã確èªã§ããŸããã ããã¯ãã€ãã¹ã§ãã ãã ããéçåæã¯åçåæãããé«ãã¬ãã«ã®åæãå®è¡ããŸãã ãããŠããã«ããã圌ã¯åçåæã®èŠ³ç¹ããæ£ãããã®ãæ¢ãããšãã§ããŸãã ç°¡åãªäŸïŒReactOSãããžã§ã¯ãïŒïŒ
void Mapdesc ::èå¥ïŒREAL dest [MAXCOORDS] [MAXCOORDS]ïŒ
{
memsetïŒdestã0ãsizeofïŒdestïŒïŒ;
forïŒint i = 0; iïŒ= hcoords; i ++ïŒ
dest [i] [i] = 1.0;
}
åçåæã®èŠ³ç¹ããèŠããšãããã§ãã¹ãŠãé 調ã§ãã ããããéç解æã§ã¯
ã¢ã©ãŒã ã
鳎ããŸããããã¯ãé
åå
ã®éåžžã«å€ãã®ãã€ãããŒãã«ãªã»ãããããã®ã¯éåžžã«çãããããã§ãã
ãŸãã¯ãClangãããžã§ã¯ãã®å¥ã®äŸã次ã«ç€ºããŸãã
MapTy PerPtrTopDown;
MapTy PerPtrBottomUp;
void clearBottomUpPointersïŒïŒ{
PerPtrTopDown.clearïŒïŒ;
}
void clearTopDownPointersïŒïŒ{
PerPtrTopDown.clearïŒïŒ;
}
ããã§åçã¢ãã©ã€ã¶ãŒã¯äœãçãããšãã§ããŸããïŒ ãªãã éçã¢ãã©ã€ã¶ãŒã¯ãäœããééã£ãŠãããšçãå ŽåããããŸãã ããã§ã®ãšã©ãŒã¯ãclearBottomUpPointersïŒïŒã®å
éšã¯ãPerPtrBottomUp.clearïŒïŒ;ãã§ããå¿
èŠããããšããããšã§ãã
ç¥è©±4-ããã°ã©ããŒã¯éçã¢ãã©ã€ã¶ãŒã«ã«ãŒã«ãè¿œå ããã
ç¥è©±4ïŒãéçã¢ãã©ã€ã¶ãŒã¯ã«ã¹ã¿ã ã«ãŒã«ãè¿œå ã§ããã¯ãã§ãã ããã°ã©ããŒã¯ç¬èªã®ã«ãŒã«ãè¿œå ãããã®ã§ããã
ãããã圌ãã¯æãã§ããŸããã å®éã圌ãã¯ç¹å®ã®èšèªæ§é ãèŠã€ãããšããããã€ãã®åé¡ã解決ããããšèããŠããŸãã ãããŠãããã¯èšºæã«ãŒã«ã®äœæãšåãã§ã¯ãããŸããã
ç§ã¯ãã€ããèªåã®ã«ãŒã«ã®å®è£
ã¯ããã°ã©ããæããã®ã§ã¯ãªããšçããŸããã ãŸããããã°ã©ããŒã®èŠæ±ã«å¿ããŠã¢ãã©ã€ã¶ãŒéçºè
ã蚺æãå®è£
ããããšä»¥å€ã®ä»£æ¿æ段ã¯ãããŸããã§ããïŒ
ãã®ãããã¯ã«é¢ããèšäº ïŒã æè¿ãç§ã¯ããããªãŒã»ããã¥ãã³ãšå¯æ¥ã«è©±ããŸããã 圌ã¯ãIntelãœãããŠã§ã¢æ€èšŒããŒã«ã®ã³ã³ãã€ã©ãã¹ãããã³éçºã®è²¬ä»»è
ã§ãã 圌ã¯ãã®ãããã¯ã«å¯Ÿããç§ã®ç解ãåºããç§ãèããŠããã¢ã€ãã¢ãè¡šæããŸããããæçµçã§ã¯æ±ºããŠå®åŒåããŸããã§ããã
ããããªãŒã¯ãããã°ã©ããŒã蚺æã«ãŒã«ãäœæããªããšããç§ã®ä¿¡å¿µã確èªããŸããã ãã®çç±ã¯éåžžã«åçŽã§ã-ããã¯éåžžã«å°é£ã§ãã å€ãã®éçåæããŒã«ã«ã¯ãã«ãŒã«ã®ã»ãããæ¡åŒµããæ©èœããããŸãã ããããããã¯ã·ã§ãŒã®ããã«ããŸãã¯ããŒã«ã®äœæè
ã®äŸ¿å®ã®ããã«è¡ãããŸããã æ°ãã蚺æãéçºããããã«ããããã¯ãæ·±ãæãäžããŸãã çµéšã®ãªãæ奜家ããããåããªãã圌ã®èŠåããã»ãšãã©å®çšçãªå©çã¯ãããŸããã
ããã§åé¡ã®ç解ãçµãããŸããã è±å¯ãªçµéšãæã€ããããªãŒã¯ãããæ¡å€§ããŸããã ã€ãŸããç¶æ³ã¯æ¬¡ã®ããã«ãªããŸãã
ããã°ã©ããŒã¯ãã³ãŒãã®ãã¿ãŒã³/ãšã©ãŒãæ¬åœã«æ¢ããããšæã£ãŠããŸãã 圌ãã¯æ¬åœã«ãããå¿
èŠãšããŸãã ããšãã°ã人ã¯intããfloatãžã®ãã¹ãŠã®æ瀺çãªãã£ã¹ããèŠã€ããå¿
èŠããããŸãã ãã®åé¡ã¯ãgrepãªã©ã®ããŒã«ã䜿çšããŠè§£æ±ºããããšã¯ã§ããŸããã å®éããfloatïŒP-> FOOïŒïŒïŒããšãã圢åŒã®æ§é ã§ã¯ãFOOïŒïŒé¢æ°ãã©ã®åãè¿ããã¯äžæã§ãã ãã®æç¹ã§ãããã°ã©ããŒã¯ãéçã¢ãã©ã€ã¶ãŒã§ç¬èªã®ãã§ãã¯ãè¿œå ããããšã«ããããã®ãããªæ§é ã®æ€çŽ¢ãå®è£
ã§ãããšããçµè«ã«éããŸãã
ãããéèŠãªãã€ã³ãã§ãã 人éã¯ãç¬èªã®åæã«ãŒã«ãäœæããå¿
èŠã¯ãããŸããã 圌ã¯ç¹å®ã®åé¡ã解決ããå¿
èŠããããŸãã 圌ãæãã§ããã®ã¯ãéç解æã¡ã«ããºã ã®ç¹ã§éåžžã«å°ããªã¿ã¹ã¯ã§ãã ããã¯ãè»ã䜿ã£ãŠã©ã€ã¿ãŒããã¿ãã³ãç¹ç«ããã®ãšåãã§ãã
ãã®ãããç§ãšDmitryã¯ãã¢ãã©ã€ã¶ãŒãæäœããããã®APIããŠãŒã¶ãŒã«æäŸãããšããèãããµããŒãããŠããŸããã ããã¯éçºã®é¢ã§éåžžã«é£ããã¿ã¹ã¯ã§ãã ãããŠåæã«ã人ã¯ããã®1ïŒ
以äžã䜿çšããå¯èœæ§ã¯äœãã§ãã äžåçã«ã éçºè
ãæ¡åŒµã¢ãžã¥ãŒã«çšã®è€éãªAPIãäœæããããã«ãŒã«ãèšè¿°ããããã®ç¹å¥ãªèšèªãäœæããããããããããŠãŒã¶ãŒã®èŠæãå®è£
ããæ¹ãç°¡åã§å®äŸ¡ã§ãã
èªè
ã¯ããAPIã§éããšãæ©èœã®1ïŒ
ããéãããã誰ããæºè¶³ããã§ãããããšæ°ä»ãã§ãããã ã¯ããããã§ãã ãããã匷調ãã©ã®ããã«å€åããããèŠãŠãã ããã ã«ãŒã«ã®éçºãããå®éã«ã¯grepã«äŒŒãããŒã«ã§ãããããã°ã©ã ã³ãŒãã«é¢ããè¿œå æ
å ±ãããã°ååã§ãããšããçµè«ã«éããŸããã
ãã®ãããªããŒã«ã¯ãŸã ãããŸããã åé¡ã解決ãããå Žåã¯ãç§ã«æžããŠããã ããã°ãPVS-Studioã¢ãã©ã€ã¶ãŒã§å®è£
ãè©Šã¿ãŸãã ããšãã°ãæè¿ãæ瀺çãªå
å€æãèŠã€ããããã®ããã€ãã®é¡ããå®çŸããŸããïŒ
V2003 ã
V2004 ã
V2005 ã ãã®ãããªé¡ããå®çŸããããšã¯ããªãŒãã³ãªã€ã³ã¿ãŒãã§ãŒã¹ãäœæããŠç¶æãããããã¯ããã«ç°¡åã§ãã ããã¯ãŠãŒã¶ãŒèªèº«ã«ãšã£ãŠç°¡åã§ãã
ã¡ãªã¿ã«ããããããã®ãããªããŒã«ã¯ãæçµçã«ã€ã³ãã«C ++ã®ãã¬ãŒã ã¯ãŒã¯ã«ç»å Žããã§ãããã Dmitry Petuninã¯ãã³ãŒãæ§é ãšå€æ°ã®çš®é¡ã«é¢ããç¥èãåããgrepã®ãããªããŒã«ãäœæããå¯èœæ§ã«ã€ããŠè°è«ããŠãããšè¿°ã¹ãŸããã ããããããã¯æœè±¡çãªæ¹æ³ã§è°è«ãããŸããã æ¬åœã«äœæãããã©ããã¯ããããŸããã