Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for break (0.14 sec)

  1. src/bufio/scan.go

    			if n < 0 || len(s.buf)-s.end < n {
    				s.setErr(ErrBadReadCount)
    				break
    			}
    			s.end += n
    			if err != nil {
    				s.setErr(err)
    				break
    			}
    			if n > 0 {
    				s.empties = 0
    				break
    			}
    			loop++
    			if loop > maxConsecutiveEmptyReads {
    				s.setErr(io.ErrNoProgress)
    				break
    			}
    		}
    	}
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  2. src/cmd/asm/main.go

    			pList := new(obj.Plist)
    			pList.Firstpc, ok = parser.Parse()
    			// reports errors to parser.Errorf
    			if ok {
    				obj.Flushplist(ctxt, pList, nil)
    			}
    		}
    		if !ok {
    			failedFile = f
    			break
    		}
    	}
    	if ok && !*flags.SymABIs {
    		ctxt.NumberSyms()
    		obj.WriteObjFile(ctxt, buf)
    	}
    	if !ok || diag {
    		if failedFile != "" {
    			log.Printf("assembly of %s failed", failedFile)
    		} else {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 2.7K bytes
    - Viewed (0)
  3. doc/godebug.md

    Go's emphasis on backwards compatibility is one of its key strengths.
    There are, however, times when we cannot maintain complete compatibility.
    If code depends on buggy (including insecure) behavior,
    then fixing the bug will break that code.
    New features can also have similar impacts:
    enabling the HTTP/2 use by the HTTP client broke programs
    connecting to servers with buggy HTTP/2 implementations.
    These kinds of changes are unavoidable and
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 16 17:29:58 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  4. src/archive/zip/reader.go

    	// the file count modulo 65536 is incorrect.
    	for {
    		f := &File{zip: r, zipr: rdr}
    		err = readDirectoryHeader(f, buf)
    		if err == ErrFormat || err == io.ErrUnexpectedEOF {
    			break
    		}
    		if err != nil {
    			return err
    		}
    		f.headerOffset += r.baseOffset
    		r.File = append(r.File, f)
    	}
    	if uint16(len(r.File)) != uint16(end.directoryRecords) { // only compare 16 bits here
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  5. misc/wasm/wasm_exec.js

    				switch (typeof v) {
    					case "object":
    						if (v !== null) {
    							typeFlag = 1;
    						}
    						break;
    					case "string":
    						typeFlag = 2;
    						break;
    					case "symbol":
    						typeFlag = 3;
    						break;
    					case "function":
    						typeFlag = 4;
    						break;
    				}
    				this.mem.setUint32(addr + 4, nanHead | typeFlag, true);
    				this.mem.setUint32(addr, id, true);
    			}
    
    JavaScript
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon May 22 17:47:47 GMT 2023
    - 16.3K bytes
    - Viewed (1)
  6. src/cmd/cgo/gcc.go

    				}
    				break
    			}
    			error_(r.Pos(), "call of non-function C.%s", fixGo(r.Name.Go))
    			break
    		}
    		if r.Context == ctxCall2 {
    			if r.Name.Go == "_CMalloc" {
    				error_(r.Pos(), "no two-result form for C.malloc")
    				break
    			}
    			// Invent new Name for the two-result function.
    			n := f.Name["2"+r.Name.Go]
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/lex/tokenizer.go

    }
    
    func (t *Tokenizer) Next() ScanToken {
    	s := t.s
    	for {
    		t.tok = ScanToken(s.Scan())
    		if t.tok != scanner.Comment {
    			break
    		}
    		text := s.TokenText()
    		t.line += strings.Count(text, "\n")
    		if constraint.IsGoBuild(text) {
    			t.tok = BuildComment
    			break
    		}
    	}
    	switch t.tok {
    	case '\n':
    		t.line++
    	case '-':
    		if s.Peek() == '>' {
    			s.Next()
    			t.tok = ARR
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Aug 04 20:35:21 GMT 2022
    - 3K bytes
    - Viewed (0)
  8. src/bytes/buffer_test.go

    func empty(t *testing.T, testname string, buf *Buffer, s string, fub []byte) {
    	check(t, testname+" (empty 1)", buf, s)
    
    	for {
    		n, err := buf.Read(fub)
    		if n == 0 {
    			break
    		}
    		if err != nil {
    			t.Errorf(testname+" (empty 2): err should always be nil, found err == %s", err)
    		}
    		s = s[n:]
    		check(t, testname+" (empty 3)", buf, s)
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  9. src/bufio/bufio_test.go

    		}
    	}
    	return n, err
    }
    
    // Call ReadByte to accumulate the text of a file
    func readBytes(buf *Reader) string {
    	var b [1000]byte
    	nb := 0
    	for {
    		c, err := buf.ReadByte()
    		if err == io.EOF {
    			break
    		}
    		if err == nil {
    			b[nb] = c
    			nb++
    		} else if err != iotest.ErrTimeout {
    			panic("Data: " + err.Error())
    		}
    	}
    	return string(b[0:nb])
    }
    
    func TestReaderSimple(t *testing.T) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/test/issue1435.go

    				// resurfaced in a different process.
    				if line != expectedProc {
    					break
    				}
    				// Fall through in the unlikely case
    				// that filter at some point is
    				// "Pid:\t".
    			}
    			if strings.HasPrefix(line, filter) {
    				if line == expected {
    					foundAThread = true
    					break
    				}
    				if filter == "Groups:" && strings.HasPrefix(line, "Groups:\t") {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Jul 28 21:31:41 GMT 2023
    - 7.5K bytes
    - Viewed (0)
Back to top