text
stringlengths
3.12k
18.7k
/* * Copyright (c) 2013, Institute for Pervasive Computing, ETH Zurich * 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 ...
/* Test library for the Linux Scheduler Simulator * * Basic assertions about tasks, ability to expect test failures. * * 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 t...
/* * Author: <NAME> * * Baremetal code for CCL (Configurable Custom Logic) */ #include "sam.h" #include "stdbool.h" void blinkTheDamnLED(void); void analogComparator0Conf(void); void ACPinMuxConf(void); void configGCLK1(void); void uartInit(void); void uart_send_char(uint8_t data8); uint8_t uart_get_char(); void...
/* © 2017 Sigma Designs, Inc. This is an unpublished work protected by Sigma * Designs, Inc. as a trade secret, and is not to be used or disclosed except as * provided Z-Wave Controller Development Kit Limited License Agreement. All * rights reserved. * * Notice: All information contained herein is confidential an...
/* Mnemonic: listfiles.c Abstract: Simple directory read to list config files in a given directory. Author: <NAME> Date: 04 Mar 2016 Mod: 01 Jun 2016 - Added ability to create a set of old files */ #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include...
// SPDX-License-Identifier: GPL-2.0 /* * When connected to the machine, the Thrustmaster wheels appear as * a «generic» hid gamepad called "Thrustmaster FFB Wheel". * * When in this mode not every functionality of the wheel, like the force feedback, * are available. To enable all functionalities of a Thrustmaster ...
/** Binary splits *\file Splits.c *\author $Author$ *\date $Date$ */ #include "party.h" /** Search for a cutpoint in a ordered variable x maximizing a two-sample statistic w.r.t. (the influence function of ) the response variable y. *\param x raw numeric measurements ...
#include "sdl2_image.h" #include "mruby.h" #include "mruby/value.h" #include "mruby/string.h" #include "sdl2.h" #include "sdl2_surface.h" #include "sdl2_render.h" #include "sdl2_rwops.h" #include <SDL_image.h> static mrb_value mrb_sdl2_surface_image_load(mrb_state *mrb, mrb_value self) { SDL_Surface *result; mrb_v...
/* * blogc: A blog compiler. * Copyright (C) 2014-2019 <NAME> <<EMAIL>> * * This program can be distributed under the terms of the BSD License. * See the file LICENSE. */ #include <stdarg.h> #include <stddef.h> #include <setjmp.h> #include <cmocka.h> #include <stdlib.h> #include "../../src/blogc-git-receiver/she...
# include <stdio.h> # include <stdlib.h> # include "xtables.h" # include "hstio.h" # include "stis.h" # include "stisdef.h" # include "calstis6.h" # include "hstcalerr.h" typedef struct { IRAFPointer tp; /* pointer to table descriptor */ IRAFPointer cp_opt_elem; IRAFPointer cp_sporder; IRAFPointer cp_cenwave; ...
/* MACHINE GENERATED FILE, DO NOT EDIT! */ #define VMDPLUGIN molfile_vaspoutcarplugin #define STATIC_PLUGIN 1 /*************************************************************************** * RCS INFORMATION: * * $RCSfile: vaspoutcarplugin.c,v $ * $Author: johns $ $Locker: $ $State: Exp ...
/** * @file mpmcq.c * @author <NAME> <<EMAIL>> */ #include "mpmcq.h" #include <stdlib.h> #include <stdio.h> #include <string.h> #include "shmman.h" #include "hwfunctions.h" #include "atomic.h" #define UNDEFINED_NODE (-1) #define NUM_SHAREDIDX (2) int *RList = NULL; /* local retire list */ static int RCnt = 0; in...
#include "vterm_internal.h" #include <stdio.h> #include <string.h> #undef DEBUG_PARSER static int is_intermed(unsigned char c) { return c >= 0x20 && c <= 0x2f; } static void do_control(VTerm *vt, unsigned char control) { if(vt->parser.callbacks && vt->parser.callbacks->control) if((*vt->parser.callbacks->co...
/* This file contains a simple test program that can be used as a sort of stress test for the file system. It's not exhaustive but it provides a decent first level sanity check on whether a file system will work. Basically it just randomly creates and deletes files. The defines just after the includes contr...
/* linalg/choleskyc.c * * Copyright (C) 2007 <NAME> * Copyright (C) 2010 <NAME> (gsl_linalg_complex_cholesky_invert) * * 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 o...
/* sis_ds.c -- Private header for Direct Rendering Manager -*- linux-c -*- * Created: Mon Jan 4 10:05:05 1999 by <EMAIL> * * Copyright 2000 Silicon Integrated Systems Corp, Inc., HsinChu, Taiwan. * All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this so...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "common.h" #include "sort.h" #include "search.h" // show the list of available options to the user void showOptions() { printf(GRN "Option 1: Sort the uselessArray of elements (choose for more details)\n"); printf(GRN "Option 2: Search for a u...
/* * This file is part of MPlayer. * * MPlayer 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. * * MPlayer is distributed in th...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <arpa/inet.h> #include <limits.h> #include <unistd.h> #include <signal.h> #include <libgen.h> #include <fcntl.h> #include "mdazibao.h" #include "daziweb.h" #include "utils.h" #include "logging.h" #include ...
#include <u.h> #include <libc.h> #include <bio.h> #include <ndb.h> #include <ip.h> enum { Ffound= 1<<0, Fignore=1<<1, Faddr= 1<<2, }; static Ndbtuple* filter(Ndb *db, Ndbtuple *t, Ndbtuple *f); static Ndbtuple* mkfilter(int argc, char **argv); static int filtercomplete(Ndbtuple *f); static Ndbtuple* toipaddr(Ndb ...
/* * Copyright (C) 2010 Red Hat, 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 2 or * (at your option) version 3 of the License. * * This program is distributed i...
#include "msp.h" #include "resources.h" #include "TA3InputCapture.h" #include "Tachometer.h" #ifdef RSLK_MAX #define ENC_Left_A (BITBAND_PERI(P10->IN, 5)) #define ENC_Left_B (BITBAND_PERI(P5->IN, 2)) #define ENC_Right_A (BITBAND_PERI(P10->IN, 4)) #define ENC_Right_B (BITBAND_PERI(P5->IN, 0)) #else #define ENC_Left_A ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "AGR_JC1_SDK_API.h" #pragma comment(lib,"libSATECodec_FLP.lib") #pragma comment(lib,"libBWE.lib") #define MAX_FRAME_SIZE 1920 #define MAX_FRAME_BYTES 1024 /* Define codec specific settings */ #define MAX_BYTES...
#include "ir.h" #include <stdio.h> #include <stdlib.h> const char *irinstr_str[IRInstrEnumSize] = { [IRSet] = "set", [IRNeg] = "neg", [IRAdd] = "add", [IRSub] = "sub", [IRMul] = "mul", [IRDiv] = "div", [IREq] = "eq", [IRNeq] = "neq", [I...
// // Lots of this based on ncolbans work // https://github.com/nkolban/esp32-snippets /* MIT License Copyright (c) 2017 <NAME> (Ebiroll) 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 r...
/* * tclsample.c -- * * This file implements a Tcl interface to the secure hashing * algorithm functions in sha1.c * * Copyright (c) 1999 Scriptics Corporation. * Copyright (c) 2003 ActiveState Corporation. * * See the file "license.terms" for information on usage and redistribution * of this file, and for a ...
#include <stdio.h> #include <ctype.h> #include <getopt.h> #include <parc/algol/parc_SafeMemory.h> #include <parc/algol/parc_BufferComposer.h> #include <parc/statistics/parc_BasicStats.h> #include "fib.h" #include "fib_naive.h" #include "fib_cisco.h" #include "fib_caesar.h" #include "fib_caesar_filter.h" #include "fib...
// Copyright 2020 Fuzhou Rockchip Electronics Co., Ltd. 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 <fcntl.h> #include <signal.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #...
/* hgEnsGeneXRef - Create table that links Ensembl Transcript ID to IDs */ /* from other databases and a gene description. */ #include "common.h" #include "linefile.h" #include "hash.h" #include "options.h" #include "dystring.h" #include "obscure.h" #include "ensXRefZfish.h" #include "sqlNum.h" #include "hdb.h" void ...
/*********************************************************************** 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...
#include <stdio.h> #include <string.h> #include "common.h" #include "../qrspec.h" #include "../qrencode_inner.h" #include "decoder.h" #ifndef SRCDIR # define SRCDIR #endif static void print_eccTable(void) { int i, j; int ecc; int data; int spec[5]; puts("\nPrinting ECC table.\n"); for(i=1; i<=QRSPEC_VERSION_MA...
/* ------------------------------------------------------------------------------ Licensing information can be found at the end of the file. ------------------------------------------------------------------------------ frametimer.h - v0.1 - Framerate timer functionality. Do this: #define FRAMETIMER_IMPLEMENTATI...
/* * ========================================================================== * * Filename: HPGmatrix.h * * Description: header files for functions in matrix.c * * Version: 1.0 * Created: 12/30/11 18:09:26 * Revision: 10/15/12 * Compiler: gcc * * Author: <...
// 0x0700B070 - 0x0700B160 static const Vtx pss_seg7_vertex_0700B070[] = { {{{ -5906, -4217, 3701}, 0, { 0, 478}, {0xff, 0xff, 0xff, 0xff}}}, {{{ -5845, -4217, 3701}, 0, { 478, 480}, {0xff, 0xff, 0xff, 0xff}}}, {{{ -5845, -4252, 3701}, 0, { 478, 990}, {0xff, 0xff, 0xff, 0xff}}}, ...
/** * oxcart is licensed under the terms of the MIT license reproduced below. * * Copyright © 2014 <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, inc...
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* plugins/preauth/pkinit/pkinit_kdf_test.c */ /* * Copyright (C) 2011 by the Massachusetts Institute of Technology. * All rights reserved. * * Export of this software from the United States of America may * require a specific license from the Unite...
/* * This source code is public domain. * * Authors: <NAME> <<EMAIL>> */ /////////////////////////////////////////////////// // // PSM module loader // /////////////////////////////////////////////////// #include "libmodplug.h" #define PSM_ID_NEW 0x204d5350 #define PSM_ID_OLD 0xfe4d5350 #define IFFID_FILE 0x454c4...
#include "App.h" #include "VCal.h" #define CTRL_ADJ_UP 0 #define CTRL_ADJ_DOWN 1 #define CTRL_RETURN 2 #define CTRL_SAVE 3 #define LINE_PER_PAGE 7 #define CAL_TOTAL OPT_ID_EMEMY_Q1_LEN #define IS_EVENT(event0, mid0) \ (_self->super.super.mMsg->event == event0) \ &&(_self->super.super.mMsg->mid =...
/* This example solves the Poisson problem using Nitsche's method for weak imposition of Dirichlet boundary conditions. @article {NME:NME2863, author = {<NAME> and Dolbow, John and Harari, Isaac}, title = {Imposing Dirichlet boundary conditions with Nitsche's method and spline-based finite elements}, journal = {Inter...
//#define _GNU_SOURCE #include <dlfcn.h> #include <stdio.h> #include <fcntl.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/syscall.h> #include <sys/ioctl.h> #include <link.h> #include "armor.h" #include "lbr-state.h" #include "../../include/common/util/safeio.h" /* F...
/* Copyright (C) 2014, The University of Texas at Austin This file is part of libflame and is available under the 3-Clause BSD license, which can be found in the LICENSE file at the top-level directory, or at http://opensource.org/licenses/BSD-3-Clause */ #include "FLAME.h" #include "test_libflame.h...
// // breakout.c // // Computer Science 50 // Problem Set 3 // // standard libraries #define _XOPEN_SOURCE #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> // Stanford Portable Library #include <spl/gevents.h> #include <spl/gobjects.h> #include <spl/gwindow.h> // height and width of game'...
#ifdef SH7722_DEBUG_LAYER #define DIRECT_ENABLE_DEBUG #endif #include <config.h> #include <stdio.h> #include <sys/mman.h> #include <asm/types.h> #include <directfb.h> #include <fusion/fusion.h> #include <fusion/shmalloc.h> #include <core/core.h> #include <core/coredefs.h> #include <core/coretypes.h> #include <c...
// MIT License // Copyright (c) 2016 <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, p...
/* Name: <NAME> (Last, First) Project: PA-1b (A Simple UNIX Shell) File: osh Instructor: <NAME> Class: cs4103-sp15 LogonID: cs410368 A simple UNIX shell with history feature My solution to the first assignment in Operating System Concepts, 9e (Silberschatz, Galvin, and Gagne; 2009, 2011, or 2012) */ /** * Import req...
/* ethinit.c - ethinit, eth_phy_read, eth_phy_write */ #include <xinu.h> struct ethcblk ethertab[1]; /*------------------------------------------------------------------------ * eth_phy_read - Read a PHY register *------------------------------------------------------------------------ */ uint16 eth_phy_read ( ...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (the "License"). You may not use this file except in compliance * with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * o...
/* * Copyright (c) 2013 Red Hat Inc. * * 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 conditions and the * ...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <stdint.h> #include <fcntl.h> #include <time.h> #include <termios.h> #include <omp.h> #include <SDL2/SDL_mixer.h> #define NotesNUM 5 #define DISPLAY_L 1 #define DISPLAY_R 2 #define SWITCHES 3 #define PUSHBUTTON 4 #define GREENLEDS 5 #defi...
/* * cylinder.c - This file contains the functions for dealing with cylinders. * * $Id: cylinder.c,v 1.29 2012/10/17 04:25:57 johns Exp $ */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define TACHYON_INTERNAL 1 #include "tachyon.h" #include "macros.h" #include "vector.h" #incl...
#include <flowi_core/image.h> #include <nanosvg.h> #include <nanosvgrast.h> #include <stb_image.h> #include "atlas.h" #include "image_private.h" #include "internal.h" #include "string_allocator.h" #include "vertex_allocator.h" ////////////////////////////////////////////////////////////////////////////////////////////...
// // CBValidationFunctions.h // cbitcoin // // Created by <NAME> on 26/08/2012. // Copyright (c) 2012 <NAME> // // This file is part of cbitcoin. It is subject to the license terms // in the LICENSE file found in the top-level directory of this // distribution and at http://www.cbitcoin.com/license.html. No par...
/* * PolyHJ: Polymorphic Hash Join. * * (a) prepare_threads_meta() * (b) prepare_threads_meta_cleanup() * (c) run_threads() */ #ifndef _GNU_SOURCE #define _GNU_SOURCE /* CPU_SET(), CPU_ZERO(), pthread_attr_setaffinity_np() */ #endif #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <string....
#include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <zlib.h> #include <assert.h> // file handling #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <sys/types.h> #include <dirent.h> #include "shrimp_var.h" #define LINE_MAX 256 static int Rflag = false; s...
/* * lxc: linux Container library * * (C) Copyright IBM Corp. 2007, 2008 * * Authors: * <NAME> <daniel.lezcano at free.fr> * <NAME> <<EMAIL>> * * 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 Softw...
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * massF7.c * * Code generation for function 'massF7' * */ /* Include files */ #include <string.h> #include "...
/*//////////////////////////////////////////////////////////////////////// Copyright (c) 1995-2000 <NAME> and ETL,AIST,MITI Copyright (c) 2001-2006 National Institute of Advanced Industrial Science and Technology (AIST) AIST-Product-ID: 2000-ETL-198715-01, H14PRO-049, H15PRO-165, H18PRO-443 Permission to use this mate...
/*** *qsort.c - quicksort algorithm; qsort() library function for sorting arrays * * Copyright (c) 1985 - 1999 Microsoft Corporation. All rights reserved.* *Purpose: * To implement the qsort() routine for sorting arrays. * *******************************************************************************/ ...
#include "rsbench.h" // Prints program logo void logo(int version) { border_print(); printf( " _____ _____ ____ _ \n" " | __ \\ / ____| _ \\ | | \n" " | |__) | (___ | |_) | ___ _ __ ___| |__ \n" " |...
#include <edhoc/edhoc.h> #include <edhoc/creddb.h> #include <util.h> #include "nanocoap.h" #if defined(WOLFSSL) #ifndef WOLFSSL_USER_SETTINGS #include <wolfssl/options.h> #endif #include <wolfssl/wolfcrypt/sha256.h> #elif defined(HACL) #define HASH_INPUT_BLEN (256) typedef struct hacl_Sha256 hacl_Sha256; str...
/* * Copyright (c) 2021 ASPEED Technology Inc. * * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr.h> #include <sys/printk.h> #include <sys/byteorder.h> #include <string.h> #include <device.h> #include <drivers/espi_aspeed.h> #define ESPI_PLD_LEN_MAX (1UL << 12) #define ESPI_PLD_LEN_MIN (1UL << 6) #define...
/* Copyright (C) 2018-2019 Genome Research Ltd. Author: <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 ...
/* $OpenBSD: main.c,v 1.16 2009/10/27 23:59:23 deraadt Exp $ */ /* * Copyright (c) 1980, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met:...
/* * Copyright (c) 2022 OpenLuat & AirM2M * * 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, p...
/* * Copyright 2017, DornerWorks * * This software may be distributed and modified according to the terms of * the GNU General Public License version 2. Note that NO WARRANTY is provided. * See "LICENSE_GPLv2.txt" for details. * * @TAG(DORNERWORKS_GPL) * * This data was produced by DornerWorks, Ltd. of Grand R...
/**************************************************************************** * GPGGA msg publisher * Copyright (c) 2015, <NAME> <<EMAIL>> & <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are me...
/* poly1305 implementation using 64 bit * 64 bit = 128 bit multiplication and 128 bit addition assumes the existence of uint64_t and uint128_t */ #include "config.h" #include "poly1305.h" #include "poly1305_internal.h" enum { POLY1305_BLOCK_SIZE = 16 }; typedef struct poly1305_state_ref_t { uint64_t r[3]; uint6...
/* * Copyright (c) 2009, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ /* Demo ...
#include "utils.h" #include <windows.h> #define FILE_TYPES_COUNT 3 void file_check(int iteration, bool *p_progress, char *file_ext, const int trailer_size, bool (*is_header)(byte_t *, int), bool (*is_trailer)(byte_t *, int), void (*get_trailer)(byte_t *)); // Defines the order in which file are being tested enum { ...
/* WARNING: Connecting an AVR to ethernet without magnetics is VERY DANGEROUS. It may cause high voltages to go through the AVR and destroy it in DANGEROUS that may harm personal safety. Do only at your own risk. */ #include <avr/io.h> #include <avr/interrupt.h> #include <avr/sleep.h> #include <util/delay.h> #i...
/* Copyright 2020 <NAME> THIS SOFTWARE IS CONTRIBUTED SUBJECT TO THE TERMS OF YOU MAY OBTAIN A COPY OF THE LICENSE AT https://www.apache.org/licenses/LICENSE-2.0. THIS SOFTWARE IS LICENSED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMP...
/* * (C) Copyright 2010,2011 * NVIDIA Corporation <www.nvidia.com> * * See file CREDITS for list of people who contributed to this * project. * * 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 Fou...
// Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima). // // 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 re...
// // main.c // kqueue_test // // Created by number201724 on 2021/3/5. // #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/event.h> #include <sys/time.h> #include <netinet/in.h> #include <errno.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include ...
/* handle ARP Usage #1: At startup, we make a synchronous request for the local router. We'll wait several seconds for a response, but abort the program if we don't receive a response. Usage #2: While running, we'll need to respond to ARPs. That's because we may be ...
/* * Copyright (C) 2015 <NAME> <<EMAIL>.fu-berlin.de> * Copyright (C) 2015 Hamburg University of Applied Sciences * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @{ * * @file * ...
/** @file * Copyright (c) 2019-2020, 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 * * ht...
#include "pgroonga.h" #include "pgrn-compatible.h" #include "pgrn-global.h" #include "pgrn-groonga.h" #include "pgrn-tokenize.h" #include <catalog/pg_type.h> #include <utils/array.h> #include <utils/builtins.h> #include <utils/json.h> static grn_ctx *ctx = &PGrnContext; static grn_obj *lexicon; static grn_obj tokeniz...
/* * LCD interface * LCD: ST7565R / AQM1248 * 2016-2021 (C) Mizutani Lab */ #include <htc.h> #include "lcd.h" const unsigned char cchar[43][5] = { {0x7C,0xA2,0x92,0x8A,0x7C}, // 30 0 {0x00,0x84,0xFE,0x80,0x00}, // 31 1 {0xE4,0x92,0x92,0x92,0x8C}, // 32 2 {0x44,0x82,0x92,0x92,0x6C}, // 33 3 {0x30,0x28,0...
/* * License: MIT * * Ideas taken from: * http://www.cs.brown.edu/~pff/dt/ * http://www.cs.auckland.ac.nz/~rklette/TeachAuckland.html/mm/MI30slides.pdf * * Original implementation: <NAME>, https://github.com/hosang/adt * Anisotropic extension by <NAME> */ #include "Python.h" #include "numpy/arrayobject.h" #i...
#include "bst.h" int get_value_from_user(void) { int val = -1; printf ("Input a Value[0-1000] : "); scanf("%d", &val); return val; } struct bt_node * create_bt_node (int val) { struct bt_node *n = (struct bt_node *) calloc(1, sizeof(struct bt_node)); if (n) { n->v...
/* * hostapd / Configuration helper functions * Copyright (c) 2003-2012, <NAME> <<EMAIL>> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "crypto/sha1.h" #include "common/ieee802_11_defs.h" ...
#include "stm32f10x.h" #include "stm32f10x_exti.h" #include "stm32f10x_gpio.h" #include "stm32f10x_usart.h" #include "stm32f10x_rcc.h" #include "lcd.h" #include "touch.h" #include "misc.h" /* function prototype */ void RCC_Configure(void); void GPIO_Configure(void); void NVIC_Configure(void); void ADC_Con...
/* * Copyright 2019 <NAME>, <NAME>, <NAME>, * <NAME>, <NAME>, <NAME>, <NAME>, * <NAME>, <NAME>, <NAME>, <NAME>, * <NAME>, <NAME>, <NAME>, <NAME>, <NAME> * * This file is part of acados. * * The 2-Clause BSD License * * Redistribution and use in source and binary forms, with or without * modification, are per...
/* $OpenBSD: pcib.c,v 1.14 2004/02/27 21:46:44 grange Exp $ */ /* $NetBSD: pcib.c,v 1.6 1997/06/06 23:29:16 thorpej Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME>. * * Redistribution and...
#include <linux/firmware.h> #include <linux/delay.h> #include <linux/gpio.h> #include <mach/gpiomux.h> #include <linux/i2c.h> #include <linux/slab.h> #include <asm/unaligned.h> #include "mms100a_ts.h" #define PAGE_HEADER 3 #define PAGE_DATA 1024 #define PAGE_CRC 2 #define PACKET_SIZE (PAGE_HEADER + PAGE_DATA + PAG...
/************************************************************************** * Parts copyright (c) 2001, 2002, 2003 by <NAME>. * * All rights reserved. * * Parts copyright (c) 2004, 2006 by <NAME>, /k/ Embedded Java * * Solutions. All rights reser...
/* * Google Keep client for Samsung Gear Fit 2 (Pro) * Copyright (c) 2020, <NAME> <<EMAIL>> * This software may be distributed under the terms of the Apache 2.0 license. */ #include <net_connection.h> #include <sys/socket.h> #include <openssl/ssl.h> #include <stdbool.h> #include <ctype.h> #include <netdb.h> #inclu...
/* * Include processor definitions. */ #include "pic32mz.h" #define MHZ 200 /* CPU clock in MHz. */ extern void bcopy_under_test(const void *src, void *dest, unsigned n); /* * Main entry point at bd001000. * Setup stack pointer and $gp registers, and jump to main(). */ asm (" .section ....
#include <initguid.h> #include <shlobj.h> #include <windows.h> #include <hidsdi.h> #include <setupapi.h> #include <stdbool.h> #include <stdint.h> #include <stdlib.h> #include "mm/mm.h" #include "util/cmdline.h" #include "util/defs.h" #include "util/log.h" #include "util/mem.h" DEFINE_GUID( hid_guid, 0x4D1E...
// SPDX-License-Identifier: GPL-2.0-only /* * Maxim Integrated DS1803 and similar digital potentiometer driver * Copyright (c) 2016 <NAME> * Copyright (c) 2022 <NAME> * * Datasheet: https://datasheets.maximintegrated.com/en/ds/DS1803.pdf * Datasheet: https://datasheets.maximintegrated.com/en/ds/DS3502.pdf * * D...
/* MIT License Copyright (c) 2021 PCSX-Redux authors 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, pub...
/* llcart.f -- translated by f2c (version 19990503). You must link the resulting object file with the libraries: -lf2c -lm (in that order) */ #include "f2c.h" /* Copyright(c) 1997, Space Science and Engineering Center, UW-Madison */ /* Refer to "McIDAS Software Acquisition and Distribution Policies" */ /* in th...
//////////////////////////////////////////////////////////////////////////// //// LCD420_S3.C //// //// Driver for common 4x20 LCD modules //// //// //// //// lcd_init() Must be called before any other function. //// //// //// //// lcd_putc(c) Will display c on the next position of the LCD. //// //// The following have...
/***************************************************************************** * * * Copyright 2018 <NAME> * * * * Licensed ...
/* * Screen Driver for Allegro/Android * #define ANDROID=1 for Android support on Allegro * * Adapted to version 0.93 by <NAME> * Updated to new driver format <NAME> 2019 */ #include <stdio.h> #include "device.h" #include "fb.h" #include "genmem.h" #include "genfont.h" #if ANDROID #define ALLEGRO_UNSTABLE #endif...
#include "main.h" #include "stm32f4xx_hal.h" /* USER CODE BEGIN Includes */ /* vim: set ai et ts=4 sw=4: */ #include <string.h> #include <stdarg.h> #include "ili9341.h" #include "ili9341_touch.h" #include "fonts.h" #include "testimg.h" /* USER CODE END Includes */ /* Private variables --------------------------------...
/* Project: Pinball Name: amount_lines.h Authors: macasal & sgalella Description: count lines */ #include <stdio.h> #include "pinball.h" void amount_lines(int table[50][50], int s[10]){ int i,j,l=0; for (i=0;i<10;i++) //initializing the vector in 0 s[i]=0; for(i=0;i<50;i++){ //we go through the matrix checking if...
/* * lxc: linux Container library * * (C) Copyright IBM Corp. 2007, 2008 * * Authors: * <NAME> <daniel.lezcano at free.fr> * <NAME> <normand at fr.ibm.com> * * 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 ...
// Copyright 2018 Schibsted #include "sbp/bconf.h" #include "etcdclient.h" #include "sbp/http.h" #include "sbp/json_vtree.h" #include "sbp/logging.h" #include "sbp/memalloc_functions.h" #include "sd_registry.h" #include "sbp/vtree.h" #include "sbp/url.h" #include <netdb.h> #include <stdio.h> #include <string.h> #incl...