text stringlengths 3.12k 18.7k |
|---|
// RUN: %clang_cc1 -fsyntax-only -verify -Wformat-nonliteral %s
// Test that -Wformat=0 works:
// RUN: %clang_cc1 -fsyntax-only -Werror -Wformat=0 %s
#include <stdarg.h>
typedef __typeof(sizeof(int)) size_t;
typedef struct _FILE FILE;
typedef __WCHAR_TYPE__ wchar_t;
int fscanf(FILE * restrict, const char * restrict,... |
#include "parse_c_type.c"
#include "realize_c_type.c"
#define CFFI_VERSION_MIN 0x2601
#define CFFI_VERSION_CHAR16CHAR32 0x2801
#define CFFI_VERSION_MAX 0x28FF
typedef struct FFIObject_s FFIObject;
typedef struct LibObject_s LibObject;
static PyTypeObject FFI_Type; /* forward */
static PyTy... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/*
* Copyright (c) 2013 Apple Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except ... |
#define __STDC_WANT_LIB_EXT2__ 1
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>
#include <unistd.h>
#include <getopt.h>
#include <omp.h>
#include "samrecord.h"
#include "align.h"
#include "barcodes.h"
#include "util.h"
#include "main.h"
// preprocess
#include "cpp/m... |
#define KL_LOG KL_INIT
#include <sys/klog.h>
#include <stdbool.h>
#include <mips/mips.h>
#include <mips/cpuinfo.h>
cpuinfo_t cpuinfo;
#define bitfield(value, field) \
(((value) >> field##_SHIFT) & ((1L << field##_BITS) - 1))
#define bit(value, field) (((value) >> fiel... |
#include <malloc.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <3ds.h>
#include "task.h"
#include "../../list.h"
#include "../../error.h"
#include "../../../core/linkedlist.h"
#include "../../../core/screen.h"
#include "../../../core/util.h"
#include "../../../json/json.h"
#include "../../../... |
/*
* This file is part of the UCB release of Plan 9. It is subject to the license
* terms in the LICENSE file found in the top-level directory of this
* distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
* part of the UCB release of Plan 9, including this file, may be copied,
* modified, prop... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "saa1099.h"
#define TSTEP 256
#define USE_TONE_ENV 1
// xx0 : stay
// xx1 : repeat
static unsigned char saaEnvForms[8][33] = {
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 253}, // 000 : 0 stay
{15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,1... |
/* hgExpDistance - Create table that measures expression distance between pairs. */
/* Copyright (C) 2013 The Regents of the University of California
* See README in this or parent directory for licensing information. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "options.h"
#include "dystr... |
/*
*
* Copyright 2015, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... |
/*
* Copyright (c) 2018 zhtlab
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
* (the "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publis... |
/*******************************************************************************
vin_db.c - description
-------------------
begin : 07.02.2019
last modify : 07.02.2019
copyright : (C) 2019 by MHS-Elektronik GmbH & Co. KG, Ge... |
#include <assert.h>
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "card.h"
#include "common.h"
#include "cursor.h"
#include "deck.h"
#include "game.h"
#include "gui.h"
#include "stack.h"
struct deck *deck;
struct cursor *cursor;
static int foundation_begin_... |
#define _GNU_SOURCE
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <pthread.h>
#include <assert.h>
#include <inttypes.h>
// compile: gcc replay.c -pthread
//Note: all sizes are in block (1 b... |
//Low-Level X11 Library
//Author: <NAME>
//License: Beerware
//
#ifndef FLAGS
//Check if all flags in y are set in x
#define FLAGS(x,y) ((x&(y))==(y))
#endif
//------------------------------------------------------------------------------
//--X11 definitions
//--------------------------------------------------------... |
#include "main.h"
#define JOB_NAME_LENGTH 24
typedef struct {
char Name[JOB_NAME_LENGTH];
time_t Seconds;
} Job;
typedef struct Job_ptr {
Job* Job;
struct Job_ptr* Next_ptr;
} Job_ptr ;
static Job_ptr* first_job_ptr=NULL;
uint8_t jobs_count=0;
// *************************************************************... |
#include <stdlib.h>
#include <stdio.h>
#include "eval.h"
#include "types.h"
#include "util.h"
#include "atom.h"
#include "list_area.h"
#include "pointers.h"
#include "reader.h"
#include "printing.h"
#include "stack.h"
#include "primitives.h"
lisp_ptr_t
vm_lookup(lisp_vm_t *vm, lisp_ptr_t atom)
{
if(get_ptr_tag(at... |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
*... |
/* File: h_edit.c */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/param.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sp/sphere.h>
/* for temporary files */
#define EXTENSION ".BAK"
static void wav_edit_usage(char *, char *);
static int wav_edit_headers(char *, char *, int,... |
/*
* Copyright 2020 Makani Technologies LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
/* This is xcwd written by <NAME> (c) 2013
* Email: <EMAIL>
* Feel free to copy and redistribute in terms of the
* BSD license
*/
#include <limits.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <unistd.h>
#include <X11/Xlib.h>
#ifdef LINUX
# include <sys/stat.h>
# incl... |
/*-
* Copyright (c) 2008-2017 Varnish Software AS
* All rights reserved.
*
* Author: <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistrib... |
#include "motors.h"
#include "diag.h"
#include "state.h"
#include <avr/io.h>
#include <avr/interrupt.h>
#include <stdlib.h>
#include <stdbool.h>
#define F_CPU 10000000 /* 10MHz */
#include <util/delay.h>
static bool pin_check(char portname, PORT_t *port, uint8_t pin)
{
uint8_t bm = 1<<pin;
// Set the pin as ... |
/* The MIT License
Copyright (c) 2008 Genome Research Ltd (GRL).
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, mo... |
/* -----------------------------------------------------------------
* Programmer(s): <NAME> @ LLNL
* -----------------------------------------------------------------
* SUNDIALS Copyright Start
* Copyright (c) 2002-2021, Lawrence Livermore National Security
* and Southern Methodist University.
* All rights reser... |
/* library.c
*
* Copyright (c) 2000 <NAME> <<EMAIL>>
* Copyright (c) 2000 <NAME> <<EMAIL>>
* Copyright (c) 2000 <NAME> <<EMAIL>>
* Copyright (c) 2000 <NAME> <<EMAIL>>
* Copyright (c) 2007 <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU L... |
/*
* Copyright (C) 2012 Invensense, Inc.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that it will be useful,
* but ... |
/******************************************************************************
* FREXXWARE
* ----------------------------------------------------------------------------
*
* Project: Frexx C Preprocessor
* $Source: /home/user/start/cpp/RCS/cpp.h,v $
* $Revision: 1.3 $
* $Date: 1993... |
/**
******************************************************************************
* @file OTA.c
* @author Central LAB
* @version V4.0.0
* @date 30-Oct-2019
* @brief Over-the-Air Update API implementation
******************************************************************************
* @... |
/*
* Jiauliyan OS - Released under the MIT License
* Copyright (C) 2011 <NAME>, <NAME>, <NAME>
* https://github.com/timcameronryan/jiauliyan
*
* Based on code from Bran's Kernel Development Tutorial
* http://www.osdever.net/tutorials/view/brans-kernel-development-tutorial
*/
#include <system.h>
#include <commo... |
#include <stdio.h>
#include "../include/libceedsetup.h"
#include "../include/petscutils.h"
// -----------------------------------------------------------------------------
// Destroy libCEED operator objects
// -----------------------------------------------------------------------------
PetscErrorCode CeedDataDestroy... |
// TODO: mlir-clang %s %stdinclude -S | FileCheck %s
// RUN: clang %s -O3 %stdinclude %polyverify -o %s.exec1 && %s.exec1 &> %s.out1
// RUN: mlir-clang %s %polyverify %stdinclude -O3 -o %s.execm && %s.execm &> %s.out2
// RUN: rm -f %s.exec1 %s.execm
// RUN: diff %s.out1 %s.out2
// RUN: rm -f %s.out1 %s.out2
// RUN: mli... |
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this f... |
/*
* Copyright (c) 2009-2021, Google LLC
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... |
/* exclude.c -- exclude file names
Copyright (C) 1992-1994, 1997, 1999-2007, 2009-2012 Free Software
Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 ... |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2004 Tyan Computer
* Written by <NAME> <<EMAIL>> for Tyan Computer.
* Copyright (C) 2006,2007 AMD
* Written by <NAME> <<EMAIL>> for AMD.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Gen... |
#include "u.h"
#include "lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "io.h"
#include "archfads.h"
/*
* board-specific support for the 8xxFADS (including 860/21 development system)
*/
enum {
USESDRAM = 0, /* set to 1 if kernel is to use SDRAM as well as DRAM */
/* sccr */
RTSEL = IBIT(8), ... |
/* $NetBSD: hack.save.c,v 1.6 1997/10/19 16:58:57 christos Exp $ */
/*
* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
*/
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: hack.save.c,v 1.6 1997/10/19 16:58:57 christos Exp $");
#endif /* not lint */
#include <signal.h>
#include <stdlib.h>
#... |
/*
$ cat Makefile
main: main3.c
gcc -Wall -Wextra -std=c99 -pedantic main3.c -o main -lm
*/
#include <stdio.h> // I/O
#include <string.h> // strcmp()
#include <math.h> // log2()
#define PRECISION 63 //liczba bitow, ktore wczytujemy do znacznika
#define ONE 0x... |
/**
@file ioc_ioboard.c
@brief Basic static network IO.
@author <NAME>
@version 1.0
@date 26.4.2021
The ioboard_start_communication() should be called at entry to IO board's program and
if clean up is needed ioboard_end_communication() at exit.
Memory blocks initialized are ioboard_exp (tc =... |
/* $NetBSD: com_cardbus.c,v 1.6 2001/11/13 12:51:12 lukem Exp $ */
/*
* Copyright (c) 2000 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source cod... |
/* Copyright (c) 2018 Mozilla
2012-2017 <NAME> */
/*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain the above copyright
notice, this list of condi... |
/* @source transeq application
**
** Translate nucleic acid sequences
**
** @author Copyright (C) <NAME> (<EMAIL>)
** Mar 4 17:18 1999 (ajb)
** Jul 19 19:24 2000 (ajb)
** Jun 29 16:50 2001 (gww) use new version of ajTrnSeqOrig
** @@
**
** This program is free software; you can redistribute it and/or
** modify it under... |
/* $NetBSD: j6x0lcd.c,v 1.2 2004/03/15 23:38:16 uwe Exp $ */
/*
* Copyright (c) 2004 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retai... |
// SPDX-License-Identifier: GPL-2.0+
/*
* ipmi_si_hotmod.c
*
* Handling for dynamically adding/removing IPMI devices through
* a module parameter (and thus sysfs).
*/
#define pr_fmt(fmt) "ipmi_hotmod: " fmt
#include <linux/moduleparam.h>
#include <linux/ipmi.h>
#include <linux/atomic.h>
#include "ipmi_si.h"
#inc... |
#include "wifi.h"
#include "mongoose.h"
#include <simplelink/cc_pal.h>
#include <simplelink/include/wlan.h>
#include <inc/hw_types.h>
#include <driverlib/gpio.h>
#include <driverlib/utils.h>
#include <example/common/gpio_if.h>
#include "cs_dbg.h"
void SimpleLinkWlanEventHandler(SlWlanEvent_t *e) {
switch (e->Ev... |
/* Written by Dr <NAME> (<EMAIL>) for the OpenSSL project
* 2006.
*/
/* ====================================================================
* Copyright (c) 2006 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided... |
/* Copyright © 2021 bvchirkov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
/***********************************************************************
Copyright (c) 2006-2011, Skype Limited. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retai... |
//
// Cluster.c
// Analysis
//
// Created by <NAME> on 11/27/17.
// Copyright © 2017 <NAME>. All rights reserved.
//
#include "Analysis.h"
#define gapTime 200
static int *proteinList;
static int **cluster;
static long **interaction;
static int CheckInteraction (struct AtomStr *atom1, struct AtomStr *atom2, int ... |
#include "types.h"
// === [ Overlay ID d ] ===
// address: 0x801238BC
// size: 0x22600
extern unsigned char img_buf[140800];
// address: 0x80145EBC
// size: 0x54
extern unsigned short *imgbuf[21];
// address: 0x80145F10
// size: 0x100
extern struct DR_ENV mdec_env[2][2];
// address: 0x80146010
// size: 0x640
exter... |
#include "mpu6050.h"
#include "types.h"
#include <math.h>
#include "depp.h"
#define ABS(x) (x<0)?-x:x
s16 vx = 0;
s16 vy = 0;
s16 vz = 0;
s16 rx = 0;
s16 ry = 0;
s16 rz = 0;
s16 temp = 0;
s16 thr = 0;
s16 difvx = 0;
s16 difvy = 0;
s16 difvz = 0;
s16 difrx = 0;
s16 difry = 0;
s16 difrz = 0;
void... |
#include "libflipper.h"
struct _lf_arg *lf_arg_create(lf_type type, lf_arg value) {
struct _lf_arg *arg = malloc(sizeof(struct _lf_arg));
lf_assert(arg, E_MALLOC, "failed to allocate new lf_arg");
arg->type = type;
arg->value = value;
return arg;
fail:
return NULL;
}
int lf_sizeof(lf_type t... |
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <time.h>
#include <math.h>
/*
-+-+-+-+-+-+- ASCII CODE -+-+-+-+-+-+-
-+-+-+-+-+-+- FOREGROUND COLOUR -+-+-+-+-+-+-
FOREGROUND_BLACK_COLOUR "\033[30m" CAN BE USED WHEN BACKGROUND IS WHITE
FOREGROUND_RED_COLOUR "\033[31m"
FOR... |
/*
* Copyright 2020 GreenWaves Technologies
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... |
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef HAVE_PYTHON
#include <Python.h>
#endif
#include <unistd.h>
#include <errno.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <signal.h>
#include <net/if.h>
#inclu... |
/*
* File: QuaternionMath.cpp
* Author: joemotyka
*
* Created on May 7, 2016, 5:03 PM
*/
#include "QuaternionMath.h"
#ifdef DISPLAY_DIAGNOSTIC_MSG
#include "TimingVars.h"
#endif
#include "Indices.h"
#include <math.h>
BOOL EulerAnglesToQuaternion( real* EulerAngles, real* Quaternion )
{
real sinThetaXOver2... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
// -*-Mode: C++;-*- // technically C99
// * BeginRiceCopyright *****************************************************
//
// --------------------------------------------------------------------------
// Part of HPCToolkit (hpctoolkit.org)
//
// Information about sources of support for research and development of
// HPCT... |
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
/* Copyright (C) 2011 The Regents of the University of California
* See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */
#include "common.h"
#include "hash.h"
#include "dnaseq.h"
#include "nib.h"
#include "linefile.h"
#include "dnautil.h"
#include "fa.h"
#include "cheapcgi.h"
struct ge... |
/*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;
* version 2.1 of the License.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; wit... |
/*
* Copyright (C) 2015-2016 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify... |
/**
* collision_world.c -- detect and handle line segment intersections
* Copyright (c) 2012 the Massachusetts Institute of Technology
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software ... |
/**
*
* @file testing_zpotri.c
*
* PLASMA testing routines
* PLASMA is a software package provided by Univ. of Tennessee,
* Univ. of California Berkeley and Univ. of Colorado Denver
*
* @version 2.6.0
* @author <NAME>
* @date 2010-11-15
* @precisions normal z -> c d s
*
**/
#include <stdlib.h>
#include ... |
#ifndef _INCLUDE_FROM_MAIN
#error this file looks like standalone C source, but actually must be included in main.c
#endif
#ifndef INCLUDE_MDB_C
#define INCLUDE_MDB_C
#include <avr/interrupt.h>
#include <inttypes.h>
#include <stdbool.h>
#include <string.h>
#include "bit.h"
#include "buffer.h"
#include "common.h"
#inclu... |
#include "../include/inject.h"
#include <mach/mach_vm.h>
#include <dlfcn.h>
#include <pthread.h>
// The stack will be used by any function calls we make in our code cave.
#define STACK_SIZE 0x1000
// Offsets for the placeholders in our code cave.
#define i386_pthread_offset 4
#define i386_dylib_offset 12
#define i38... |
#include <knightos/keys.h>
#include <knightos/display.h>
#include <knightos/system.h>
#include <stdbool.h>
#include <experimental/debug.h>
#include <float.h>
#include <stdio.h>
#include <stdlib.h>
#include <corelib.h>
#include <limits.h>
#include <ctype.h>
#include <string.h>
#include <math.h>
#include <kernel.h>
#inc... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <unistd.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
#include "std-display.h"
//Setup io
void setupIo() {
//Open /dev/mem
if ((mem_fd = open("/dev/mem", O_RDWR|O_SYNC)) < 0) {
printf("Can... |
/* ----------------------------------------------------------------------- *
*
* Copyright 2003-2005 <NAME> - All Rights Reserved
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Softwa... |
/*************************************************************************/
/* */
/* Copyright 2010 Rulequest Research Pty Ltd. */
/* */
/* This file is part of C5.0 GPL Edition, a single-threaded version */
/* of C5.0 release 2.07. */
/* */
/* C5.0 GPL Edition is free software... |
/*
* Copyright (c) 2007, 2008 University of Tsukuba
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this ... |
#include "module.h"
#include "kernel.h"
#include "kernel/elf.h"
#include "lib/hashmap.h"
#define SYMBOLTABLE_HASHMAP_SIZE 200
#define MODULE_HASHMAP_SIZE 10
#define MODULE_RAMDISK_INDEX 0
#define MODULE_ATA_INDEX 1
#define MODULE_EXT2_INDEX 2
static hashmap_t *symboltable = NULL;
static hashmap_t *modules = NULL;
ex... |
/*
* Copyright (c) 2012 The Native Client 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 <string.h>
#include "native_client/src/trusted/service_runtime/nacl_resource.h"
#include "native_client/src/include/nacl_base.h... |
/* swdp-m0sub.c
*
* Copyright 2015 <NAME> <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
/******************************************************************************
*
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free S... |
/************************************************************************
Copyright (c) 2015, The Linux Foundation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code mu... |
#include <allegro.h>
#include "agup/agup.h"
#include "modules/wfsel.h"
#include "modules/gametime.h"
#include "modules/g-idle.h"
#include "foflc/Lyric_storage.h"
#include "foflc/Midi_parse.h"
#include "menu/main.h"
#include "menu/file.h"
#include "menu/edit.h"
#include "menu/song.h"
#include "menu/track.h"
#include "m... |
// Code generated by ObjectBox; DO NOT EDIT.
#pragma once
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include "flatcc/flatcc.h"
#include "flatcc/flatcc_builder.h"
#include "objectbox.h"
/// Internal function used in other generated functions to put (write) explicitly typed objects
static obx_id t... |
/***************************************************************************
* PHAST: PHylogenetic Analysis with Space/Time models
* Copyright (c) 2002-2005 University of California, 2006-2010 Cornell
* University. All rights reserved.
*
* This source code is distributed under a BSD-style license. See the
* fi... |
// 0x07002000 - 0x07002018
static const Lights1 bowser_3_seg7_lights_07002000 = gdSPDefLights1(
0x22, 0x22, 0x22,
0x89, 0x89, 0x8a, 0x28, 0x28, 0x28
);
// 0x07002018 - 0x07002030
static const Lights1 bowser_3_seg7_lights_07002018 = gdSPDefLights1(
0x3f, 0x3f, 0x3f,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);... |
/*
The idea of this scan is to look for files on the file system that
have strange permissions. For example the files UID/GUID does not
exist. Or global writable files in /root /boot etc. Because this
scan has the potential to produce loads of results it is disabled
in the quick scan mode and ha... |
/* $OpenBSD: mbr.c,v 1.81 2021/07/11 19:43:19 krw Exp $ */
/*
* Copyright (c) 1997 <NAME>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE... |
#if !defined(lint) && !defined(DOS)
static char rcsid[] = "$Id: flagmaint.c 807 2007-11-09 01:21:33Z <EMAIL> $";
#endif
/*
* ========================================================================
* Copyright 2006-2007 University of Washington
* Copyright 2013-2018 <NAME>
*
* Licensed under the Apache License, V... |
/**************************************************************************
*
* Copyright 2003 Tungsten Graphics, Inc., <NAME>, Texas.
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software")... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2016 <NAME> <hugo.guiroux at gmail dot com>
* 2013 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of his software and associated documentation files (the "Software"), to deal
* in the Software without restricti... |
/*-
* Copyright (c) 2014 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... |
/*
* ESPRESSIF MIT License
*
* Copyright (c) 2020 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
*
* Permission is hereby granted for use on ESPRESSIF SYSTEMS products only, in which case,
* it is free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to de... |
/******************************************************************************
// $Id$
Modifications:
2006-Nov-07 Removed LAKE_MODEL option. TJB
2007-Aug-16 Made return value of initialize_prcp an int. JCA
2007-Aug-21 Added features for EXCESS_ICE option. JCA
2007-Oct-24 Changed get_sarea, get_volume, ... |
/**************************************************************************
** Date: 24 Apr 2016
** Author: <NAME>
** linkedList.c
** A linked list deque implementation in C and utilized as below.
** Compile:
gcc -g -Wall -std=c99 linkedList.h linkedList.c linkedListMain.c -o prog
***********************************... |
/* Kernel module help for PPC.
Copyright (C) 2001 <NAME>.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
... |
/*
* Copyright (c) 2017 Trail of Bits, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... |
// Uncomment this line to force firmware to run as front or rear power distribution.
// #define FORCE_IS_FRONT_POWER_DISTRIBUTION true
#include <stdbool.h>
#include <stdint.h>
#include "adc.h"
#include "bps_watcher.h"
#include "bug.h"
#include "can_msg_defs.h"
#include "can_rx_event_mapper.h"
#include "can_rx_event_m... |
/*
** task_adaptiveODR.c
**
** task "fixation-target-target".c ... "
** standard fixation + 2-target tasks
** (e.g., overlap and memory saccades)
*/
#include "../toys.h"
#include "../task.h"
#include "../task_utilities.h"
/* PRIVATE MACROS/CONSTANTS */
#define NUM_TRIALS 2
#define NUM_OBJECTS (NUM_TRIALS+1)
#d... |
/** @file
* Copyright (c) 2020-2021, Arm Limited or its affiliates. All rights reserved.
* SPDX-License-Identifier : Apache-2.0
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http... |
/* Copyright 2017 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Intel GLK-RVP board-specific configuration */
#include "button.h"
#include "chipset.h"
#include "console.h"
#include "extpower.h"
#include "gpi... |
#include <assert.h>
#include <math.h>
#include <string.h>
#include <time.h>
#include "draw.h"
#include "queue.h"
#define MAX_ITS 200
#define TOLERANCE (1e-7)
void initialize_eigen(double * u, int count) {
double t = 0;
for (int i = 0; i < count; ++i) {
u[i] = (double)rand() / (double)((unsigned)RAND_MAX + 1);
... |
# include <stdio.h>
# include <stdlib.h>
# include <c_iraf.h>
# include <hstio.h>
# include <xtables.h>
# include "../stis.h"
# include "../stiserr.h"
# include "../stisdef.h"
typedef struct {
IRAFPointer tp; /* pointer to table descriptor */
IRAFPointer cp_opt_elem;
IRAFPointer cp_cenwave;
IRAFPointer cp_mre... |
#include <string.h>
#include <stdlib.h>
#include "heclib7.h"
#include "hecdssInternal.h"
#include "zdssMessages.h"
#include "zdssKeys.h"
#include "zerrorCodes.h"
/**
* Function: zmessageAvailable
* zgetMessage
* zgetMessageAll
* zclearMessage
* zclearMessageAll
* zmessageInterface
*
* Use: Public /... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.