Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for expandSrcDir (0.14 sec)

  1. src/cmd/go/internal/modindex/build.go

    		default:
    			return fmt.Errorf("%s: invalid #cgo verb: %s", filename, orig)
    		}
    	}
    	return nil
    }
    
    // expandSrcDir expands any occurrence of ${SRCDIR}, making sure
    // the result is safe for the shell.
    func expandSrcDir(str string, srcdir string) (string, bool) {
    	// "\" delimited paths cause safeCgoName to fail
    	// so convert native paths with a different delimiter
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 17:39:23 UTC 2023
    - 26.8K bytes
    - Viewed (0)
  2. src/go/build/build_test.go

    	{"$SRCDIR is missing braces", "$SRCDIR is missing braces"},
    }
    
    func TestExpandSrcDir(t *testing.T) {
    	for _, test := range expandSrcDirTests {
    		output, _ := expandSrcDir(test.input, expandSrcDirPath)
    		if output != test.expected {
    			t.Errorf("%q expands to %q with SRCDIR=%q when %q is expected", test.input, output, expandSrcDirPath, test.expected)
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 15 16:24:01 UTC 2023
    - 23.9K bytes
    - Viewed (0)
  3. src/go/build/build.go

    		default:
    			return fmt.Errorf("%s: invalid #cgo verb: %s", filename, orig)
    		}
    	}
    	return nil
    }
    
    // expandSrcDir expands any occurrence of ${SRCDIR}, making sure
    // the result is safe for the shell.
    func expandSrcDir(str string, srcdir string) (string, bool) {
    	// "\" delimited paths cause safeCgoName to fail
    	// so convert native paths with a different delimiter
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
Back to top