text
stringlengths
3.12k
18.7k
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2020 ARM Limited #define _GNU_SOURCE #include <errno.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ucontext.h> #include <sys/wait.h> #include "kselftest.h" #include "mte_common_util.h" #include "mte_def.h" #define BUF...
/* "A Precision Approximation of the Gamma Function" - <NAME> (1964) "Lanczos Implementation of the Gamma Function" - <NAME> (2001) "An Analysis of the Lanczos Gamma Approximation" - <NAME> (2004) approximation method: (x - 0.5) S(x) Gamma(x) = (x + g - 0.5) * ----------------...
/* * 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 program is distributed in the hope that it will be use...
/****************************************************************************** ** File: bsp_ut.c ** ** Author : <NAME> ** ** Purpose: ** BSP unit test implementation functions for FreeRTOS ** ** Based on src/bsp/pc-rtems/ut-src/bsp_ut.c with the following license terms: ** This is governed by the NASA O...
/*- * Copyright (c) 2004 <NAME> (SDG) * 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 condition...
/* * This file provides ECC correction for more than 1 bit per block of data, * using binary BCH codes. It relies on the generic BCH library lib/bch.c. * * Copyright © 2011 <NAME> <<EMAIL>> * * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> /*#include <asm/io.h>*/ #include <linux/types.h> #include <...
// // SIGVBox.c // Signals // // Created by <NAME> on 7/15/15. // Copyright (c) 2015 Signals. All rights reserved. // #include <stdlib.h> #include "SIGVBox.h" SIGVBox SIGVboxMake(SIGColor *colors, int totalColors, SIGColorHistogram histo) { SIGVBox vbox; SIGVboxInit(&vbox, colors, totalColors, histo); ...
/* 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...
/** * Copyright (c) 2017-present, 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. */ //File: macros.h ...
/* * Copyright (c) 1997-1999 Massachusetts Institute of Technology * * 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 versio...
/*************************************************************** Pro Yakyuu Nyuudan Test Tryout (JPN Ver.) video hardware emulation ****************************************************************/ #include "driver.h" static tilemap *fg_tilemap, *bg_tilemap; static UINT8 vram_bank; static UINT8 *tryout_vram, *try...
#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...
#include "cpu_gg1p4062utsw.h" #define gg1p4062utsw_rs(v) sunxi_lcd_gpio_set_value(0, 0, v) #define gg1p4062utsw_cs(v) sunxi_lcd_gpio_set_value(0, 1, v) #define lcd_cpu_wr_index_16b sunxi_lcd_cpu_write_index #define lcd_cpu_wr_data_16b sunxi_lcd_cpu_write_data static void lcd_power_on(u32 sel); static void lcd_power_...
/* * Copyright (c) 1996 by Internet Software Consortium. * * 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 SOFTWARE IS PROVIDED "AS IS" AND ...
/* Copyright (c) 2010-2018 the corto developers * * 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, mer...
#include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> #include "aws_functions.h" #define AWS_S3_VARIABLE "s3_auth_token" #define AWS_DATE_VARIABLE "aws_date" static void* ngx_http_aws_auth_create_loc_conf(ngx_conf_t *cf); static char* ngx_http_aws_auth_merge_loc_conf(ngx_conf_t *cf, void *parent, void *...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <math.h> #include <float.h> typedef struct point { int x; int y; } point; int gcd(int a, int b); int part1(bool** arr, point dimensions, point* ans); point part2(bool** grid, point dimensions, point x); int check1(bool** arr,...
/* Microsoft Reference Implementation for TPM 2.0 * * The copyright in this software is being made available under the BSD License, * included below. This software may be subject to other third party and * contributor rights, including patent rights, and no such rights are granted * under this license. ...
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright (C) 1998 by the FundsXpress, INC. * * All rights reserved. * * Export of this software from the United States of America may require * a specific license from the United States Government. It is the * responsibility of any person or ...
/* * Copyright (c) 2010-2011 Aalto University and RWTH Aachen University. * * 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 right...
/* * Decode and print Zephyr packets. * * http://web.mit.edu/zephyr/doc/protocol * * Copyright (c) 2001 <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that: (1) source code * distributions retain the above c...
/* * OSS-7 - An opensource implementation of the DASH7 Alliance Protocol for ultra * lowpower wireless sensor communication * * Copyright 2016 University of Antwerp * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obt...
/***************************************************************************** * common.c : Common helper function for the VLC deinterlacer ***************************************************************************** * Copyright (C) 2000-2017 VLC authors and VideoLAN * $Id: b6e580d91114efca758ec71b214d22b51ca704e7...
//######## Properties of the visual object (Memory Map) ########### HANDLE hFile_M_cntrX; double *M_cntrX; //1 HANDLE hFile_M_cntrY; double *M_cntrY; //2 HANDLE hFile_M_width; double *M_width; //3 HANDLE hFile_M_hight; double *M_hight; //4 HANDLE hFile_M_angle; double *M_angle; //5...
/* BEGIN_ICS_COPYRIGHT5 **************************************** Copyright (c) 2015-2020, Intel Corporation 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 copyrig...
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* plugins/preauth/otp/main.c - OTP kdcpreauth module definition */ /* * Copyright 2011 NORDUnet A/S. All rights reserved. * Copyright 2013 Red Hat, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * m...
/** * * progadr.c * * Programm physical address of KNX device * * Top-Level steps towards programming: * * 00010 Broadcast address enquriy * 00020 Device in programming mode answers with its physical addres * * Revision history * * Date Rev. Who what * --------------------------------------------------...
/* * * Copyright (c) International Business Machines Corp., 2001 * * 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 l...
// Robot Template app // // Framework for creating applications that control the Kobuki robot #include <math.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include "app_util.h" #include "app_error.h" #include "app_timer.h" #include "nrf.h" #include "nrf_delay.h" #include "nrf_gpio.h" #include "nrf_lo...
/* * YAFFS: Yet Another Flash File System. A NAND-flash specific file system. * * Copyright (C) 2002-2007 Aleph One Ltd. * for Toby Churchill Ltd and Brightstar Engineering * * Created by <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU...
/*************************************************************************//** * @file main.c * @version V1.00 * @brief Demo Azure RTOS NetX and ESP8266 WiFi module for M480 MCU. * * @copyright (C) 2020 Nuvoton Technology Corp. All rights reserved. **********************************************************...
/* * nixio - Linux I/O library for lua * * Copyright (C) 2009 <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....
/* * AWS IoT EduKit - Core2 for AWS IoT EduKit * Factory Firmware v2.3.0 * mic.c * * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. 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...
/* * Copyright 2013 <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 applicable law...
// See LICENSE.IBM for license details. #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <string.h> #include "tests/libs/src/include/xfiles-asid-nnid-table.h" void asid_nnid_table_info(ant * table) { int i = 0; fprintf(stderr, "[INFO] 0x%p <- Table Head\n", table); fprintf(stderr, "[INFO] ...
/*------------------------------------------------------------------------- * * pg_buffercache_pages.c * display some contents of the buffer cache * * contrib/pg_buffercache/pg_buffercache_pages.c *------------------------------------------------------------------------- */ #include "postgres.h" #include "a...
/* * This file is part of the coreboot project. * * Copyright (C) 2007-2008 Advanced Micro Devices, 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; version 2 of the License. * * ...
// Author: <NAME> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <ctype.h> typedef unsigned char byte; byte encrypt_block(byte p, byte* keys); byte decrypt_block(byte c, byte* keys); void feistel_round(byte L_in, byte R_in, byte* L_out, byte* R_out, byte key); byte feistel_round_function(byte i...
/* PipeWire * * Copyright © 2019 <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, pu...
#include <stdio.h> struct date{ int year; int month; int day; int zodiac; }; typedef struct date date; struct zodiac{ int marker[60]; int byteSize[60]; }; typedef struct zodia zodiac; void knowSign(struct date *d); void printSign(struct date *d); int charCount(FILE *const fp...
/** * @section License * * The MIT License (MIT) * * Copyright (c) 2014-2017, <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 limit...
/* * File part21.c created 14.08.2021, last modified 11.11.2021. * * The part21.c file is part of the restored optimization program * from the Hi-Tech C compiler v3.09 package. * * <NAME> & <NAME> 11.11.2021 */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <setjmp.h> #include ...
//One-Sided Gordonian Rectangles Processing for Sudoku. ***** /* //Function Declarations ************************** void oneSidedGordRectRow (void); void oneSidedGordRectColumn (void); */ //oneSidedGordRectRow Function *************************** void oneSidedGordRectRow (void) { int x, y, z, region, ...
// Copyright 2021 <NAME> // SPDX-License-Identifier: Apache-2.0 #include <mosquitto.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "client/network/mqtt/mqtt.h" struct mqtt_client { struct mosquitto *mosq; mqtt_client_config_t *config; void (*mqtt_callback)(mqtt_client_event_t *event, vo...
/* truncyk_check.c */ #include "config.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "easel.h" #include "esl_alphabet.h" #include "esl_sqio.h" #include "esl_msa.h" #include "esl_stopwatch.h" #include "esl_getopts.h" #include "hmmer.h" #include "infernal.h" static ESL_OP...
#include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <string.h> /*********************************************************************** * C template for programs that read from stdin and write to stdout. * Optionally, if an argument (not starting with the "-" character) * is passed, it is assumed to be...
#include "server.h" void migrateDataIncrementReadTarget(aeEventLoop *el, int fd, void *privdata, int mask) { long long start = timeInMilliseconds(); char buf[1024]; read(fd, buf, sizeof(buf)); aeDeleteFileEvent(server.el, fd, AE_READABLE | AE_WRITABLE); aeCreateFileEvent(server.el, server.migrate...
#include "minesweeper.h" #include <math.h> #include <stdio.h> #include <stdlib.h> /* Count the total number of cells needed to store in the game array */ int count_cells(int dim, int * dim_sizes) { int total_cells = 1; for (int i = 0; i < dim; i++) { total_cells = total_cells * dim_sizes[i]; } ...
/* * File: repl.c * ------------ * Presents the implementation of the Read-Eval-Print Loop for Lisp */ #include <interpreter.h> #include <garbage-collector.h> #include <environment.h> #include <evaluator.h> #include <stack-trace.h> #include <list.h> #include <assert.h> #include <string.h> #include <sys/file.h> #...
/* $NetBSD: boot.c,v 1.5 2003/10/21 12:18:02 itohy Exp $ */ /*- * Copyright (c) 1982, 1986, 1990, 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 *...
/* * Copyright (c) 2013 <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 copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL...
// Implementation of miscellaneous instructions #include <stdint.h> #include <stdbool.h> #include "cboy/instructions.h" #include "cboy/gameboy.h" #include "cboy/cpu.h" #include "execute.h" /* The enable interrupts instruction * --------------------------------- * Enables interrupts by setting the IME flag. * The s...
/********************************************************************** gtthread_sched.c. This file contains the implementation of the scheduling subset of the gtthreads library. A simple round-robin queue should be used. **********************************************************************/ /* Include as neede...
/* * Copyright (C) 2019 <NAME> <<EMAIL>> * * Licence: wxWindows Library Licence, Version 3.1 */ #include "gumcmodule.h" #include <gio/gio.h> #include <gum/gum-init.h> #include <gum/gum.h> #include <json-glib/json-glib.h> #include <libtcc.h> typedef struct _GumEnumerateSymbolsContext GumEnumerateSymbolsContext; t...
#include "umfileint.h" /* LINKED LIST FUNCTIONS */ void *list_new(List *heaplist) { List *list; CKP( list = malloc_(sizeof(List), heaplist) ); list->first = NULL; list->last = NULL; list->n = 0; return list; ERRBLKP; } /* This function frees a list; * Set free_ptrs if the pointers which have been...
/* * pg_type_map_by_oid.c - PG::TypeMapByOid class extension * $Id$ * */ #include "pg.h" static VALUE rb_cTypeMapByOid; static ID s_id_decode; typedef struct { t_typemap typemap; int max_rows_for_online_lookup; struct pg_tmbo_converter { VALUE oid_to_coder; struct pg_tmbo_oid_cache_entry { Oid oid; ...
#include <math.h> #include <string.h> #include <arpa/inet.h> #include "steady.h" void steady_write64be(unsigned char out[8], uint64_t in) { uint64_t be = __builtin_bswap64(in); memcpy(out, &be, 8); } void steady_write16be(unsigned char out[2], uint16_t in) { uint64_t be = htons(in); memcpy(out, &be, 2); } ui...
#include <stdio.h> #include <errno.h> #include <unistd.h> #include <stdbool.h> #include <stdlib.h> #include "bookstore.h" book_t* book_init(const char* isbn, const char* title, const char* author, const char* genre, const unsigned int stocked_qty, const unsigned int sold_qty, const double price) { ...
#include <arpa/inet.h> #include <unistd.h> #include <malloc.h> #include "sock.h" #include "ib.h" #include "debug.h" #include "config.h" #include "setup_ib.h" struct IBRes ib_res; int connect_qp_server () { int ret = 0, n = 0; int sockfd = 0; int peer_sockfd = 0; struct sockaddr_in...
/* Copyright (c) 2003 <NAME>, All rights reserved. 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; either version 2 of the License, or (at your option) any later version. */ #i...
/* * zgetdump - Tool for copying and converting System z dumps * * ELF core dump output format * * Copyright IBM Corp. 2001, 2018 * * s390-tools is free software; you can redistribute it and/or modify * it under the terms of the MIT license. See LICENSE for details. */ #include <assert.h> #include <elf.h> #in...
#include "joystick.h" #include <stdio.h> #include <errno.h> #include <string.h> #include <unistd.h> #include <stdlib.h> #include <stdint.h> #include <limits.h> #include <fcntl.h> #include <sys/ioctl.h> #include <linux/joystick.h> #include <stdbool.h> #include <math.h> static int parse_buttons(int lb, int rb); in...
/*------------------------------------------------------------------------- * * base64.c * Encoding and decoding routines for base64 without whitespace. * * Copyright (c) 2001-2019, PostgreSQL Global Development Group * * * IDENTIFICATION * src/common/base64.c * *---------------------------------------...
#include <math.h> #include <fitsio.h> #include "dadafits_internal.h" fitsfile *output[NSYNS_MAX]; float fits_offset[NCHANNELS * NPOLS]; float fits_scale[NCHANNELS * NPOLS]; float fits_weights[NCHANNELS]; float fits_freqs[NCHANNELS]; // Fit column ID's, looked up from the template. // If not present in the template, ...
/*---------------------------------------------------------------------------* | PDFlib - A library for generating PDF on the fly | +---------------------------------------------------------------------------+ | Copyright (c) 1997-2006 <NAME> and PDFlib GmbH. All rights reserved. | +-------...
/* DESCRIPTION: - Read a block of data replicates in which specfied key-columns do not change - blank lines will be ignored - Each call extracts a single block of data - the unchanging key-values - an array of "repeated-measures" values which are allowed to change within the block - an array of data for the bl...
#pragma once #include "stm32f4xx_hal_rcc_ex.h" #define __HAL_RCC_PWR_CLK_ENABLE() //-V2573 #define __HAL_RCC_GPIOB_CLK_ENABLE() //-V2573 #define __HAL_RCC_GPIOC_CLK_ENABLE() //-V2573 #define __HAL_RCC_GPIOA_CLK_ENABLE() //-V2573 #define __HAL_RCC_GPIOD_CLK_ENABLE() //-V2573 #define __HAL_RCC_GPIOE_CLK_ENABLE() //-V25...
/* Copyright 2020 <NAME> * Released under MIT license * * Driver for ST7735 LCD on Longan Nano board */ #include <stdint.h> #include "gd32vf103_gpio.h" #include "gd32vf103_spi.h" #include "gd32vf103_rcu.h" #include "systick.h" #include "lcd.h" uint16_t framebuffer[LCD_WIDTH * LCD_HEIGHT]; static void lcd_sele...
#include <stdio.h> #include <memory.h> #include "proj_hw04.h" #include "proj_hw04_test_commonCode.h" void dumpPCInstruction(WORD pc, WORD inst) { printf("PC: 0x%04x_%04x Instruction: 0x%04x_%04x\n", (pc >> 16) & 0xffff, pc & 0xffff, (inst >> 16) & 0xffff, inst & 0xffff); } void dumpFields(In...
/* * ======================================================================================= * * Author: <NAME> (je), <EMAIL> * Copyright (c) 2019 RRZE, University Erlangen-Nuremberg * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and asso...
/**********************************************************/ /** * 234Compositor - Image data merging library * * Copyright (c) 2013-2015 Advanced Institute for Computational Science, RIKEN. * All rights reserved. * **/ /**********************************************************/ // @file test_234byte_mandel.c...
#include "gui_use.h" int gui_txt_prop_interactive(gui_obj *gui){ if (gui->modal != TXT_PROP) return 0; if (gui->step == 0) { /* try to go to next step */ gui->step = 1; gui->free_sel = 1; } /* verify if elements in selection list */ if (gui->step >= 1 && (!gui->sel_list->next || (gui->ev & EV_A...
/* $Id$ Copyright 1989-2014 <NAME> This file is part of Linear/C3 Library. Linear/C3 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, either version 3 of the License, or any later v...
// Options: --argc --no-bitfields --checksum --comma-operators --compound-assignment --concise --consts --divs --embedded-assigns --pre-incr-operator --pre-decr-operator --post-incr-operator --post-decr-operator --unary-plus-operator --jumps --longlong --int8 --uint8 --no-float --main --math64 --muls --safe-math --no...
#include "system_common.h" #include "lmac_common.h" #include "lmac_ps_common.h" #include "driver_nrc_ps.h" #include "lmac_util.h" #include "standalone.h" #include <string.h> #include "nrc_wifi.h" #include "global_const.h" #if defined(SUPPORT_NVS_FLASH) #include "nvs_flash.h" #endif #define DECLARE_TASK(NAME, STACK_S...
// file:resample.c // (c) 2010- University of Oulu, Finland // Written by <NAME> <<EMAIL>> // Licensed under FreeBSD license. #include "LPI.h" /* Resampling with linear interpolation. Reduces to a simple boxcar filter when the filter length is an integer multiple of the original sample interval. Final sa...
/* uSockets is entierly opaque so we can use the real header straight up */ #include "../uSockets/src/libusockets.h" #include <stdio.h> #include <stdlib.h> #include <stdalign.h> #include <string.h> struct us_loop_t { /* We only support one listen socket */ alignas(16) struct us_listen_socket_t *li...
/****************************************************************************** * Named Data Networking plugin for XRootD * * Copyright © 2019-2020 California Institute of Technology * * * ...
/* * Provides registration of all codecs, parsers and bitstream filters for libavcodec. * Copyright (c) 2002 <NAME>. * * This file is part of FFmpeg. * * FFmpeg 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 Softwa...
/* chainloader.c - boot another boot loader */ /* * GRUB -- GRand Unified Bootloader * Copyright (C) 2002,2004,2007,2009,2010 Free Software Foundation, Inc. * * GRUB 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 So...
/* * Copyright (c) 1997-2006 <NAME> * Copyright (c) 1990 <NAME> * Copyright (c) 1990 Imperial College of Science, Technology & Medicine * Copyright (c) 1990 The Regents of the University of California. * All rights reserved. * * This code is derived from software contributed to Berkeley by * <NAME> at Imperial ...
/**************************************************************************//** * @file main.c * @version V1.00 * @brief Show whole ECC flow. Including private key/public key/Signature generation and * Signature verification. * * @note * Copyright (C) 2016 Nuvoton Technology Corp. All ri...
/* * Copyright (c) 2015 <NAME> * Copyright (c) 2015 <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...
/* * TMS9928A / TMS9928A video chip. */ #define TMS9928A_VRAM_SIZE (16 << 10) enum { TMS9928A_COLOUR_TRANSPARENT = 0, TMS9928A_COLOUR_BLACK = 1, TMS9928A_COLOUR_MEDIUM_GREEN = 2, TMS9928A_COLOUR_LIGHT_GREEN = 3, TMS9928A_COLOUR_DARK_BLUE = 4, TMS9928A_COLOUR_LIGHT_BLUE = 5, TMS9928A_COLO...
// Weo weo <NAME> weo Weo// // Weo weo cis1500 weo Weo// // Weo weo 16/10/15 weo Weo// // Weo weo assignment 1 weo Weo// // Weo weo a game of pigs weo Weo// #include<stdio.h> #include<stdlib.h> #include<time.h> //dice display code switch case that displays a different character drawn dice based on the...
/** Option handling * @file * * This source file is part of the Cone Programming Language C compiler * See Copyright Notice in conec.h */ #include "options.h" #include <string.h> #include <stdio.h> #include <stddef.h> #define MATCH_LONG 1 #define MATCH_SHORT 2 #define MATCH_NONE 3 #define PARSE_ARG (OPT_ARG_R...
// Copyright [2013] [<NAME>] // // 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 w...
/* * dht11.c * * Created on: 27 feb. 2021 * Author: <NAME> and <NAME> */ #include <wiringPi.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <time.h> /************************/ #include "dht11.h" #include "../utils.h" #include "../libs/systemlib.h" #include "../libs/systemtype.h" //...
/** mbed Microcontroller Library ****************************************************************************** * @file sys_api.c * @author * @version V1.0.0 * @date 2016-08-01 * @brief This file provides following mbed system API: * -JTAG OFF * -LOGUART ON/OFF * -OTA image switch ...
/** * @file sip/reply.c SIP Reply * * Copyright (C) 2010 Creytiv.com */ #include <re_types.h> #include <re_mem.h> #include <re_mbuf.h> #include <re_sa.h> #include <re_list.h> #include <re_fmt.h> #include <re_uri.h> #include <re_udp.h> #include <re_sip.h> #include "sip.h" static int vreplyf(struct sip_strans **st...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (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 * or http://www.opensolar...
/* * Generated by asn1c-0.9.22 (http://lionet.info/asn1c) * From ASN.1 module "MyModule" * found in "module.asn1" * `asn1c -S/skeletons` */ #include <asn_internal.h> #include "VehicleType.h" int VehicleType_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void ...
/** * * Copyright (C) 2013 Nulab, Inc. */ #include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> typedef struct { ngx_flag_t enable; ngx_int_t max; ngx_hash_t types; ngx_array_t *types_keys; } ngx_http_length_hiding_conf_t; typedef struct { ...
//====================================================================== /** * @file * udp.c * * @section udp.c_general General file information * * @brief * * * @author wolfer * @date 07.07.2011 * * * @section udp.c_copyright Copyright * * Copyright 2011 Weiss Robotics, D-71636 Ludwigsbu...
/* Copyright 2018 Canaan 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 in ...
/*- * Copyright (c) 1998 <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 retain the above copyright * notice, this list of conditions a...
/** * @file mapping.c NAT Mapping Behaviour discovery * * Copyright (C) 2010 Creytiv.com */ #include <re_types.h> #include <re_mbuf.h> #include <re_fmt.h> #include <re_mem.h> #include <re_sa.h> #include <re_udp.h> #include <re_tcp.h> #include <re_list.h> #include <re_stun.h> #include <re_natbd.h> #define DEBUG_M...
#include <stdio.h> #include "duktape.h" #include "duk_cbor.h" #define FMT_CBOR 1 #define FMT_JSON 2 #define FMT_JX 3 #define FMT_JS 4 static int read_format = 0; static int write_format = 0; static int write_indent = 0; static void push_stdin(duk_context *ctx, int to_string) { unsigned char *buf; size_t off; size...
#include "quickjs.h" #include "cutils.h" #include "quickjs-libc.h" #define HTTPSERVER_IMPL #include "httpserver.h" #include "quickwebserver.h" QWSServerContext QWS; struct http_server_s* server; JSRequestArray *serverRequests; /** * Extracting headers from JS object and applying them to the * current server respon...
#include "server.h" int g_efd; //全局变量, 保存epoll_create返回的文件描述符 struct myevent_s g_events[MAX_EVENTS + 1]; //自定义结构体类型数组. +1-->listen fd int recv_n(int new_fd, char *buf, int len) { int ret; int total = 0; while (total < len) { ret = recv(new_fd, buf + total, len - total, 0); if (ret >= 0) { total...