Misc. comment typos
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Found via `codespell -q 3`
authored by luz.paz · committed by luz.paz · parent e6afb9c · Browse files · 12 files·+15 added−15 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
12 files+15 added−15 removed
- tests:+0 added−0 removed
- other:+15 added−15 removed
Provenance
- Commit
622b3ad- Tree
9fd1c13- Author
luz.paz <luzpaz@users.noreply.github.com>- Committer
luz.paz <luzpaz@users.noreply.github.com>- Parent
e6afb9c
12 files changed+15 added−15 removed
This commit is too large to show whole: its files are listed by path, without their changes.
modified:tests/prerelease/stb_lib.hnot shown
Its text is not shown, modified.
modified:tests/stb.cnot shown
Its text is not shown, modified.
modified:tools/unicode.cnot shown
Its text is not shown, modified.
modified:stb_dxt.h+1 added-1 removed
188 unmodified lines189 {190 int err[8],*ep1 = err,*ep2 = err+4, *et;191 int ch,y;192 193- // process channels seperately193+ // process channels separately194 for (ch=0; ch<3; ++ch) {195 unsigned char *bp = block+ch, *dp = dest+ch;196 unsigned char *quant = (ch == 1) ? stb__QuantGTab+8 : stb__QuantRBTab+8;197 STBD_MEMSET(err, 0, sizeof(err));531 unmodified linesmodified:stb_image.h+3 added-3 removed
5787 unmodified lines5788 // Else if n is between -127 and -1 inclusive, copy the next byte -n+1 times.5789 // Else if n is 128, noop.5790 // Endloop5791 5792- // The RLE-compressed data is preceeded by a 2-byte data count for each row in the data,5792+ // The RLE-compressed data is preceded by a 2-byte data count for each row in the data,5793 // which we're going to just skip.5794 stbi__skip(s, h * channelCount * 2 );5795 5796 // Read the RLE data by channel.554 unmodified lines6351 g->background = (stbi_uc *) stbi__malloc(4 * g->w * g->h); 6352 g->history = (stbi_uc *) stbi__malloc(g->w * g->h); 6353 if (g->out == 0) return stbi__errpuc("outofmem", "Out of memory");6354 6355- // image is treated as "tranparent" at the start - ie, nothing overwrites the current background; 6355+ // image is treated as "transparent" at the start - ie, nothing overwrites the current background; 6356 // background colour is only used for pixels that are not rendered first frame, after that "background"6357- // color refers to teh color that was there the previous frame. 6357+ // color refers to the color that was there the previous frame. 6358 memset( g->out, 0x00, 4 * g->w * g->h ); 6359 memset( g->background, 0x00, 4 * g->w * g->h ); // state of the background (starts transparent)6360 memset( g->history, 0x00, g->w * g->h ); // pixels that were affected previous frame6361 first_frame = 1; 1101 unmodified linesmodified:stb_sprintf.h+1 added-1 removed
664 unmodified lines665 else if (pr)666 --pr; // when using %e, there is one digit before the decimal667 goto doexpfromg;668 }669- // this is the insane action to get the pr to match %g sematics for %f669+ // this is the insane action to get the pr to match %g semantics for %f670 if (dp > 0) {671 pr = (dp < (stbsp__int32)l) ? l - dp : 0;672 } else {673 pr = -dp + ((pr > (stbsp__int32)l) ? l : pr);1160 unmodified linesmodified:stb_textedit.h+2 added-2 removed
686 unmodified lines687 // API cut: delete selection688 static int stb_textedit_cut(STB_TEXTEDIT_STRING *str, STB_TexteditState *state)689 {690 if (STB_TEXT_HAS_SELECTION(state)) {691- stb_textedit_delete_selection(str,state); // implicity clamps691+ stb_textedit_delete_selection(str,state); // implicitly clamps692 state->has_preferred_x = 0;693 return 1;694 }695 return 0;43 unmodified lines739 ++state->cursor;740 state->has_preferred_x = 0;741 }742 } else {743- stb_textedit_delete_selection(str,state); // implicity clamps743+ stb_textedit_delete_selection(str,state); // implicitly clamps744 if (STB_TEXTEDIT_INSERTCHARS(str, state->cursor, &ch, 1)) {745 stb_text_makeundo_insert(state, state->cursor, 1);746 ++state->cursor;747 state->has_preferred_x = 0;657 unmodified linesmodified:stb_tilemap_editor.h+3 added-3 removed
249 unmodified lines250 // ADDITIONAL CONFIGURATION251 //252 // The following symbols set static limits which determine how much253 // memory will be allocated for the editor. You can override them254-// by making similiar definitions, but memory usage will increase.254+// by making similar definitions, but memory usage will increase.255 //256 // #define STBTE_MAX_TILEMAP_X 200 // max 4096257 // #define STBTE_MAX_TILEMAP_Y 200 // max 4096258 // #define STBTE_MAX_LAYERS 8 // max 321990 unmodified lines2249 STBTE__prop_float,2250 STBTE__prop_int,2251 };2252 2253-// id is: [ 24-bit data : 7-bit identifer ]2253+// id is: [ 24-bit data : 7-bit identifier ]2254 // map id is: [ 12-bit y : 12 bit x : 7-bit identifier ]2255 2256 #define STBTE__ID(n,p) ((n) + ((p)<<7))2257 #define STBTE__ID2(n,p,q) STBTE__ID(n, ((p)<<12)+(q) )619 unmodified lines2877 if (k == NULL || k->x < 0)2878 stbte__set_link(tm, mapx, mapy, -1, -1, STBTE__undo_record);2879 else if (moved || (copied && written)) {2880 // if we move the target, we update to point to the new target;2881- // or, if we copy the target and the source is part ofthe copy, then update to new target2881+ // or, if we copy the target and the source is part of the copy, then update to new target2882 int x = k->x + (stbte__ui.drag_dest_x - stbte__ui.drag_x);2883 int y = k->y + (stbte__ui.drag_dest_y - stbte__ui.drag_y);2884 if (!(x >= 0 && y >= 0 && x < tm->max_x && y < tm->max_y))2885 x = -1, y = -1;1287 unmodified linesmodified:stb_truetype.hnot shown
Its text is not shown, modified.
modified:stb_vorbis.cnot shown
Its text is not shown, modified.
modified:stb_voxel_render.hnot shown
Its text is not shown, modified.
modified:stb.h+5 added-5 removed
3090 unmodified lines3091 3092 // (internal) change the allocated length of the array3093 #define stb_arr__grow(a,n) (stb_arr_check(a), stb_arrhead(a)->len += (n))3094 3095-// add N new unitialized elements to the end of the array3095+// add N new uninitialized elements to the end of the array3096 #define stb_arr__addn(a,n) /*lint --e(826)*/ \3097 ((stb_arr_len(a)+(n) > stb_arrcurmax(a)) \3098 ? (stb__arr_addlen((void **) &(a),sizeof(*a),(n)),0) \3099 : ((stb_arr__grow(a,n), 0)))3100 3101-// add N new unitialized elements to the end of the array, and return3101+// add N new uninitialized elements to the end of the array, and return3102 // a pointer to the first new one3103 #define stb_arr_addn(a,n) (stb_arr__addn((a),n),(a)+stb_arr_len(a)-(n))3104 3105 // add N new uninitialized elements starting at index 'i'5513 unmodified lines8619 } \8620 \8621 static void STB_(FUNCNAME,_quicksort)(TYPE *p, int n) \8622 { \8623- /* threshhold for transitioning to insertion sort */ \8623+ /* threshold for transitioning to insertion sort */ \8624 while (n > 12) { \8625 TYPE *a,*b,t; \8626 int c01,c12,c,m,i,j; \8627 \5172 unmodified lines13800 }13801 13802 // if an id is a reference to an outer lexical scope, this13803 // function returns the "name" of it, and updates the stack13804-// structures to make sure the names are propogated in.13804+// structures to make sure the names are propagated in.13805 static int stu__nonlocal_id(stua_obj var_obj)13806 {13807 stua_obj dummy, var = var_obj;13808 int i, n = stb_arr_len(func_stack), j,k;6 unmodified lines13815 j = i; // need to access variable from j'th frame13816 for (i=0; i < stb_arr_len(stu__pfunc.non_local_refs); ++i)13817 if (stu__pfunc.non_local_refs[i] == j) return j-n;13818 stb_arr_push(stu__pfunc.non_local_refs, j-n);13819- // now make sure all the parents propogate it down13819+ // now make sure all the parents propagate it down13820 for (k=n-1; k > 1; --k) {13821 if (j-k >= 0) return j-n; // comes direct from this parent13822 for(i=0; i < stb_arr_len(func_stack[k].non_local_refs); ++i)13823 if (func_stack[k].non_local_refs[i] == j-k)582 unmodified lines