Skip to content
Myr

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

12 files+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 lines
189{190 int err[8],*ep1 = err,*ep2 = err+4, *et;191 int ch,y;192193 // 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 lines
modified:stb_image.h+3 added-3 removed
5787 unmodified lines
5788 // Else if n is between -127 and -1 inclusive, copy the next byte -n+1 times.5789 // Else if n is 128, noop.5790 // Endloop57915792 // 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 );57955796 // Read the RLE data by channel.
554 unmodified lines
6351 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");63546355 // 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 lines
modified:stb_sprintf.h+1 added-1 removed
664 unmodified lines
665 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 lines
modified:stb_textedit.h+2 added-2 removed
686 unmodified lines
687// API cut: delete selection688static 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 lines
739 ++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 lines
modified:stb_tilemap_editor.h+3 added-3 removed
249 unmodified lines
250// 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 32
1990 unmodified lines
2249 STBTE__prop_float,2250 STBTE__prop_int,2251};22522253// 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 ]22552256#define STBTE__ID(n,p) ((n) + ((p)<<7))2257#define STBTE__ID2(n,p,q) STBTE__ID(n, ((p)<<12)+(q) )
619 unmodified lines
2877 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 lines
modified: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 lines
30913092// (internal) change the allocated length of the array3093#define stb_arr__grow(a,n) (stb_arr_check(a), stb_arrhead(a)->len += (n))30943095// 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)))31003101// 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))31043105// add N new uninitialized elements starting at index 'i'
5513 unmodified lines
8619} \8620 \8621static 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 lines
13800}1380113802// 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.13805static 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 lines
13815 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