text stringlengths 5.8k 28.2k |
|---|
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
/*
___________________________________________________________
/ __ _ \
| / _| (_) |
| | |_ _ _ ___ _ ___ _ __ |
| | _| | | / __| |/ _ \| '_ \ |
| ... |
/*
* Exynos Specific Extensions for Synopsys DW Multimedia Card Interface driver
*
* Copyright (C) 2012, Samsung Electronics Co., Ltd.
*
* 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; ei... |
/***************************************************************************//**
* \file EZI2C_I2C.c
* \version 4.0
*
* \brief
* This file provides the source code to the API for the SCB Component in
* I2C mode.
*
* Note:
*
*******************************************************************************
* \copyright
*... |
/*
* Copyright 2019, Data61
* Commonwealth Scientific and Industrial Research Organisation (CSIRO)
* ABN 41 687 119 230.
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(DATA... |
/*
tio.c - timed io functions
This file is part of the nss-pam-ldapd library.
Copyright (C) 2007, 2008, 2010, 2011, 2012 <NAME>
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 Foundatio... |
/* fcon.f -- translated by f2c (version 19970805).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "auto_f2c.h"
#include "auto_c.h"
#define NIAP (41)
#define HMACH (1.0e-7)
#include <stdio.h>
/* All of these global structures correspond to common
blocks in ... |
/*
* Copyright (c) 2013-2017 The University of Tennessee and The University
* of Tennessee Research Foundation. All rights
* reserved.
* Copyright (c) 2013-2017 Inria. All rights reserved.
* Copyright (c) 2013-2015 Bull SAS. All rights reserved.
* Copyright (c) 2... |
/*
* Copyright (c) 2011-2013 <NAME> <<EMAIL>>
* Copyright (c) 2018 <>< <NAME>
*
* 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 ... |
/*
* 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 ... |
/* gcc -O2 -Wall proxyd.c -o proxyd -lpthread */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <syslog.h>/* syslog定义*/
#include <sys/epoll.h>
#include <pthread.h>
#include <fcntl.... |
/* debugger-core.c
*
* Copyright 2011 <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 appl... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
/*
*
* (C) 2008 by Argonne National Laboratory.
* See COPYRIGHT in top-level directory.
*/
#include "../adio/include/heap-sort.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#define PREDEF_TESTS 2
/* test types ... |
#include <linux/sched.h>
#include <linux/scatterlist.h>
#include <linux/crypto.h>
#include <linux/spinlock.h>
#include <linux/spinlock_types.h>
#include <linux/delay.h>
#include <linux/semaphore.h>
#include "armor.h"
#include "lbr.h"
#include "lbr-state.h"
struct lbr_t lbr_cache[LBR_CACHE_SIZE];
spinlock_t lbr_c... |
/*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team,
* check out http://www.gromacs.org for more information.
* Copyright (c) 2012,2013, by the GROMACS development team, l... |
/*
*
* Leg Phase offset table maps leg index->phase offset
*
* Leg Phase is global phase + leg offset
*
* Step Shape Table maps leg phase to toe position
*
* Gait state machine
* Connect to all legs
* for ecah leg
* set command to measured for all joints
* ramp gain over ~1 sec
* Interpolate ... |
/* ode-initval/bsimp.c
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2004 <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 optio... |
#include <errno.h>
#define __USE_GNU
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#undef st_atime
#undef st_mtime
#undef st_ctime
#include <lkl.h>
#include "xlate.h"
long lkl_set_errno(long err)
{
if (err >= 0)
return err;
switch (err) {
case -LKL_EPERM:
errno = EPERM;
break;
case -LKL... |
// Rodar com a flag -D DEBUG para ativar o modo debug
// #define DEBUG
/*
Este programa calcula as seguintes estatisticas
das notas dos alunos nas escolas das diferentes
cidades do Brasil:
Menor, Maior, Media, Mediana e Desvio Padrao (DP)
*/
#include <stdlib.h>
#include <stdio.h>
#include <s... |
#include "sparse.h"
int assert(int i, int n);
rr_sparse_mat* rr_sparse_mat_alloc(int n) {
//fprintf(stderr,"Allocating sparse_mat\n");
int i;
rr_sparse_mat* A;
A = malloc(sizeof(rr_sparse_mat));
A->ind = (int*)NULL;
A->permutation = (int*)NULL;
A->length = (int*)NULL;
A->dat = (double*... |
/*
Copyright 1992, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice a... |
#include <stdlib.h>
#include <string.h>
#include "map.h"
#define map_index(map, hash) (unsigned int)(hash % map->_len)
#define map_error(map) (map->_c)
#define map_free_entry(k,v,entry) {if (k) k((entry)->key); if (v) v((entry)->value);}
typedef struct _map_entry
{
unsigned int hash; /*key的hash值*/
... |
#include "hal.h"
#define SERIAL_BAUD 9600
#include <libopencm3/cm3/dwt.h>
#include <libopencm3/cm3/nvic.h>
#include <libopencm3/cm3/systick.h>
#if defined(LM3S)
#include <libopencm3/lm3s/gpio.h>
#include <libopencm3/lm3s/usart.h>
#define SERIAL_USART USART0_BASE
#define rng_enable() ((void)0)
#elif defined(STM32F215... |
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <float.h>
#include <ctype.h>
#include <math.h>
#include <assert.h>
#include "tm_mt.h"
#include "tm_mapping.h"
#include "tm_timings.h"
#include "t... |
/*-
* Copyright (c) 2008 Isilon Inc http://www.isilon.com/
* Authors: <NAME> <<EMAIL>>
* Developed with Red Inc: <NAME> <<EMAIL>>
*
* 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 ... |
/* Watch usage of Vivante GPU live.
* Needs profiling support built-in (build kernel and etnaviv with VIVANTE_PROFILER=1).
*/
/* Uncomment if the platform has the clock_gettime call, to use a monotonic
* clock */
/* #define HAVE_CLOCK */
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.... |
/* See COPYRIGHT for copyright information. */
#include <inc/x86.h>
#include <inc/memlayout.h>
#include <inc/kbdreg.h>
#include <inc/string.h>
#include <inc/assert.h>
#include <kern/console.h>
#include <kern/trap.h>
#include <kern/picirq.h>
static void cons_intr(int (*proc)(void));
static void cons_putc(int c);
// ... |
#include <Python.h>
#include <numpy/ndarrayobject.h>
void
gauss_lobatto007002 (const double *restrict f, int n, int fsi,
const double *restrict sigma, int ssi, int ssr,
double *restrict fr, int frsi, int frsl)
{
int i;
double sigma0, sigma1, sigma2, sigma3, sigma4, sigma5, sigma6, omega1, omega9, ome... |
/*
* Copyright (C) 2007 The Android Open Source Project
*
* 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 app... |
/*
Copyright (c) 2002-2003 by <NAME>
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, publish, distribute, ... |
/*
* Copyright 2017 International Business Machines
*
* 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 ... |
/*
* driver.c
*
* Code generation for function 'driver'
*
*/
/* Include files */
#include "driver.h"
#include "BFGSUpdate.h"
#include "computeFiniteDifferences.h"
#include "computeLinearResiduals.h"
#include "computeObjective_.h"
#include "eml_int_forloop_overflow_check.h"
#include "isDeltaXTooSmall.h"
#include "... |
/* $OpenBSD: acpibat.c,v 1.58 2010/11/10 21:40:55 kettenis Exp $ */
/*
* Copyright (c) 2005 <NAME> <<EMAIL>>
*
* 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... |
/*
* Copyright (c) 2002-2007, Communications and Remote Sensing Laboratory, Universite catholique de Louvain (UCL), Belgium
* Copyright (c) 2002-2007, Professor <NAME>
* Copyright (c) 2003-2007, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, ... |
/* Copyright (C) 2002 <NAME>
File: ltp.c
Long-Term Prediction functions
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 ... |
// This is a battery test for:
//
// The testing will run until stopped, unless NUMBER_OF_RUNS is defined
//
// Building requires either of these libraries:
// http://github.com/Marc-B-Reynolds/TestU01x
// http://simul.iro.umontreal.ca/testu01/tu01.html
#include <inttypes.h>
#include <stdio.h>
#include <stdint.h>
/... |
#include "ble_pub.h"
#include "ble_api.h"
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include "breeze_hal_ble.h"
extern struct bd_addr common_default_bdaddr;
static ais_bt_init_t ais_bt_init_info;
static void (*g_indication_txdone)(uint8_t res);
breeze_config_t breeze_cfg;
uint8_t g_connected = 0;
#... |
/* Copyright The libuv project and contributors. 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 Software without restriction, including without limitation the
* rights to ... |
#include <stdlib.h>
#include <string.h>
extern const unsigned char auxiliary_data[]; /* In auxiliary.s */
extern const unsigned char words_a_data[]; /* In words-a-full.s */
extern const unsigned char words_b_data[]; /* In words-b-full.s */
extern const unsigned char words_c_data[]; /* In word... |
/* ../netlib/v3.9.0/cunhr_col.f -- translated by f2c (version 20160102). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order,... |
/**
* @file lex.c
* @author <NAME>
* @date 2004-2014
*
* @brief XML lexer functions.
*
*/
#include "jwm.h"
#include "lex.h"
#include "error.h"
#include "misc.h"
/** Amount to increase allocations by when reading text. */
static const int BLOCK_SIZE = 16;
/** Mapping between token names and tokens.
* These mu... |
/* cryptmpj.c - Encryption designed to exceed DES in security.
The MPJ2 encryption algorithm is in the public domain.
*/
#include <stdio.h>
#include <stdlib.h>
#include <mem.h>
#include "def.h"
#include "cryptmpj.h"
#include "crc.h"
static byte *key = NULL;
static uint keysize;
static uint keyindex;
static unsigne... |
#include "parser.h"
#include "stack.h"
/*http://tibasicdev.wikidot.com/one-byte-tokens*/
struct Identifier ti_table[AMOUNT_TOKENS] = {
{0, {0}}, {0, {0}}, /*TOK_NUMBER, TOK_SYMBOL*/
{1, {0x70}}, {1, {0x71}}, /*TOK_PLUS, TOK_MINUS*/
{1, {0x82}}, {1, {0x83}}, /*TOK_MULTIPLY, TOK_DIVIDE*/
{2... |
#pragma once
/* AMX Mod X
* Counter-Strike Module
*
* by the AMX Mod X Development Team
*
* This file is part of AMX Mod X.
*
*
* 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
* ... |
/* Extended Module Player
* Copyright (C) 1996-2016 <NAME> and <NAME>
*
* 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... |
/**********************************************************************/
/* File : circledraw.c
* Description: Testbed for circle drawing algorithms:
* - Pseudo-Bresenham quadrant-based algorithm by Alois
* Zingl [4Q]
* - Relicarium website algorithm [4Q]
... |
#ifdef MIN
#undef MIN
#endif
#ifdef CLAMP
#undef CLAMP
#endif
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define CLAMP(x) (((x) < 0) ? 0 : (((x) > 0xff) ? 0xff : (x)))
#define CLAMP16(x) (((x) < 0) ? 0 : (((x) > 0xffff) ? 0xffff : (x)))
#define LOD_MAX 8
#define TEX_DIRTY_SHIFT 10
#define TEX_CACHE_MAX 64
enum
{
... |
#include "signal-processing.h"
#include "gui-helper.c"
#include "custom-elements.c"
#include "styles.c"
#include "signal-helper.c"
#include "file-manager.c"
void
gui_begin(
struct nk_context *ctx,
signal_array *signals_array,
unsigned int *signal_plot_scale,
unsigned int *signal_plot_offset,
unsign... |
/*
* Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... |
/*****************************************************************************/
/* */
/* Module: TIA Chip Sound Simulator */
/* Purpose: To emulate the sound generation hardware of the Atari TIA chip. */
... |
/*
* Copyright (c) 2007-2011 Los Alamos National Security, LLC.
* All rights reserved.
* Copyright (c) 2004-2011 The University of Tennessee and The University
* of Tennessee Research Foundation. All rights
* reserved.
* Copyright (c) 2011-2... |
/*
* Copyright (c) 2017 Intel Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*/
#if defined(CONFIG_NET_DEBUG_WEBSOCKET)
#define SYS_LOG_DOMAIN "ws"
#define NET_SYS_LOG_LEVEL SYS_LOG_LEVEL_DEBUG
#define NET_LOG_ENABLED 1
#endif
#include <zephyr.h>
#include <string.h>
#include <strings.h>
#include <errno.h>
#... |
/*****************************************************************************
* matroska.c:
*****************************************************************************
* Copyright (C) 2005 <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Pu... |
// From https://github.com/rhash/rhash
/* sha256.c - an implementation of SHA-256/224 hash functions
* based on FIPS 180-3 (Federal Information Processing Standard).
*
* Copyright (c) 2010, <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee... |
/* Driver for FTP Software's packet driver interface. (PC specific code)
*/
#include <stdio.h>
#include <dos.h>
#include "global.h"
#include "proc.h"
#include "mbuf.h"
#include "netuser.h"
#include "enet.h"
#include "arcnet.h"
#include "ax25.h"
#include "slip.h"
#include "kiss.h"
#include "iface.h"
#incl... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/iosupport.h>
#include <switch.h>
#include <deko3d.h>
// Define the desired number of framebuffers
#define FB_NUM 2
// Define the size of the memory block that will hold code
#define CODEMEMSIZE (64*1024)
// Define the size of the memory block ... |
#include "sound.h"
static size_t nb_so_far = 0;
static int stop_stream;
static pa_stream *p;
static pa_context *c;
static pa_threaded_mainloop *m;
static const pa_sample_spec ss = {
PA_SAMPLE_S16LE,
44100,
2
};
static pa_cvolume volume_change;
static sa_transcode_context_t *sa_trans_cntx;
static pthread_t... |
// Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.
#include <openenclave/corelibc/stdlib.h>
#include <openenclave/corelibc/string.h>
#include <openenclave/internal/syscall/arpa/inet.h>
#include <openenclave/internal/syscall/netdb.h>
#include <openenclave/internal/syscall/raise.h>
#inclu... |
/*-
* Copyright (c) 2017-2020, AT&T Intellectual Property. All rights reserved.
* Copyright (c) 2016 by Brocade Communications Systems, Inc.
* All rights reserved.
*
* SPDX-License-Identifier: LGPL-2.1-only
*/
#include <dirent.h>
#include <errno.h>
#include <inttypes.h>
#include <limits.h>
#include <net/if.h>
#... |
/*!
*\mainpage
*\author <NAME>
*\brief MFM, PLM-Roboterhand -Ansteuerung Motor - SoSe 2015
*\date 30.06.2015
*
*\version 2.0
* FINAL
*
* Dieses Programm wird zur Anstuerung der Roborterhand verwendet - Handseite bzw Motoransteuerung. Es werden durch die UART Schnittstelle (via Bluetooth mit dem Baustein BTM222)
* die ... |
// $Id: dhcp_sniff.c,v 1.2 2017/04/21 13:45:27 hito Exp hito $
#include <assert.h>
#include <libgen.h>
#include <time.h>
#include <signal.h>
#include <string.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <syslog.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unis... |
/* This file is part of GNU tar.
Copyright 2006-2008, 2013-2014, 2016-2017 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, or (at your ... |
/*
* main.c
* potd is licensed under the BSD license:
*
* Copyright (c) 2018 <NAME> <<EMAIL>>
*
* 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... |
/* Extended Module Player
* Copyright (C) 1996-2010 <NAME> and <NAME>
*
* This file is part of the Extended Module Player and is distributed
* under the terms of the GNU General Public License. See doc/COPYING
* for more information.
*/
/* This loader recognizes the following variants of the Protracker
... |
#pragma ident "$Id: init.c,v 1.27 2015/12/09 18:42:28 dechavez Exp $"
/*======================================================================
*
* Initialization routine.
*
*====================================================================*/
#define INCLUDE_QHLP_STATIC_DEFAULTS
#include "qhlp.h"
#define MY_MOD... |
/* CoAP client Example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
/*
* WARNING
* lib... |
/******************************************************************************
* recordMyDesktop *
*******************************************************************************
* *
... |
/* File: mgmt.c
* Author: <NAME>
* Revision Nov 14 2016
*/
#include "mgmt.h"
#include "process.h"
#include "alloc.h"
#include "systicklib.h"
#include "supervisor.h"
#include "syslib.h"
#include "msg.h"
#include "msg_data_structures.h"
#include <stdint.h>
#include <stdlib.h>
#include "test.h"
ext... |
/*
* Entry point for the Microwriter / CyKey keyboard emulation.
*
* The key-code tables defined here are based on what my CyKey does and what I can
* remember (or look up!) about what the original Microwriter actually did.
*
* https://en.wikipedia.org/wiki/Microwriter
* https://www.sites.google.com/site/cykeybe... |
#define thisprog "xe-matrixmod1"
#define TITLE_STRING thisprog" v 21.October.2017 [JRH]"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
<TAGS>signal_processing dt.matrix transform </TAGS>
v 21.October.2017 [JRH]
- update variable naming conventions for ii,jj,kk
v 14.October.2017 [J... |
/*
* C Mandelbrot.
*
* Usage: ./build/C/mandelbrot_c <image width> <image height> <max iterations> <repetitions (1+)> <center x> <center y> <section height> <gradient filename> <output filename>
* Example: ./build/C/mandelbrot_c 800 600 200 1 -0.8 0.0 2.2 gradients/benchmark.gradient mandelbrot.raw
*
* <NAME>, 20... |
/* dirty digial LFO 11-1-21
this version assumes you are using the SMD pots board
otherwise you want to use the 5-21-21 code
AUDIO DIWHY
*/
//#define BAUD 9600
//#define BAUD_TOL 2
#include <avr/io.h>
#include "spi3.h"
#include <stdint.h>
#include <stddef.h>
#include <stdlib.h> // provides rand()
#inclu... |
// Copyright (c) 2021-2022 ByteDance Inc.
//
// 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, pu... |
/*****************************************************************************
mdns.c - mDNS related calls
(c) 2015 Copyright HP Development Company, LP
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 t... |
#define _POSIX_C_SOURCE 200112L
#include <EGL/egl.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <wayland-server.h>
#include <wlr/backend/interface.h>
#include <wlr/backend/x11.h>
#include <wlr/interfaces/wlr_input_device.h>
#include <wlr/interfaces/wlr_keyboard.h>
#include <w... |
/*
* main.c
*
* Copyright 2014 <NAME> <<EMAIL>>
*
* 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.
*
* This pro... |
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include "c99.h"
#include "name.h"
#include "fail.h"
#include "types.h"
#include "mem.h"
#include "tensor.h"
#include "poly.h"
#include "lob_bnd.h"
#define obbox_calc_2 PREFIXED_NAME(obbox_calc_2)
#define obbox_calc_3 PREFIXED_NAME(obbox_calc_3)
struct obb... |
/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can
* be found in the LICENSE file.
*
*/
//
//
//
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include <float.h>
#include <stdbool.h>
//
//
//
#include <cuda_runtime.h>
//
... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<io.h>
int k = 0;
int l = 0;
char name[100];
void parser(FILE* fp, FILE* Newfp);
void Hascomment(char* s);
void Codeini(FILE* Newfp);
void CodeWriter(char* com,char* ar1, char* ar2, FILE* Newfp);
int Typejudge(char* com);
void wirteArithmetic(char* com, F... |
/*
* Copyright (c) 2009 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME>.
*
* This code is further derived from software contributed to the
* DragonFly project by <NAME> and <NAME>
*
* Redistribution and use in source an... |
/*==========================================================
* Copyright 2020 QuickLogic Corporation
*
* 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/licens... |
/* ac3200.c: A driver for the Ansel Communications EISA ethernet adaptor. */
/*
Written 1993, 1994 by <NAME>.
Copyright 1993 United States Government as represented by the Director,
National Security Agency. This software may only be used and distributed
according to the terms of the GNU Public License as modified... |
/*
* minifortune v2.5 - https://github.com/vsergeev/minifortune
* A minimal fortune-mod clone, dependent on libc only.
* LICENSE: MIT License
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <ti... |
/*
* Copyright (c) 2000-2001,2005 Silicon Graphics, Inc.
* All Rights Reserved.
*
* 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.
*
* This program is distributed in the hope that it woul... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "memory.h"
#include "raster.h"
/* ----------------------------------------------------------------------------
*
* Private function definitions
*
* ------------------------------------------------------------------------- */
static int find_isect... |
/* -*- mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* vim: sw=4 ts=8 et tw=80
*/
#include "pyactpol.h"
#include <actpol/actpol.h>
#define ASSERT_IS_CUTS_ARRAY(cuts) do { \
po_assert(PyArray_NDIM(cuts) == 2 && \
PyArray_DIMS(cuts)[1] =... |
/* This file was written by <NAME>, and is hereby placed
in the public domain. */
/* Bits of the SCC interface.
For paranoia's sake, I'm not using the same names as Microsoft.
I don't imagine copying a few names could be a credible copyright
case, but it seems safer to stick to only what is necessary for
... |
/*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
#include "rodsClient.h"
void usage(char *option);
/*
print the results of a general query.
*/
int
printGenQueryResults(rcComm_t *Conn, int status, genQuery... |
// Kalah toplevel parallism code
// <NAME>
// 18nov00
#include "parallel.h"
#define BASE_SHIFT 20
typedef struct {
int tid,jid; // thief tid and job jid
} jobstub;
/* global variables */
static int master; // is this the master process?
static char host[100]; // hostname
static int stid; // own ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lex.h"
#include "syntax.h"
/* passage d'un symbole à l'autre */
void Sym_Suiv(){
temp = temp->next;
}
/* conversion d'enum en chaine de caractere pour affichage */
void Erreur(ERREURS COD_ERR,int i){
syntax+=1;
switch(CO... |
typedef unsigned char UCHAR;
typedef unsigned short USHORT;
typedef unsigned long ULONG;
#define SIZE 15
#define MAX_CAND 256
#define MAX_CELLS 625
#define TIMEOUT_PREVENT 5
#define FOR_EVERY_CAND(x, y) \
for (y = upperLeftCand.cy; y <= lowerRightCand.cy; y++) \
for (x = upper... |
/*
** mouse:~ppr/src/libgu/malloc.c
** Copyright 1995--2010, Trinity College Computing Center.
** Written by <NAME>.
**
** This file is part of PPR. You can redistribute it and modify it under the
** terms of the revised BSD licence (without the advertising clause) as
** described in the accompanying file LICENSE.txt.... |
/*
* Copyright 2004-2005 The Unichrome Project [unichrome.sf.net]
*
*
* 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... |
/*
* MODULE NAME: ex_angle.c
*
* FUNCTION:
* This module contains code that draws extrusions with angled
* joins ("angle join style"). It also inserts colors and normals
* where necessary, if appropriate.
*
* HISTORY:
* written by <NAME> August/September 1991
* split into multiple compile units, Linas, Oc... |
/*
* relaxed.c
*
* Code generation for function 'relaxed'
*
*/
/* Include files */
#include "relaxed.h"
#include "addBoundToActiveSetMatrix_.h"
#include "driver1.h"
#include "eml_int_forloop_overflow_check.h"
#include "ixamax.h"
#include "moveConstraint_.h"
#include "mwmathutil.h"
#include "rt_nonfinite.h"
#inclu... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
/* Programa : knn - K Vizinhos mais Próximos
Descrição: Este programa utiliza o algorítimos de K vizinhos mais próximos para classificar a espécie
de plantas do gênero Iris. Depois, a classificação do algoritmo é comparada à ... |
/*
ssh-askpass.c
Copyright (c) 1997 SSH Communications Security, Finland
All rights reserved
*/
#include "sshincludes.h"
#include "sshgetopt.h"
#ifdef time
#undef time
#endif
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xresource.h>
#include <X11/Xatom.h>
#incl... |
#include <ncurses.h>
#include <stdlib.h>
#include <time.h>
#define CL_DEFAULT 1
#define CL_FIELD_MINE 10
#define CL_FIELD_MINE_FLAG 11
#define CL_FIELD_FLAG 12
#define CL_FIELD_CUR 13
#define CL_FIELD_NONE 14
#define CL_FIELD_OPEN 15
#define CL_FIELD_OPEN_1 16
#define CL_FIELD_OPEN_2 17
#define CL_FIELD_OPEN_3 18
#def... |
/**
* Copyright (c) 2013, AppliedMicro Corp. All rights reserved.
*
* This program and the accompanying materials
* are licensed and made available under the terms and conditions of the BSD License
* which accompanies this distribution. The full text of the license may be found at
* http://opensource.org/license... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.