Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 57 for reserve (2.97 sec)

  1. src/cmd/cgo/internal/test/issue29563/weak1.c

    // Copyright 2019 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.
    
    extern int weaksym __attribute__((__weak__));
    int weaksym = 42;
    
    int foo1()
    {
    	return weaksym;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 257 bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/issue29563/weak2.c

    // Copyright 2019 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.
    
    extern int weaksym __attribute__((__weak__));
    int weaksym = 42;
    
    int foo2()
    {
    	return weaksym;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 257 bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/test/issue6833_c.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 "_cgo_export.h"
     
    unsigned long long
    issue6833Func(unsigned int aui, unsigned long long aull) {
    	return GoIssue6833Func(aui, aull);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 303 bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/issue20910.c

    // Copyright 2017 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 <stdlib.h>
    #include <string.h>
    #include "_cgo_export.h"
    
    /* Test calling a Go function with multiple return values.  */
    
    void
    callMulti(void)
    {
    	struct multi_return result = multi();
    	assert(strcmp(result.r0, "multi") == 0);
    	assert(result.r1 == 0);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 459 bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testlife/testdata/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)
  6. src/cmd/cgo/internal/testcarchive/testdata/main4.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.
    
    // Test a C thread that calls sigaltstack and then calls Go code.
    
    #include <signal.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <time.h>
    #include <sched.h>
    #include <pthread.h>
    
    #include "libgo4.h"
    
    #ifdef _AIX
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testso/testdata/sovar/cgoso_c.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.
    
    //go:build ignore
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 01:37:41 UTC 2023
    - 221 bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testlife/testdata/life.h

    // 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.
    
    extern void Step(int, int, int *, int *);
    extern void DoStep(int, int, int, int, int, int, int *, int *);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 292 bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top