Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for preamble (0.55 sec)

  1. src/cmd/cgo/ast.go

    						// but we double check here just to be sure.
    						fatalf("internal error: ParseGo: abspath contains unexpected newline character: %q", abspath)
    					}
    					f.Preamble += fmt.Sprintf("#line %d %q\n", sourceLine(cg), abspath)
    					f.Preamble += commentText(cg) + "\n"
    					f.Preamble += "#line 1 \"cgo-generated-wrapper\"\n"
    				}
    			}
    
    		case *ast.FuncDecl:
    			// Also, reject attempts to declare methods on C.T or *C.T.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 16:54:27 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  2. src/cmd/cgo/doc.go

    as C.stdout, or functions such as C.putchar.
    
    If the import of "C" is immediately preceded by a comment, that
    comment, called the preamble, is used as a header when compiling
    the C parts of the package. For example:
    
    	// #include <stdio.h>
    	// #include <errno.h>
    	import "C"
    
    The preamble may contain any C code, including function and variable
    declarations and definitions. These may then be referred to from Go
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 17:12:16 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/MultipartReaderTest.kt

          parts.nextPart()
        }.also { expected ->
          assertThat(expected).hasMessage("expected at least 1 part")
        }
      }
    
      @Test fun `skip preamble`() {
        val multipart =
          """
          |this is the preamble! it is invisible to application code
          |
          |--simple boundary
          |
          |abcd
          |--simple boundary--
          """.trimMargin()
            .replace("\n", "\r\n")
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  4. src/internal/coverage/decodecounter/decodecounterfile.go

    		return nil, err
    	}
    	// Seek back to just past the file header.
    	hsz := int64(unsafe.Sizeof(cdr.hdr))
    	if _, err := cdr.mr.Seek(hsz, io.SeekStart); err != nil {
    		return nil, err
    	}
    	// Read preamble for first segment.
    	if err := cdr.readSegmentPreamble(); err != nil {
    		return nil, err
    	}
    	return cdr, nil
    }
    
    func checkMagic(v [4]byte) bool {
    	g := coverage.CovCounterMagic
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 27 15:29:54 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/inline/inlheur/funcprops_test.go

    		t:  t,
    		p:  path,
    		ln: 1,
    	}
    	// consume header comment until preamble delimiter.
    	found := false
    	for dr.scan() {
    		if dr.curLine() == preambleDelimiter {
    			found = true
    			break
    		}
    	}
    	if !found {
    		return nil, nil, fmt.Errorf("malformed testcase file %s, missing preamble delimiter", path)
    	}
    	res := []fnInlHeur{}
    	csres := []encodedCallSiteTab{}
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:25 UTC 2023
    - 15K bytes
    - Viewed (0)
  6. src/cmd/covdata/dump.go

    	// File to which we will write text format output, if enabled.
    	textfmtoutf *os.File
    
    	// Total and covered statements (used by "debugdump" subcommand).
    	totalStmts, coveredStmts int
    
    	// Records whether preamble has been emitted for current pkg
    	// (used when in "debugdump" mode)
    	preambleEmitted bool
    }
    
    func (d *dstate) Usage(msg string) {
    	if len(msg) > 0 {
    		fmt.Fprintf(os.Stderr, "error: %s\n", msg)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 11:36:57 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  7. src/internal/coverage/defs.go

    // counters data from a single execution of a coverage-instrumented
    // program. Following the segment header will be the string table and
    // args table, and then (possibly) padding bytes to bring the byte
    // size of the preamble up to a multiple of 4. Immediately following
    // that will be the counter payloads.
    //
    // The "args" section of a segment is used to store annotations
    // describing where the counter data came from; this section is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 14 12:51:16 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  8. src/cmd/go/internal/generate/generate.go

    // The initial //go:generate element is present in line.
    func (g *Generator) split(line string) []string {
    	// Parse line, obeying quoted strings.
    	var words []string
    	line = line[len("//go:generate ") : len(line)-1] // Drop preamble and final newline.
    	// There may still be a carriage return.
    	if len(line) > 0 && line[len(line)-1] == '\r' {
    		line = line[:len(line)-1]
    	}
    	// One (possibly quoted) word per iteration.
    Words:
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 29 19:39:24 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  9. LICENSE

    (This is the first released version of the Lesser GPL.  It also counts
     as the successor of the GNU Library Public License, version 2, hence
     the version number 2.1.)
    
                                Preamble
    
      The licenses for most software are designed to take away your
    freedom to share and change it.  By contrast, the GNU General Public
    Licenses are intended to guarantee your freedom to share and change
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Mon Jan 18 20:25:38 UTC 2016
    - 25.8K bytes
    - Viewed (0)
  10. LICENSE

     Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
     Everyone is permitted to copy and distribute verbatim copies
     of this license document, but changing it is not allowed.
    
                                Preamble
    
      The GNU Affero General Public License is a free, copyleft license for
    software and other kinds of works, specifically designed to ensure
    cooperation with the community in the case of network server software.
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 33.7K bytes
    - Viewed (0)
Back to top