mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 11:52:24 -05:00 
			
		
		
		
	update modernc.org/sqlite to v1.37.0-concurrrency-workaround (#3958)
This commit is contained in:
		
					parent
					
						
							
								9c31e213ca
							
						
					
				
			
			
				commit
				
					
						fdf23a91de
					
				
			
		
					 64 changed files with 1070 additions and 8220 deletions
				
			
		
							
								
								
									
										23
									
								
								vendor/modernc.org/libc/libc_musl.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										23
									
								
								vendor/modernc.org/libc/libc_musl.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -229,29 +229,6 @@ func CString(s string) (uintptr, error) { | |||
| 	return p, nil | ||||
| } | ||||
| 
 | ||||
| // GoBytes returns a byte slice from a C char* having length len bytes. | ||||
| func GoBytes(s uintptr, len int) []byte { | ||||
| 	return unsafe.Slice((*byte)(unsafe.Pointer(s)), len) | ||||
| } | ||||
| 
 | ||||
| // GoString returns the value of a C string at s. | ||||
| func GoString(s uintptr) string { | ||||
| 	if s == 0 { | ||||
| 		return "" | ||||
| 	} | ||||
| 
 | ||||
| 	var buf []byte | ||||
| 	for { | ||||
| 		b := *(*byte)(unsafe.Pointer(s)) | ||||
| 		if b == 0 { | ||||
| 			return string(buf) | ||||
| 		} | ||||
| 
 | ||||
| 		buf = append(buf, b) | ||||
| 		s++ | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
| func mustMalloc(sz Tsize_t) (r uintptr) { | ||||
| 	if r = Xmalloc(nil, sz); r != 0 || sz == 0 { | ||||
| 		return r | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue