Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 38 for exclude (1.06 sec)

  1. src/cmd/cgo/internal/test/issue26213/jni.h

    // Copyright 2018 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // It's going to be hard to include a whole real JVM to test this.
    // So we'll simulate a really easy JVM using just the parts we need.
    
    // This is the relevant part of jni.h.
    
    // On Android NDK16, jobject is defined like this in C and C++
    typedef void* jobject;
    
    typedef jobject jclass;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 874 bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testcarchive/testdata/main_unix.c

    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #include <signal.h>
    #include <stdint.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    
    struct sigaction sa;
    struct sigaction osa;
    
    static void (*oldHandler)(int, siginfo_t*, void*);
    
    static void handler(int signo, siginfo_t* info, void* ctxt) {
    	if (oldHandler) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testcshared/testdata/main0.c

    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #include <stdint.h>
    #include <stdio.h>
    
    #include "p.h"
    #include "libgo.h"
    
    // Tests libgo.so to export the following functions.
    //   int8_t DidInitRun();
    //   int8_t DidMainRun();
    //   int32_t FromPkg();
    //   uint32_t Divu(uint32_t, uint32_t);
    int main(void) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testcarchive/testdata/main6.c

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test that using the Go profiler in a C program does not crash.
    
    #include <stddef.h>
    #include <sys/time.h>
    
    #include "libgo6.h"
    
    int main(int argc, char **argv) {
    	struct timeval tvstart, tvnow;
    	int diff;
    
    	gettimeofday(&tvstart, NULL);
    
    	go_start_profile();
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 830 bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/test/issue4339.c

    // Copyright 2013 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #include <stdio.h>
    #include "issue4339.h"
    
    static void
    impl(void)
    {
    	//printf("impl\n");
    }
    
    Issue4339 exported4339 = {"bar", impl};
    
    void
    handle4339(Issue4339 *x)
    {
    	//printf("handle\n");
    	x->bar();
    	//printf("done\n");
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 382 bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testplugin/testdata/issue25756/plugin/c-life.c

    // Copyright 2010 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #include <assert.h>
    #include "life.h"
    #include "_cgo_export.h"
    
    const int MYCONST = 0;
    
    // Do the actual manipulation of the life board in C.  This could be
    // done easily in Go, we are just using C for demonstration
    // purposes.
    void
    Step(int x, int y, int *a, int *n)
    {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/issue8517_windows.c

    // Copyright 2014 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #include "windows.h"
    
    extern void testHandleLeaksCallback();
    
    DWORD WINAPI testHandleLeaksFunc(LPVOID lpThreadParameter)
    {
    	int i;
    	for(i = 0; i < 100; i++) {
    		testHandleLeaksCallback();
    	}
    	return 0;
    }
    
    void testHandleLeaks()
    {
    	HANDLE h;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 517 bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testcarchive/testdata/main9.c

    // Copyright 2023 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #include "libgo9.h"
    
    void use(int *x) { (*x)++; }
    
    void callGoFWithDeepStack() {
    	int x[10000];
    
    	use(&x[0]);
    	use(&x[9999]);
    
    	GoF();
    
    	use(&x[0]);
    	use(&x[9999]);
    }
    
    int main() {
    	GoF();                  // call GoF without using much stack
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 460 bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/test/sigprocmask.c

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build !windows
    
    #include <errno.h>
    #include <signal.h>
    #include <stdlib.h>
    #include <pthread.h>
    #include <stdio.h>
    #include <time.h>
    #include <unistd.h>
    
    extern void IntoGoAndBack();
    
    int CheckBlocked() {
    	sigset_t mask;
    	sigprocmask(SIG_BLOCK, NULL, &mask);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 1K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testcarchive/testdata/main.c

    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #include <stdint.h>
    #include <stdio.h>
    #include <string.h>
    
    #include "p.h"
    #include "libgo.h"
    
    extern int install_handler();
    extern int check_handler();
    
    int main(void) {
    	int32_t res;
    
    	int r1 = install_handler();
    	if (r1!=0) {
    		return r1;
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 847 bytes
    - Viewed (0)
Back to top