text
stringlengths
3.08k
10.5k
/*- * Copyright (c) 2006 Verdens Gang AS * Copyright (c) 2006-2011 Varnish Software AS * Copyright (c) 1983, 1993 The Regents of the University of California. * All rights reserved. * * Author: <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause * * Redistribution and use in source and binary forms, wi...
// life #include <stdlib.h> #include "common.h" #include "system.h" #define NUMGRIDS 3 #define STARTGRID NUMGRIDS - 1 typedef struct { int cell; int dir[8]; int x, y; int flash; } CELL; int grid_Width, grid_Height; CELL *grid_Array[NUMGRI...
/* * The PCI Library -- Configuration Access via /proc/bus/pci * * Copyright (c) 1997--2003 <NAME> <<EMAIL>> * * Can be freely distributed and used under the terms of the GNU GPL. */ #define _GNU_SOURCE #include <stdio.h> #include <string.h> #include <unistd.h> #include <errno.h> #include <fcntl.h> #include <sy...
#include <stdio.h> #include <string.h> #include "erl_driver.h" #define put_int32(i, s) {((char*)(s))[0] = (char)((i) >> 24) & 0xff; \ ((char*)(s))[1] = (char)((i) >> 16) & 0xff; \ ((char*)(s))[2] = (char)((i) >> 8) & 0xff; \ ((char*)(s))[3] = (ch...
// Lab15_ADCmain.c // Runs on MSP432 // Test the operation of the GP2Y0A21YK0F infrared distance // sensors by repeatedly taking measurements. Either // perform statistical analysis of the data, stream data // directly from all three channels, or stream calibrated // measurements from all three channels. In this case...
/* A Bison parser, made by GNU Bison 2.3. */ /* Skeleton interface for Bison's Yacc-like parsers in C Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU...
/* * xgeqp3.c * * Code generation for function 'xgeqp3' * */ /* Include files */ #include "rt_nonfinite.h" #include "strategicPort_three_assets.h" #include "xgeqp3.h" #include "error.h" #include "strategicPort_three_assets_emxutil.h" #include "colon.h" #include "strategicPort_three_assets_data.h" #include "lapack...
/** **************************************************************************************** * * @file user_periph_setup.c * * @brief Peripherals setup and initialization. * * Copyright (c) 2015-2019 Dialog Semiconductor. All rights reserved. * * This software ("Software") is owned by Dialog Semiconductor. * ...
/*++ Copyright (c) 1999-2000 Microsoft Corporation Module Name: ipr9x.c Abstract: This file contains the implementation of IP Receive buffer list manager. On Windows ME this is done to avoid fragmenting the non-paged pool when receive buffers are not pre-posted by AFVXD. Author...
/* libhs - public domain <NAME> <<EMAIL>> https://koromix.dev/libhs This software is in the public domain. Where that dedication is not recognized, you are granted a perpetual, irrevocable license to copy, distribute, and modify this file as you see fit. See the LICENSE file for more details. */ #i...
/** Copyright (c) 2012, <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: * Redistributions of source code must retain the above copyright notice, this list of conditions and the follo...
/* * Copyright (c) 2016 Intel 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/licenses/LICENSE-2.0 * * Unless required by applicable law or...
/* * Copyright (c) 2021-present, Trail of Bits, Inc. * All rights reserved. * * This source code is licensed in accordance with the terms specified in * the LICENSE file found in the root directory of this source tree. */ #pragma once #include <llvm/Config/llvm-config.h> #define LLVM_VERSION(major, minor) ((ma...
/* * The MIT License (MIT) * * Copyright (c) 2019 <NAME> (tinyusb.org) * * 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 *...
/** * @file * Ethernet Interface Skeleton * */ /* * Copyright (c) 2001-2004 Swedish Institute of Computer Science. * 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. Redistribution...
#include <math.h> #include <string.h> // para usar strings // Rotinas para acesso da OpenGL #include "opengl.h" // Rotinas para leitura de arquivos .hdr #include "rgbe.h" // Variáveis globais a serem utilizadas: // Dimensões da imagem de entrada int sizeX, sizeY; //arquivo para guardar as urls para os nomes dos a...
/* Copyright 2009, UCAR/Unidata and OPeNDAP, Inc. See the COPYRIGHT file for more information. */ #include <sys/stat.h> #include <unistd.h> #include <fcntl.h> #include <sys/types.h> #ifdef HAVE_NETINET_IN_H #include <netinet/in.h> #endif #include "ocinternal.h" #include "ocdebug.h" #include "http.h" #include "read....
/* * stream_vstream.c * * Copyright (C) <NAME> * * This file is part of MPlayer, a free movie player. * * 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, or (at your op...
/* * Copyright (c) 1993-1997, Silicon Graphics, Inc. * ALL RIGHTS RESERVED * Permission to use, copy, modify, and distribute this software for * any purpose and without fee is hereby granted, provided that the above * copyright notice appear in all copies and that both the copyright notice * and this permission...
/************************************************************************************ Filename : gamma.c Content : AMS568 gamma correction Created : Authors : <NAME> Copyright : Copyright (c) 2014-present, Facebook, Inc. All rights reserved. This source code is licensed under...
/* Copyright (c) 2013 <NAME> <<EMAIL>> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, mod...
/* * ACBoard.c */ #include <math.h> #include "string.h" #include <stdio.h> #include <ctype.h> #include <stdarg.h> #include <stdbool.h> #include <float.h> #include "usb_cdc_fops.h" #include "inputValidation.h" #include "HeatCtrl.h" #include "ADCMonitor.h" #include "systemInfo.h" #include "USBprint.h" #include "CAProt...
/****************************************************************************** * File Name : cic_filter_l_N8_M3_f3.c * Date First Issued : 03/27/2016 * Board : STM32F373 filtering * Description : General purpose cic long filter for N(delays)=8, M(sections)=3 ******************************...
#include <stdio.h> #include <stdlib.h> #define NOT_FOUND -1 int find_gt_nd2(int *sequence, size_t sequence_size); int find_gt_nd2_ex(int *sequence, size_t sequence_size); int main(int argc, char *argv[]) { int sequence_1[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}; printf("{0, 1, 2, 3, 4, 5, 6, 7, 8, 9} :...
#include "stdinc.h" #include "channel.h" #include "client.h" #include "hash.h" #include "match.h" #include "ircd.h" #include "numeric.h" #include "send.h" #include "s_conf.h" #include "msg.h" #include "parse.h" #include "modules.h" #include "s_serv.h" #include "supported.h" static int _modinit(void); static void _modd...
/* Copyright (c) 2012 <NAME>, http://thejustinwalsh.com/ 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, me...
/* * $OpenBSD: dup2test.c,v 1.3 2003/07/31 21:48:08 deraadt Exp $ * $OpenBSD: dup2_self.c,v 1.3 2003/07/31 21:48:08 deraadt Exp $ * $OpenBSD: fcntl_dup.c,v 1.2 2003/07/31 21:48:08 deraadt Exp $ * * Written by <NAME> <<EMAIL>> 2002 Public Domain. * * $FreeBSD: src/tools/regression/file/dup/dup.c,v 1.2.2.1.2.1 200...
#include "intel_context.h" #include "intel_tex.h" #include "main/enums.h" #include "main/formats.h" /** * Choose hardware texture format given the user's glTexImage parameters. * * It works out that this function is fine for all the supported * hardware. However, there is still a need to map the formats onto * h...
/* ********************************************************** * Copyright (c) 2015-2018 Google, Inc. All rights reserved. * **********************************************************/ /* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following ...
/* * Copyright (c) CERN 2013-2017 * * Copyright (c) Members of the EMI Collaboration. 2010-2013 * See http://www.eu-emi.eu/partners for details on the copyright * holders. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. *...
// Copyright 2018 The Chromium OS Authors. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of con...
/* * 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, * publish, ...
/* This file contains: NewTrace4 add an SpTrace record to the list InterpTrace4 return an SpTrace, interpolated on a2center FreeTrace4 free memory internal: CopyTrace4 copy out one SpTrace */ # include <stdio.h> # include <stdlib.h> # include <string.h> # include "stis.h" # include "calstis4.h" # include "hstcale...
// Copyright (c) <NAME> <<EMAIL>> // // This Source Code Form is subject to the terms of the MIT License. // If a copy of the MIT License was not distributed with this file, // You can obtain one at https://spdx.org/licenses/MIT.html. #include "matoya.h" #include <string.h> #include <stdio.h> #include "jnih.h" #def...
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD // // 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...
/* snpCheckCluster -- check for clustering errors. */ /* First version checks insertions only. */ /* assuming input already filtered on locType = 'between' and class = 'insertion' */ /* assert insertions in sorted order */ /* assert end == start */ /* Copyright (C) 2013 The Regents of the University of California * ...
/* * Discord erlpack - tidied up for D++, Craig Edwards 2021. * * MessagePack system dependencies modified for erlpack. * * Copyright (C) 2008-2010 <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 ...
/* * dev_period_counter.c * * Created: 6/22/2015 4:40:10 PM * Author: Chip */ #include <avr/io.h> #include <avr/interrupt.h> #include <stdbool.h> #include "usiTwiSlave.h" #include "dev_period_counter.h" volatile uint8_t dev_period_overflow_cnt; // inc by ISR volatile uint8_t dev_period_overflow; // set by ...
/*********************************************************************** *Copyright (C) 2005 ���ڰ��ƴ������޹�˾��ƷӦ��һ�� * All rights reserved. *File name: �� Global.c *Version: ��0.1 *Author: cjinzong *update: 2010-05-23 *Description: ��Ҫ����һЩϵͳ��ʼ��������һЩȫ���ֲ��÷���ĺ����� *History: *...
/* AUTORIGHTS Copyright (C) 2007 Princeton University This file is part of Ferret Toolkit. Ferret Toolkit 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) any later ver...
/* Write a menu driven program to read a sparse matrix of integer values, search and * print the appropriately triple < row, column, "value" > that represents the elements in the sparse matrix: Expected Tasks: => read a matrix (let it be a sparse matrix) //for complexity, if you can, take a matrix find whether it ...
#include "line.h" #include "core.h" #include "cloth.h" #include "weather.h" #include "config.h" #include "text.h" #include "player.h" #include "day.h" #include "animation.h" #include "clothManager.h" #include <stdbool.h> #include <string.h> typedef struct { Cloth** cloths; s32 length; } Line; static Cloth* _...
/* SDL_rtf: A companion library to SDL for displaying RTF format text Copyright (C) 2003-2020 <NAME> <<EMAIL>> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is gran...
/* STM32F4-3DSound - Copyright (C) 2015 <NAME>. This file is part of STM32F4-3DSound STM32F4-3DSound 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 of the License, or (at your option) a...
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 <NAME> / <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as ...
/******************************************************************************* @ddblock_begin copyright Copyright (c) 1997-2018 Maryland DSPCAD Research Group, The University of Maryland at College Park Permission is hereby granted, without written agreement and without license or royalty fees, to use, copy, modif...
/* * Copyright (C) 2008 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...
/* mbed Microcontroller Library * Copyright (C) 2008-2009 ARM Limited. All rights reserved. * * ARM7 version of CMSIS-like functionality - not advised for use outside mbed! */ #include <stdint.h> #include "LPC23xx.h" #define CLOCK_SETUP 1 #define SCS_Val 0x00000020 #define CLKSRCSEL_Val ...
/* waitsocket - delay execution of program until its sockets are written to */ #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <strings.h> #include <unistd.h> #include <arpa/inet.h> #include <netinet/in.h> #include <sys/select.h> #include <sys/socket.h> #include <sys/un.h> #i...
#include "UART_Bluetooth.h" #include <avr/io.h> #include <avr/interrupt.h> #include "Command_Handler.h" #include "nrf24.h" #include <stdlib.h> #include <string.h> uint8_t* uartBufferPos; uint8_t* uartTxMessageEnd; bool commandAvailable; void initBluetoothUart(){ // UART Initialization : 8-bit : No p...
/** Atomix project, main.c, TODO: insert summary here Copyright (c) 2015 Stanford University Released under the Apache License v2.0. See the LICENSE file for details. Author(s): <NAME> */ #include <osl/inc/or_types.h> #include <orlib/orlib_blocks/orlib_types_wifi.h> #include "wifi_parameters.h" #include <stdio.h> #inc...
#include <signal.h> #include <stdio.h> #include <netdb.h> #include <string.h> #include <netinet/in.h> #include <unistd.h> #include <stdlib.h> #include <fcntl.h> #include <errno.h> #include "iobroker.c" #include "t-utils.h" static iobroker_set *iobs; static char *msg[] = { "Welcome to the echo service!\n", "test ms...
#include <limits.h> #include "mcx/mcx.h" #include "mcx/list.h" #include "mcx/file.h" #include "h/objects.h" #include "h/diagnostics.h" #include "h/parser.h" #include "h/linker.h" #include "h/compiler.h" char OUTPUTFLAG = 'o'; char MALLFLAG = 'm'; char WALLFLAG = 'w'; char DGNFLAG = 'd'; char EXPORTFLAG = 'e'; char ASM...
/* sencript */ /* An inplementation of one time pad encryption for ASCII input */ /* Inputs: */ /* decrypt mode and encripted file and password */ /* or encrypt mode and un-encripted file or hel...
/* Copyright (c) 2019 Unisoc Communications Inc. * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LIC...
/* * utf8.c * * Copyright (c) <NAME> 2004-8 * * Source code released under the GPL * */ #include <stdio.h> #include "utf8.h" /* UTF-8 encryption U-00000000 - U-0000007F: 0xxxxxxx U-00000080 - U-000007FF: 110xxxxx 10xxxxxx U-00000800 - U-0000FFFF: 1110xxxx 10xxxxxx 10xxxxxx U-00010000 - U-001FFFFF: 11110...
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include "runtime.h" #include "arch_GOARCH.h" #include "defs_GOOS_GOARCH.h" #include "os_GOOS.h" #pragma dynimport libc·fcntl fcntl "libc.so" #pragma dynimport...
/** \file * \brief Hardware Interface Functions - I2C bit-banged * * Use these functions to control the low level hardware of your * microcontroller. The pin and port definitions are in the file * i2c_phys_bitbang.h */ #include "i2c_phys_bitbang.h" /** \brief This function sends an ACK or NACK to the device...
/* (с) 2016 Copyright by vaclav2016, https://github.com/vaclav2016/xmppredis/ Boost Software License - Version 1.0 - August 17th, 2003 Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to...
/* * PV stage3 loader related definitions and functions * * Copyright IBM Corp. 2020 * * 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 <glib.h> #include <stdint.h> #include <string.h> #include "boot/ipl.h" #inclu...
#include "../graphserver.h" //HEADWAY FUNCTIONS Headway* headwayNew(int begin_time, int end_time, int wait_period, int transit, char* trip_id, ServiceCalendar* calendar, Timezone* timezone, int agency, ServiceId service_id) { Headway* ret = (Headway*)malloc(sizeof(Headway)); ret->external_id = 0; ret...
/* * Copyright (C) 2015 SDN-WISE * * 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 of the License, or * (at your option) any later version. * * This program is distribut...
// Options: --no-arrays --no-pointers --no-structs --no-unions --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...
#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...
/* Teem: Tools to process and visualize scientific data and images Copyright (C) 2005 <NAME> Copyright (C) 2004, 2003, 2002, 2001, 2000, 1999, 1998 University of Utah This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL) as...
// SPDX-License-Identifier: GPL-2.0 /* * Support to GPOs on ROHM BD71815 * Copyright 2021 ROHM Semiconductors. * Author: <NAME> <<EMAIL>> * * Copyright 2014 Embest Technology Co. Ltd. Inc. * Author: <EMAIL> */ #include <linux/gpio/driver.h> #include <linux/init.h> #include <linux/irq.h> #include <linux/module.h...
/* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS IN USING, DISPLAYING, A...
#include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #include <pthread.h> #include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include "client.h" #include "error_checking.h" #define equals(s1, s2) !strcmp(s1, s2) #define BOOLEAN char #define TRUE 1 #define FALSE ...
#include <stdio.h> #include "fpioa.h" #include "sysctl.h" #include "dmac.h" #include "fpioa.h" #include "i2s.h" #include "plic.h" #include "wav_decode.h" #include "uarths.h" #include "bsp.h" #include "wav.h" void io_mux_init(void) { #if 1 fpioa_set_function(34, FUNC_I2S0_OUT_D0); fpioa_set_function(35, FUNC_I...
#include "./inc/bill_operations.h" /*Function to generate Bill Header */ void generate_bill_header(char name[100], time_t date); /*Function to generate Bill Body */ void generate_bill_body( items item); /*Function to generate Bill Footer */ void generate_bill_footer(float total); /* Start of Application */ int main...
/* rndem.f -- translated by f2c (version 19980913). You must link the resulting object file with the libraries: -lf2c -lm (in that order) */ #include "f2c.h" /* Table of constant values */ static integer c__1 = 1; /* $ Disclaimer */ /* THIS SOFTWARE AND ANY RELATED MATERIALS WERE CREATED BY THE */ /* ...
// #include "redis_client_private.c" #include "redis_client.h" #ifdef _WIN32 #include <windows.h> #endif #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <hiredis/hiredis.h> #include "redis_client.h" static struct timeval timeout = { 1, 500000 }; // 1.5 seconds static r...
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "primpl.h" #include <str...
#include "common.h" #include "geneGraph.h" #include "genePred.h" #include "altGraphX.h" #include "ggMrnaAli.h" #include "psl.h" #include "dnaseq.h" #include "hdb.h" #include "jksql.h" #include "cheapcgi.h" #include "bed.h" #include "affyPres.h" #include "psl.h" void usage() { errAbort("correlateWithExpression - Takes...
#include "keyboard.h" #include "print.h" #include "interrupt.h" #include "io.h" #include "global.h" #include "ioqueue.h" #define KBD_BUF_PORT 0x60 #define esc '\033' #define backspace '\b' #define tab '\t' #define enter '\r' #define delete '\177' #define char_invisible 0 #define ctrl_l_char cha...
/* This file is part of Bohrium and copyright (c) 2012 the Bohrium team <http://www.bh107.org>. Bohrium 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 (at your option) ...
/** * <NAME> * 1/28/21 * Networking II * Dr. Rothe * * Desc: This file will run a simple http server that will only be able to return an indicated * file from the HTTP GET request. If it exists on the server side, it will return that file with * a HTTP 200 request. Otherwise, it will return an HTTP 404 ...
/* * NewSlide * 2011 - Afrothunder * Changes functionality of closing PSPgo Slide Screen */ #include <string.h> #include <pspsdk.h> #include <pspctrl.h> #include <psploadexec_kernel.h> #include <pspiofilemgr.h> #include <pspkernel.h> #include <pspsysmem_kernel.h> SceCtrlData pad; u8 vshmain_args[0x400]; int runnin...
/* * Check that fault injection works properly. * * Copyright (c) 2016 <NAME> <<EMAIL>> * Copyright (c) 2016-2018 The strace developers. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: ...
// // MODULE: NWPerf.H // // This file contains all the defines and prototypes for the performnce // monitoring DLL for NetWare redirector // // Date: Sept, 28 1993 // // The routines that load these structures assume that all fields // are packed and aligned on DWORD boundries. Alpha suppo...
#include "config.h" #include <malloc.h> #include <string.h> #include "file.h" #include "log.h" #include "mem.h" #define CONFIG_FILENAME "config.bin" #define CONFIG_DEFAULT_VSYNC true #ifdef DEBUG #define CONFIG_DEFAULT_WINDOW_MODE cwm_resizable #define CONFIG_DEFAULT_WIDTH 1280 #define CONFIG_DEFAULT_HEIGHT 720 #e...
/******************************************************************************* * Copyright (C) 2004-2006 Intel Corp. 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...
/* * This file is part of the coreboot project. * * Copyright (C) 2007-2008 coresystems GmbH * * 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. * * This program...
#define TC_STRING_IMPLEMENTATION #define TC_TERMINAL_IMPLEMENTATION #define TC_HISTORY_IMPLEMENTATION #define TC_EDITLINE_IMPLEMENTATION #include "../tc_string.h" #include "../tc_terminal.h" #include "../tc_history.h" #include "../tc_editline.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stda...
/****************************************************************************** * * Project: Shapelib * Purpose: Default implementation of file io based on stdio. * Author: <NAME>, <EMAIL> * ****************************************************************************** * Copyright (c) 2007, <NAME> * * This...
/**************************************************************************** ** Copyright (C) 2020 MikroElektronika d.o.o. ** Contact: https://www.mikroe.com/contact ** ** Permission is hereby granted, free of charge, to any person obtaining a copy ** of this software and associated documentation files (the "Software"...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <string.h> #include "state.h" #include "search.h" #include "eval.h" #include "hash.h" #include "plp.h" #include "next.h" #include "quiescence.h" #include "make.h" #include "timectrl.h" #define NOT_PV 0 #define IS_PV 1 #define NO_NU...
/* * This file is part of the coreboot project. * * Copyright (C) 2008 Arastra, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the h...
#include "common.h" void *dam_malloc(size_t size) { void *outptr=malloc(size); if(outptr==NULL) dam_report_error(1,"Out of memory\n"); return outptr; } void *dam_calloc(size_t nmemb,size_t size) { void *outptr=calloc(nmemb,size); if(outptr==NULL) dam_report_error(1,"Out of memory\n"); return outptr...
#include "../gbk.h" /** * add_node - adds a new node at the end of a cmdnode * @head: double pointer to head of list * @cmd: the command * @op: the operator between the current command the next one * Return: 0 on sucess -1 on failure */ int add_node(cmdnode **head, char *cmd, char *op) { cmdnode *newNode = sma...
/********************************************************************** * SEGGER Software GmbH * * Solutions for real time microcontroller applications * ********************************************************************** * ...
/********************************************************************* * _ _ _ * _ __ | |_ _ | | __ _ | |__ ___ * | '__|| __|(_)| | / _` || '_ \ / __| * | | | |_ _ | || (_| || |_) |\__ \ * |_| \__|(_)|_| \__,_||_.__/ |___/ * * www.rt-labs.com * Copyright 2020 rt-labs AB, Sweden. ...
/* general.h */ /* include beforehand the following: #include <stdio.h> // NULL FILE fopen feof fgets fclose fputs fputc gets #include <stdlib.h> the function code is in 'mystring.c' . */ #define Use(x) x=0;x=x #define Uses(s) s=s #define Usep(x) x=x #define Hi(x) (((x) >> 8) & 0xff) #define Lo(x) (...
#include <stdlib.h> #include <stdio.h> #include <sys/mman.h> #include <sys/stat.h> #include <simplehttp/queue.h> #include <simplehttp/simplehttp.h> #include <json/json.h> #include "png.h" #include "qrencode.h" /* * libqrencode * http://megaui.net/fukuchi/works/qrencode/index.en.html * * os x installation * http:/...
#include "server.h" bool read_config(const char * path){ config_file* cf; char buf[PATH_MAX]; realpath(path, buf); char* path_config = safe_calloc(strlen(buf) + 1, sizeof(char)); strcpy(path_config, buf); if ((cf = init_config(buf)) == NULL) { perror("read_config_file()"); r...
#include <fcntl.h> #include <limits.h> #include <signal.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <libusb-1.0/libusb.h> #include <linux/input-event-codes.h> #include <linux/uinput.h> #include "key_codes.h" #include "loading_util.h" #include "mouse_...
#include <stdio.h> #include <stdlib.h> struct sparse; void *add_element(struct sparse*, int, int, int); struct sparse *get_sparse(); void print_sparse(struct sparse*); void swap(int*, int*); void transpose(struct sparse*); int comparator(const void*, const void*); void sort(struct sparse*); int *create_row_start_index...
/* fswebcam - FireStorm.cx's webcam generator */ /*============================================================*/ /* Copyright (C)2005-2011 <NAME> <<EMAIL>> */ /* */ /* This program is distributed under the terms of the GNU */ /* General Pub...
/** * (C) Copyright 2017 Intel 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/licenses/LICENSE-2.0 * * Unless required by applicable law or...
/** * @file src/core/loadAsync/gfmLoadAsync_SDL2.c * * Load assets asynchronously. This implementation uses SDL2 for threading. */ #include <GFraMe/gfmAssert.h> #include <GFraMe/gfmError.h> #include <GFraMe/gfmLog.h> #include <GFraMe/gframe.h> #include <GFraMe_int/core/gfmLoadAsync_bkend.h> #include <SDL2/SDL_thr...