mirror of
				https://github.com/jart/cosmopolitan.git
				synced 2025-10-26 11:10:58 +00:00 
			
		
		
		
	WIP: Correct all typos (#498)
This commit is contained in:
		
							parent
							
								
									98254a7c1f
								
							
						
					
					
						commit
						ed205e98a1
					
				
					 79 changed files with 162 additions and 162 deletions
				
			
		|  | @ -10,7 +10,7 @@ | |||
| #include "libc/log/log.h" | ||||
| 
 | ||||
| /**
 | ||||
|  * Automatically launchs GDB Debugger TUI during crash. | ||||
|  * Automatically launches GDB Debugger TUI during crash. | ||||
|  * | ||||
|  * Run the following inside a terminal: | ||||
|  * | ||||
|  |  | |||
|  | @ -23,7 +23,7 @@ | |||
|  * | ||||
|  * On supported platforms, this will cause GDB to automatically attach. | ||||
|  * The nice thing about this, is you can start stepping through your | ||||
|  * code at the precice instruction where the interrupt happened. See | ||||
|  * code at the precise instruction where the interrupt happened. See | ||||
|  * `libc/log/attachdebugger.c` to see how it works. | ||||
|  * | ||||
|  * If you wish to suppress the auto-GDB behavior, then: | ||||
|  |  | |||
|  | @ -539,7 +539,7 @@ void editorUpdateSyntax(erow *row) { | |||
|     i++; | ||||
|   } | ||||
| 
 | ||||
|   /* Propagate syntax change to the next row if the open commen
 | ||||
|   /* Propagate syntax change to the next row if the open comment
 | ||||
|    * state changed. This may recursively affect all the following rows | ||||
|    * in the file. */ | ||||
|   int oc = editorRowHasOpenComment(row); | ||||
|  | @ -745,7 +745,7 @@ void editorInsertChar(int c) { | |||
|   erow *row = (filerow >= E.numrows) ? NULL : &E.row[filerow]; | ||||
| 
 | ||||
|   /* If the row where the cursor is currently located does not exist in our
 | ||||
|    * logical representaion of the file, add enough empty rows as needed. */ | ||||
|    * logical representation of the file, add enough empty rows as needed. */ | ||||
|   if (!row) { | ||||
|     while (E.numrows <= filerow) editorInsertRow(E.numrows, "", 0); | ||||
|   } | ||||
|  | @ -920,7 +920,7 @@ void editorRefreshScreen(void) { | |||
|         char welcome[80]; | ||||
|         int welcomelen = | ||||
|             snprintf(welcome, sizeof(welcome), | ||||
|                      "Kilo editor -- verison %s\e[0K\r\n", KILO_VERSION); | ||||
|                      "Kilo editor -- version %s\e[0K\r\n", KILO_VERSION); | ||||
|         int padding = (E.screencols - welcomelen) / 2; | ||||
|         if (padding) { | ||||
|           abAppend(&ab, "~", 1); | ||||
|  |  | |||
|  | @ -41,7 +41,7 @@ EXAMPLES_PACKAGE_LIB_A = o/$(MODE)/examples/package/lib/lib.a | |||
| EXAMPLES_PACKAGE_LIB_ARTIFACTS += EXAMPLES_PACKAGE_LIB_A | ||||
| 
 | ||||
| # Build configs might seem somewhat complicated. Rest assured they're
 | ||||
| # mostly maintainence free. That's largely thanks to how we wildcard.
 | ||||
| # mostly maintenance free. That's largely thanks to how we wildcard.
 | ||||
| EXAMPLES_PACKAGE_LIB_A_FILES := $(wildcard examples/package/lib/*) | ||||
| EXAMPLES_PACKAGE_LIB_A_HDRS = $(filter %.h,$(EXAMPLES_PACKAGE_LIB_A_FILES)) | ||||
| 
 | ||||
|  |  | |||
|  | @ -676,7 +676,7 @@ struct redirtab { | |||
|  * We enclose jmp_buf in a structure so that we can declare pointers to | ||||
|  * jump locations. The global variable handler contains the location to | ||||
|  * jump to when an exception occurs, and the global variable exception | ||||
|  * contains a code identifying the exeception. To implement nested | ||||
|  * contains a code identifying the exception. To implement nested | ||||
|  * exception handlers, the user should save the value of handler on | ||||
|  * entry to an inner scope, set handler to point to a jmploc structure | ||||
|  * for the inner scope, and restore handler on exit from the scope. | ||||
|  | @ -1953,7 +1953,7 @@ wontreturn static void varunset(const char *end, const char *var_, const char *u | |||
| } | ||||
| 
 | ||||
| /*
 | ||||
|  * Convert a string into an integer of type int64.  Alow trailing spaces. | ||||
|  * Convert a string into an integer of type int64.  Allow trailing spaces. | ||||
|  */ | ||||
| static int64_t atomax(const char *s, int base) { | ||||
|   char *p; | ||||
|  | @ -6653,7 +6653,7 @@ static struct job *vforkexec(union node *n, char **argv, const char *path, int i | |||
|  * the interactive program catches interrupts, the user doesn't want | ||||
|  * these interrupts to also abort the loop.  The approach we take here | ||||
|  * is to have the shell ignore interrupt signals while waiting for a | ||||
|  * forground process to terminate, and then send itself an interrupt | ||||
|  * foreground process to terminate, and then send itself an interrupt | ||||
|  * signal if the child process was terminated by an interrupt signal. | ||||
|  * Unfortunately, some programs want to do a bit of cleanup and then | ||||
|  * exit on interrupt; unless these processes terminate themselves by | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue