Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for Barnes (0.19 sec)

  1. src/archive/tar/strconv.go

    			b = append(b, byte(c))
    		}
    	}
    	return string(b)
    }
    
    type parser struct {
    	err error // Last error seen
    }
    
    type formatter struct {
    	err error // Last error seen
    }
    
    // parseString parses bytes as a NUL-terminated C-style string.
    // If a NUL byte is not found then the whole slice is returned as a string.
    func (*parser) parseString(b []byte) string {
    	if i := bytes.IndexByte(b, 0); i >= 0 {
    		return string(b[:i])
    Go
    - Registered: Tue Apr 16 11:13:10 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/arch/arm.go

    	if prog.As == arm.AB {
    		prog.As = bcode[(bits^arm.C_SCOND_XOR)&0xf]
    		bits = (bits &^ 0xf) | arm.C_SCOND_NONE
    	}
    	prog.Scond = bits
    	return true
    }
    
    // ParseARMCondition parses the conditions attached to an ARM instruction.
    // The input is a single string consisting of period-separated condition
    // codes, such as ".P.W". An initial period is ignored.
    func ParseARMCondition(cond string) (uint8, bool) {
    Go
    - Registered: Tue Apr 16 11:13:10 GMT 2024
    - Last Modified: Fri Nov 18 17:59:44 GMT 2022
    - 6.1K bytes
    - Viewed (0)
  3. src/cmd/cgo/gcc.go

    		if len(preambleErrors) > 0 {
    			error_(token.NoPos, "\n%s errors for preamble:\n%s", gccBaseCmd[0], preambleErrors)
    		}
    
    		fatalf("unresolved names")
    	}
    
    	return needType
    }
    
    // loadDWARF parses the DWARF debug information generated
    // by gcc to learn the details of the constants, variables, and types
    // being referred to as C.xxx.
    func (p *Package) loadDWARF(f *File, conv *typeConv, names []*Name) {
    Go
    - Registered: Tue Apr 16 11:13:10 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/parse.go

    		ext = tok.String()
    	}
    	if p.peek() == lex.LSH {
    		// parses left shift amount applied after extension: <<Amount
    		p.get(lex.LSH)
    		tok := p.get(scanner.Int)
    		amount, err := strconv.ParseInt(tok.String(), 10, 16)
    		if err != nil {
    			p.errorf("parsing left shift amount: %s", err)
    		}
    		num = int16(amount)
    	} else if p.peek() == '[' {
    		// parses an element: [Index]
    		p.get('[')
    		tok := p.get(scanner.Int)
    Go
    - Registered: Tue Apr 16 11:13:10 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/lex/input.go

    	"cmd/internal/objabi"
    	"cmd/internal/src"
    )
    
    // Input is the main input: a stack of readers and some macro definitions.
    // It also handles #include processing (by pushing onto the input stack)
    // and parses and instantiates macro definitions.
    type Input struct {
    	Stack
    	includes        []string
    	beginningOfLine bool
    	ifdefStack      []bool
    	macros          map[string]*Macro
    Go
    - Registered: Tue Apr 16 11:13:10 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/lex/lex_test.go

    		"define without value",
    		"#define A",
    		"",
    	},
    	{
    		"macro without arguments",
    		"#define A() 1234\n" + "A()\n",
    		"1234.\n",
    	},
    	{
    		"macro with just parens as body",
    		"#define A () \n" + "A\n",
    		"(.).\n",
    	},
    	{
    		"macro with parens but no arguments",
    		"#define A (x) \n" + "A\n",
    		"(.x.).\n",
    	},
    	{
    		"macro with arguments",
    		"#define A(x, y, z) x+z+y\n" + "A(1, 2, 3)\n",
    		"1.+.3.+.2.\n",
    Go
    - Registered: Tue Apr 16 11:13:10 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  7. src/cmd/cgo/ast.go

    // attached to the import "C" comment, a list of references to C.xxx,
    // a list of exported functions, and the actual AST, to be rewritten and
    // printed.
    func (f *File) ParseGo(abspath string, src []byte) {
    	// Two different parses: once with comments, once without.
    	// The printer is not good enough at printing comments in the
    	// right place when we start editing the AST behind its back,
    	// so we use ast1 to look for the doc comments on import "C"
    Go
    - Registered: Tue Apr 16 11:13:10 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  8. src/cmd/cgo/doc.go

    	const char __cgodebug_str__10[] = s10;
    	const unsigned long long __cgodebug_strlen__10 = sizeof(s10)-1;
    
    and again invokes the system C compiler, to produce an object file
    containing debug information. Cgo parses the DWARF debug information
    for __cgo__N to learn the type of each identifier. (The types also
    distinguish functions from global variables.) Cgo reads the constant
    values from the __cgodebug_* from the object file's data segment.
    Go
    - Registered: Tue Apr 16 11:13:10 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  9. doc/asm.html

    One is in constant evaluation.
    Constant expressions in the assembler are parsed using Go's operator
    precedence, not the C-like precedence of the original.
    Thus <code>3&amp;1&lt;&lt;2</code> is 4, not 0—it parses as <code>(3&amp;1)&lt;&lt;2</code>
    not <code>3&amp;(1&lt;&lt;2)</code>.
    Also, constants are always evaluated as 64-bit unsigned integers.
    Thus <code>-2</code> is not the integer value minus two,
    HTML
    - Registered: Tue Apr 16 11:13:10 GMT 2024
    - Last Modified: Tue Nov 28 19:15:27 GMT 2023
    - 36.3K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/lex/slice.go

    	// but be prepared.
    	s.base = base
    }
    
    func (s *Slice) Line() int {
    	return s.line
    }
    
    func (s *Slice) Col() int {
    	// TODO: Col is only called when defining a macro and all it cares about is increasing
    	// position to discover whether there is a blank before the parenthesis.
    	// We only get here if defining a macro inside a macro.
    	// This imperfect implementation means we cannot tell the difference between
    Go
    - Registered: Tue Apr 16 11:13:10 GMT 2024
    - Last Modified: Thu Jun 29 22:49:50 GMT 2023
    - 1.6K bytes
    - Viewed (0)
Back to top