Hello Argyrios & cfe-commits, Here's the first step of the refactoring. Important points are:
(1) the name of the function -- we can repaint it whatever color you like; (2) a slight behavior change. We used to differentiate NULL and empty "" strings. This does not make a lot of sense (and the difference was never documented), so I chose to normalize to empty "" strings, since this eliminates a NULL check in the user code. (But existing code is already polluted with those checks...) Dmitri -- main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if (j){printf("%d\n",i);}}} /*Dmitri Gribenko <griboz...@gmail.com>*/
cxstring-create-empty-v1.patch
Description: Binary data
_______________________________________________ cfe-commits mailing list cfe-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits