repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
lbovolini/ordena-comprime-enad
ordenacao/string_aux.c
<reponame>lbovolini/ordena-comprime-enad #include <stdio.h> #include <stdlib.h> #include "string_aux.h" // Retorna substring char *get_substring (char *string, int inicio, int fim) { if (inicio == fim) { printf ("Erro get_substring() Ini: %d Fim: %d\n", inicio, fim); exit (EXIT_FAILURE); } ...
lbovolini/ordena-comprime-enad
ordenacao/string_aux.h
// Retorna substring char *get_substring (char *, int, int); // Retorna numero float get_number (char *, int, int);
lbovolini/ordena-comprime-enad
compressao/compress.c
<reponame>lbovolini/ordena-comprime-enad /* !TODO * - Inserir arvore no arquivo comprimido * - Descomprimir * - Dividir em arquivos * - Comentar */ #include <stdio.h> #include <stdlib.h> #define BIT_MAIS_BAIXO 1 typedef struct code { int *code; char caracter; int tam; } bin_code; typedef struct lista { char ...
lbovolini/ordena-comprime-enad
ordenacao/sort.h
<filename>ordenacao/sort.h #ifndef SORT #define SORT #include <string.h> // Insetionsort para strings void insertionsort (char **, int *, int **, int, int); // Quicksort para strings void quicksort_string (char **, int *, int **, int, int, int, int); // Quicksort para numeros void quicksort_number (char **, int *...
lbovolini/ordena-comprime-enad
ordenacao/main.c
/* !TODO * - Ordenar por 2 colunas * - Comentar */ #include <stdio.h> #include <stdlib.h> #include "sort.h" #include "string_aux.h" #include "aux.h" #define NUMBER 0 #define STRING 1 #define N 26162 // get_tipo_coluna(); int const indice_tipo_coluna[156] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, ...
zachary0249/Vectrix
vectrix.h
<gh_stars>1-10 #ifndef vx_H #define vx_H #include <iostream> #include <vector> #include <cmath> #include <fstream> #include <string> #include <stdio.h> #include <stdlib.h> #include <sstream> #include <cstdlib> #include <map> template <typename T> class vx { // defining class members private: std::vector<T> ve...
TommyTu/Firework
src/gl/textures/TextureParameters.h
#ifndef TEXTUREPARAMETERS_H #define TEXTUREPARAMETERS_H #include "GL/glew.h" namespace CS123 { namespace GL { class Texture2D; class TextureParameters { public: enum class FILTER_METHOD { NEAREST = GL_NEAREST, LINEAR = GL_LINEAR }; enum class WRAP_METHOD { CLAMP_TO_EDGE = GL...
TommyTu/Firework
src/gl/textures/RenderBuffer.h
<filename>src/gl/textures/RenderBuffer.h #ifndef RENDERBUFFER_H #define RENDERBUFFER_H namespace CS123 { namespace GL { class RenderBuffer { public: RenderBuffer(); virtual ~RenderBuffer(); RenderBuffer(const RenderBuffer &that) = delete; RenderBuffer& operator=(const RenderBuffer &that) = delete; ...
TommyTu/Firework
src/openglshape.h
#ifndef OPENGLSHAPE_H #define OPENGLSHAPE_H #include "GL/glew.h" #include <memory> #include <vector> #include "gl/datatype/VBO.h" #include "gl/datatype/VBOAttribMarker.h" namespace CS123 { namespace GL { class VAO; }} using namespace CS123::GL; class OpenGLShape { public: OpenGLShape(); ~OpenGLShape();...
TommyTu/Firework
glew-1.10.0/auto/src/glew_str_head.c
<filename>glew-1.10.0/auto/src/glew_str_head.c<gh_stars>1000+ #ifdef GLEW_MX GLboolean GLEWAPIENTRY glewContextIsSupported (const GLEWContext* ctx, const char* name) #else GLboolean GLEWAPIENTRY glewIsSupported (const char* name) #endif { GLubyte* pos = (GLubyte*)name; GLuint len = _glewStrLen(pos); GLboolean ret...
TommyTu/Firework
src/mainwindow.h
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <QList> #include "glwidget.h" namespace Ui { class MainWindow; } class DataBinding; class MainWindow : public QMainWindow { Q_OBJECT public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); public slots: // Used ...
TommyTu/Firework
src/gl/textures/DepthBuffer.h
#ifndef DEPTHBUFFER_H #define DEPTHBUFFER_H #include "RenderBuffer.h" namespace CS123 { namespace GL { class DepthBuffer : public RenderBuffer { public: DepthBuffer(int width, int height); private: int m_width; int m_height; }; }} #endif // DEPTHBUFFER_H
TommyTu/Firework
src/glwidget.h
#ifndef GLWIDGET_H #define GLWIDGET_H #include "GL/glew.h" #include <QGLWidget> #include <QTimer> #include <QtMultimedia/QAudioOutput> #include "glm/glm.hpp" // glm::vec*, mat*, and basic glm functions #include "glm/gtx/transform.hpp" // glm::translate, scale, rotate #include "glm/gtc/type_ptr.hpp" // gl...
TommyTu/Firework
src/gl/GLDebug.h
<filename>src/gl/GLDebug.h<gh_stars>0 #ifndef GLDEBUG_H #define GLDEBUG_H #include "GL/glew.h" namespace CS123 { namespace GL { void checkError(); void printGLErrorCodeInEnglish(GLenum err); void checkFramebufferStatus(); void printFramebufferErrorCodeInEnglish(GLenum err); void checkShaderComp...
TommyTu/Firework
src/gl/textures/Texture.h
<reponame>TommyTu/Firework<filename>src/gl/textures/Texture.h #ifndef TEXTURE_H #define TEXTURE_H namespace CS123 { namespace GL { class Texture { public: Texture(); virtual ~Texture(); Texture(const Texture &that) = delete; Texture& operator=(const Texture &that) = delete; Texture(Texture &&that)...
TommyTu/Firework
src/settings.h
#ifndef SETTINGS_H #define SETTINGS_H #include <QObject> // Enumeration values for the modes from which the user can choose in the GUI. enum Mode { MODE_WATER, MODE_PARTICLES, NUM_MODES }; /** @struct Settings @brief Stores application settings for the CS123 GUI. You can access all app set...
TommyTu/Firework
src/databinding.h
/*! @file Databinding.h @author <NAME> (<EMAIL>) @author <NAME> (<EMAIL>) @date Fall 2010 */ #ifndef DATABINDING_H #define DATABINDING_H #include <QObject> #include <QVariant> #include <QSlider> #include <QLineEdit> #include <QCheckBox> #include <QButtonGroup> #include <QRadioButton> #include <QDockWi...
TommyTu/Firework
src/gl/datatype/VBOAttribMarker.h
#ifndef VBOATTRIBMARKER_H #define VBOATTRIBMARKER_H #include <string> #include "GL/glew.h" namespace CS123 { namespace GL { struct VBOAttribMarker { enum DATA_TYPE{ FLOAT = GL_FLOAT, INT = GL_INT, UNSIGNED_BYTE = GL_UNSIGNED_BYTE }; enum DATA_NORMALIZE{ GLTRUE = GL_TRUE, GLFALSE = GL_FALSE }; /** ...
TommyTu/Firework
cs123_lib/resourceloader.h
<filename>cs123_lib/resourceloader.h #ifndef SHADER_H #define SHADER_H #include "GL/glew.h" class ResourceLoader { public: ResourceLoader(); static GLuint createShaderProgram(const char * vertex_file_path,const char * fragment_file_path); static void initializeGlew(); private: static GLuint createSha...
TommyTu/Firework
cs123_lib/sphere.h
#ifndef SPHERE_H #define SPHERE_H // 600 hard-coded sphere vertices weeee... #define NUM_SPHERE_VERTICES 600 #define SPHERE_VERTEX_POSITIONS {\ 0.154508, 0.475528, 0, \ -2.18557e-08, 0.5, -0, \ -1.76816e-08, 0.5, -1.28465e-08, \ 0.125, 0.475528, 0.0908178, \ 0.154508, 0.475528, 0, \ -1.76816e-0...
TommyTu/Firework
src/gl/textures/TextureParametersBuilder.h
#ifndef TEXTUREPARAMETERSBUILDER_H #define TEXTUREPARAMETERSBUILDER_H #include "TextureParameters.h" namespace CS123 { namespace GL { class TextureParametersBuilder { public: TextureParametersBuilder(); void setFilter(TextureParameters::FILTER_METHOD filterMethod); void setWrap(TextureParameters::WRAP_M...
TommyTu/Firework
cs123_lib/errorchecker.h
<reponame>TommyTu/Firework<gh_stars>0 #ifndef ERRORCHECKER_H #define ERRORCHECKER_H #include <string> class ErrorChecker { public: /** * Prints the current OpenGL error codes. "prefix" should be a string that indicates * a location in your code, such as "line 100" or "after glClear". */ static ...
TommyTu/Firework
src/gl/datatype/FBO.h
#ifndef FBO_H #define FBO_H #include <memory> #include <vector> #include "gl/textures/TextureParameters.h" namespace CS123 { namespace GL { class RenderBuffer; class Texture2D; class FBO { public: enum class DEPTH_STENCIL_ATTACHMENT { DEPTH_ONLY, DEPTH_STENCIL, NONE }; FBO(int numberOfColorAttachments, D...
TommyTu/Firework
src/gl/textures/Texture2D.h
<reponame>TommyTu/Firework<filename>src/gl/textures/Texture2D.h #ifndef TEXTURE2D_H #define TEXTURE2D_H #include "Texture.h" #include "GL/glew.h" namespace CS123 { namespace GL { class Texture2D : public Texture { public: Texture2D(unsigned char *data, int width, int height, GLenum type = GL_UNSIGNED_BYTE); ...
vymaztom/ATTINY13A_433_TX_TX
433/transmitter/VirtualWire_TX.h
// VirtualWire.h // // Virtual Wire implementation for Arduino // See the README file in this directory fdor documentation // // Author: <NAME> (<EMAIL>) // Copyright (C) 2008 <NAME> // $Id: VirtualWire.h,v 1.3 2009/03/30 00:07:24 mikem Exp $ #ifndef VirtualWire_h #define VirtualWire_h //#include <stdlib.h> //#includ...
YADetector/YADetectorFF
YADetectorFF.framework/Headers/Unexported.h
<reponame>YADetector/YADetectorFF #import <Foundation/Foundation.h> //! Project version number for YADetectorFF. FOUNDATION_EXPORT double YADetectorFFVersionNumber; //! Project version string for YADetectorFF. FOUNDATION_EXPORT const unsigned char YADetectorFFVersionString[];
ShakingMap/sealtalk-ios
ios-sealtalk/RCloudMessage/Sections/Debug/ChatroomStatus/RCDDebugAlertView.h
<filename>ios-sealtalk/RCloudMessage/Sections/Debug/ChatroomStatus/RCDDebugAlertView.h // // RCDDebugAlertView.h // SealTalk // // Created by 孙浩 on 2019/10/18. // Copyright © 2019 RongCloud. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN typedef enum : NSUInteger { RCDDebugAlertViewT...
AndrewGrim/RemoveComments
source/main.c
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> int main(int argc, char *argv[]) { char inputFile[150]; char outputFile[150]; for (int i = 1; i < argc; i++) { if (strcmp(argv[i], "-input") == 0) { strcpy(inputFile, argv[i + 1]); } else if (strcmp(argv[i],"-output") == 0) { ...
porres/pd-cyclone
cyclone_objects/binaries/audio/wave.c
<gh_stars>100-1000 /* Copyright (c) 2002-2003 krzYszcz and others. * For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ #include <string.h> #define _USE_MATH_DEFINES #include <math.h> #include "m_pd.h" #include <common/api.h> ...
porres/pd-cyclone
shared/common/grow.c
/* Copyright (c) 2002-2003 krzYszcz and others. * For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ /* LATER generic handling of reentrant output request and self-invoked set */ #include <string.h> #include "m_pd.h" #include...
porres/pd-cyclone
cyclone_objects/binaries/control/seq.c
<gh_stars>100-1000 /* Copyright (c) 2002-2005 krzYszcz and others. * For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ /* CHECKED no sharing of data among seq objects having the same creation arg */ #include <stdlib.h> #incl...
porres/pd-cyclone
cyclone_objects/binaries/audio/deltaclip.c
<gh_stars>100-1000 /* Copyright (c) 2002-2003 krzYszcz and others. * For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ // updated 2016 by <NAME> and 2021 by porres #include "m_pd.h" #include <common/api.h> typedef struct _de...
porres/pd-cyclone
cyclone_objects/binaries/control/coll.c
<filename>cyclone_objects/binaries/control/coll.c<gh_stars>100-1000 /* Copyright (c) 2002-2005 krzYszcz and others. * For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ /*2016 - making COLLTHREAD,COLLEMBED, coll_embed, attribu...
porres/pd-cyclone
shared/common/file.h
/* Copyright (c) 2004-2005 krzYszcz and others. * For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ #ifndef __OS_H__ #define __OS_H__ EXTERN_STRUCT _osdir; #define t_osdir struct _osdir #define OSDIR_FILEMODE 1 #define O...
InamdarAbid/DS
BankersAlgorithm.c
<filename>BankersAlgorithm.c #include <stdio.h> int main(){ int count = 0, m, n, process, temp, resource; int allocation_table[5] = {0, 0, 0, 0, 0}; int available[5], current[5][5], maximum_claim[5][5]; int maximum_resources[5], running[5], safe_state = 0; printf("\nEnter The Total Numb...
AlexX333BY/ess-stm32-leds-accumulation
Src/main.c
<filename>Src/main.c /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) 2019 STM...
regexident/Captain
Captain/Captain.h
// // Captain.h // Captain // // Created by <NAME> on 5/25/18. // Copyright © 2018 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for Captain. FOUNDATION_EXPORT double CaptainVersionNumber; //! Project version string for Captain. FOUNDATION_EXPORT const unsigned char CaptainVe...
tanpengsccd/RazzleDazzle
Sources/RazzleDazzle/RazzleDazzle.h
// // RazzleDazzle.h // RazzleDazzle // // Created by <NAME> on 6/11/15. // Copyright (c) 2015 IFTTT. All rights reserved. // #import <Foundation/Foundation.h> //! Project version number for RazzleDazzle. FOUNDATION_EXPORT double RazzleDazzleVersionNumber; //! Project version string for RazzleDazzle. FOUNDATION_...
NinakoLovu/Xv6_Stride_scheduler
wtf.c
#include "types.h" #include "user.h" #define MAX_TICKETS 1000 #define arg 3 int roulette(); void waste_time(); int main(){ printf(1, "Testing!\n"); int num; int i; for(i = 0; i < arg; i++){ num = roulette() % MAX_TICKETS; if(fork(num)== 0){ waste_time(); exit(); } }...
makaleks/libload
tests/overview/tests/overview.c
<gh_stars>1-10 #include <stdio.h> #include <test_shared.h> #include <libload.h> int main () { puts("Example of libload started\n"); LIBLOAD_STATUS status = LIBLOAD_SUCCESS; function_str_str func_ptr = NULL; LibloadHandler handler; // 'test-shared.so' in Unix, 'test-shared' in Windows ch...
makaleks/libload
tests/overview/src/test-shared.c
<filename>tests/overview/src/test-shared.c #include "test_shared.h" #include <stddef.h> // NULL #include <ctype.h> // toupper() // Compiler will help in case of mismatch with .h-file char* test_shared (char *str) { if (NULL == str) { // Data-provided return "Hello, plugin!"; } else { ...
makaleks/libload
src/libload.c
#include "libload.h" #include "buildtime_config.h" #include <stddef.h> #include <string.h> #if PLATFORM_NAME == 'POSX' // http://man7.org/linux/man-pages/man3/dlopen.3.html #include <dlfcn.h> #elif PLATFORM_NAME == 'WIN' // https://docs.microsoft.com/windows/win32/dlls/using-run-time-dynamic-linking // https://docs.m...
makaleks/libload
tests/overview/include/test_shared.h
<reponame>makaleks/libload<gh_stars>1-10 #ifndef TEST_SHARED_H_INCLUDED #define TEST_SHARED_H_INCLUDED 0 #ifdef __cplusplus extern "C" { #endif // See (theory) // https://docs.microsoft.com/en-us/cpp/build/walkthrough-creating-and-using-a-dynamic-link-library-cpp // https://gcc.gnu.org/wiki/Visibility // and (practic...
makaleks/libload
include/libload.h
<reponame>makaleks/libload #ifndef LIBLOAD_H_INCLUDED #define LIBLOAD_H_INCLUDED 0 #ifdef __cplusplus extern "C" { #endif typedef enum { LIBLOAD_SUCCESS = 0, LIBLOAD_ERROR } LIBLOAD_STATUS; typedef struct { void *_handler; } LibloadHandler; typedef void (*LibloadSymbol)(void); LIBLOAD_STATUS libloadfil...
liyanboy74/avr-stepper-motor
prog/key.h
#define KEYPAD_PORT PORTB #define KEYPAD_PIN PINB #define KEYPAD_DDR DDRB char getkey(void);
liyanboy74/avr-stepper-motor
prog/main.c
<filename>prog/main.c /* By Liyanboy74 https://github.com/liyanboy74 */ #include <mega16.h> #include <stdlib.h> #include <delay.h> #include <alcd.h> //KeyPad Lib #include "key.h" //Stepper motor StepAngel #define step_angle 0.8 #define STEPPER_PORT PORTA #define STEPPER_PIN PINA #define STEPPER_DDR DDRA //Step ...
AmmarRabie/asm-gen
asmShape.h
/* **************************************** * * * Author: <NAME> * * Sec: 2 BN: 4 * * GitHibLink: * * desc: this prog is designed for * * bonus task in term holiday * * for D.Khaled * * ...
nporteschaikin/objc
DBObject/DBAdapter.h
// // DBAdapter.h // Flyer // // Created by <NAME> on 9/11/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import <sqlite3.h> @interface DBAdapter : NSObject + (DBAdapter *)dbAdapter; - (BOOL)executeQuery:(NSString *)queryString; - (NSArray *)recordsByQuery:(NSString ...
nporteschaikin/objc
DBObject/DBObjectAccessorHelper.h
<reponame>nporteschaikin/objc // // DBObjectAccessorHelper.h // Flyer // // Created by <NAME> on 9/18/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import "DBColumn.h" @interface DBObjectAccessorHelper : NSObject + (void)setAccessorForColumn:(DBColumn *)column; @en...
nporteschaikin/objc
DBObject/DBObject.h
<filename>DBObject/DBObject.h // // DBObject.h // Flyer // // Created by <NAME> on 9/12/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import "DBColumn.h" #import "DBObjectFetcher.h" @interface DBObject : NSObject @property (strong, nonatomic, readonly) NSMutableSet ...
nporteschaikin/objc
DBObject/DBObjectFetcher.h
<filename>DBObject/DBObjectFetcher.h // // DBObjectFetcher.h // Flyer // // Created by <NAME> on 9/17/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface DBObjectFetcher : NSObject - (id)initWithDBObjectClass:(Class)DBObjectClass; - (NSArray *)fetch; - (void)se...
nporteschaikin/objc
DBObject/DBMigration.h
// // DBMigration.h // Flyer // // Created by <NAME> on 9/22/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface DBMigration : NSObject @property (strong, nonatomic) NSString *upQuery; @property (strong, nonatomic) NSString *downQuery; - (id)initWithUp:(NSStrin...
nporteschaikin/objc
CoreDataManager/CoreDataManager.h
// // CoreDataManager.h // Here // // Created by <NAME> on 9/1/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import <CoreData/CoreData.h> @interface CoreDataManager : NSObject + (NSManagedObjectContext *) managedObjectContext; + (NSManagedObjectContext *) newManage...
nporteschaikin/objc
DBObject/NSString+DBUppercaseFirst.h
// // NSString+DBUppercaseFirst.h // Flyer // // Created by <NAME> on 9/18/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface NSString (DBUppercaseFirst) - (NSString *)stringWithUppercaseFirst; @end
nporteschaikin/objc
DBObject/DBMigrator.h
<filename>DBObject/DBMigrator.h<gh_stars>1-10 // // DBMigrator.h // Flyer // // Created by <NAME> on 9/22/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import "DBDatabase.h" #import "DBMigration.h" @interface DBMigrator : NSObject - (id)initWithDatabase:(DBDatabase ...
nporteschaikin/objc
DBObject/DBColumnFetcher.h
// // DBColumnFetcher.h // Flyer // // Created by <NAME> on 9/18/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface DBColumnFetcher : NSObject - (id)initWithDBObjectClass:(Class)DBObjectClass; - (NSSet *)fetch; @end
nporteschaikin/objc
LocationController/LocationController.h
// // LocationController.h // Here // // Created by <NAME> on 9/4/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import <CoreLocation/CoreLocation.h> extern NSString * const LocationControllerDidUpdateLocationNotification; @interface LocationController : NSObject + ...
nporteschaikin/objc
DBObject/DBDatabase.h
<reponame>nporteschaikin/objc // // DBDatabase.h // Flyer // // Created by <NAME> on 9/22/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface DBDatabase : NSObject + (DBDatabase *)sharedDatabase; - (id)initWithFileName:(NSString *)filename; - (BOOL)executeUpdat...
nporteschaikin/objc
CoreDataManager/NSManagedObject+Querying.h
// // NSManagedObject+Querying.h // Pluck // // Created by <NAME> on 8/29/14. // Copyright (c) 2014 Pluck. All rights reserved. // #import <Foundation/Foundation.h> #import <CoreData/CoreData.h> @interface NSManagedObject (Querying) + (NSFetchRequest *)fetchRequestMatchedByPredicate:(NSPredicate *)predicate ...
nporteschaikin/objc
DBObject/DBObjectInsert.h
// // DBObjectInsert.h // Flyer // // Created by <NAME> on 9/18/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import "DBObject.h" @interface DBObjectInsert : NSObject - (id)initWithDBObject:(DBObject *)dbObject; - (NSNumber *)execute; @end
nporteschaikin/objc
FetchedResultsControllerDataSource/FetchedResultsControllerDataSource.h
<reponame>nporteschaikin/objc<gh_stars>1-10 // // FetchedResultsControllerDataSource.h // Here // // Created by <NAME> on 9/1/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> #import <CoreData/CoreData.h> @protocol FetchedResultsControllerDataSourceDelegate - (void)configureCell:...
nporteschaikin/objc
DBObject/DBColumn.h
// // DBColumn.h // Flyer // // Created by <NAME> on 9/18/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import "NSString+DBUppercaseFirst.h" @interface DBColumn : NSObject @property (strong, nonatomic, readonly) Class DBObjectClass; @property (strong, nonatomic, rea...
Mano300/Swapping-of-2-numbers
swap 2 numbers.c
#include<stdio.h> int main() { int a=2,b=6; printf("before swap: %d %d\n",a,b); a=a+b; b=a-b; a=a-b; printf("After swap: %d %d",a,b); }
Foxbud/libaermre
include/public/aer/err.h
<reponame>Foxbud/libaermre /** * @file * * @brief Global error state of the MRE. * * @since 1.0.0 * * @copyright 2021 the libaermre authors * * 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 Lic...
Foxbud/libaermre
include/public/aer/rand.h
/** * @file * * @brief Utilities for generating pseudorandom numbers. * * @since 1.0.0 * * @copyright 2021 the libaermre authors * * 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 * ...
Foxbud/libaermre
src/mod.c
/** * @copyright 2021 the libaermre authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
Foxbud/libaermre
src/sprite.c
/** * @copyright 2021 the libaermre authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
Foxbud/libaermre
src/option.c
<reponame>Foxbud/libaermre<filename>src/option.c /** * @copyright 2021 the libaermre authors * * 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/LICE...
Foxbud/libaermre
include/private/internal/object.h
<filename>include/private/internal/object.h /** * @copyright 2021 the libaermre authors * * 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...
Foxbud/libaermre
include/public/aer/log.h
/** * @file * * @brief Logging utilities. * * @since 1.0.0 * * @copyright 2021 the libaermre authors * * 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...
Foxbud/libaermre
include/public/aer/instance.h
/** * @file * * @brief Utilities for querying and manipulating game instances. * * @copyright 2021 the libaermre authors * * 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 * * htt...
Foxbud/libaermre
include/private/internal/mod.h
<reponame>Foxbud/libaermre /** * @copyright 2021 the libaermre authors * * 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 r...
Foxbud/libaermre
src/conf.c
/** * @copyright 2021 the libaermre authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
Foxbud/libaermre
src/input.c
<reponame>Foxbud/libaermre /** * @copyright 2021 the libaermre authors * * 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 r...
Foxbud/libaermre
include/private/internal/event.h
/** * @copyright 2021 the libaermre authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
Foxbud/libaermre
include/public/aer/save.h
<filename>include/public/aer/save.h /** * @file * * @brief Utilities for querying and manipulating save file data. * * @subsubsection SaveKeyNamespacing Save Key Namespacing * * Each mod is given its own, unique namespace within the save file. That means * two or more mods can use the same key without interferi...
Foxbud/libaermre
src/draw.c
#include "aer/draw.h" #include "internal/core.h" #include "internal/err.h" #include "internal/export.h" #include "internal/hld.h" /* ----- PRIVATE MACROS ----- */ #define WrapString(str) \ ({ \ c...
Foxbud/libaermre
include/public/aer/object.h
/** * @file * * @brief Utilities for querying and manipulating game objects. * * @subsubsection ObjListeners Object Event Listeners * * An object event listener is a callback function with the signature: * * @code{.c} * bool listener(AEREvent *event, AERInstance *target, AERInstance *other); * @endcode * *...
Foxbud/libaermre
include/public/aer/core.h
<gh_stars>1-10 /** * @file * * @brief Uncategorized functions for querying and manipulating game state. * * @since 1.0.0 * * @copyright 2021 the libaermre authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may o...
Foxbud/libaermre
include/public/aer/conf.h
/** * @file * * @brief Utilities for parsing configuration data. * * *Special thanks to <NAME> for helping design this section of the API.* * * @since 1.0.0 * * @copyright 2021 the libaermre authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in com...
Foxbud/libaermre
src/room.c
/** * @copyright 2021 the libaermre authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
Foxbud/libaermre
include/private/internal/core.h
/** * @copyright 2021 the libaermre authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
Foxbud/libaermre
include/private/internal/hld.h
<filename>include/private/internal/hld.h /** * @copyright 2021 the libaermre authors * * 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 ...
Foxbud/libaermre
include/public/aer/sprite.h
<filename>include/public/aer/sprite.h /** * @file * * @brief Utilities for querying and manipulating sprites. * * @since 1.0.0 * * @copyright 2021 the libaermre authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You...
Foxbud/libaermre
src/object.c
<reponame>Foxbud/libaermre<filename>src/object.c /** * @copyright 2021 the libaermre authors * * 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/LICE...
Foxbud/libaermre
include/public/aer/input.h
<filename>include/public/aer/input.h /** * @file * * @brief Utilities for querying user input. * * @since 1.0.0 * * @copyright 2021 the libaermre authors * * 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 c...
Foxbud/libaermre
src/core.c
<filename>src/core.c /** * @copyright 2021 the libaermre authors * * 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 require...
Foxbud/libaermre
include/public/aer/draw.h
<gh_stars>1-10 /** * @file * * @brief Utilities for drawing to the screen. * * The functions in this module should only be called from inside object draw * event listeners. See @ref AERObjectAttachDrawListener for more information. * * @subsubsection DrawColors Colors * * Colors are represented as unsigned 32...
Foxbud/libaermre
src/event.c
/** * @copyright 2021 the libaermre authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
Foxbud/libaermre
src/log.c
/** * @copyright 2021 the libaermre authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
Foxbud/libaermre
include/private/internal/err.h
/** * @copyright 2021 the libaermre authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
Foxbud/libaermre
src/hld.c
<reponame>Foxbud/libaermre<gh_stars>1-10 /** * @copyright 2021 the libaermre authors * * 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 ...
Foxbud/libaermre
src/rand.c
<filename>src/rand.c /** * @copyright 2021 the libaermre authors * * 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 require...
Foxbud/libaermre
src/instance.c
/** * @copyright 2021 the libaermre authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
Foxbud/libaermre
include/public/aer/event.h
<gh_stars>1-10 /** * @file * * @brief Utilities for querying and manipulating object events. * * @since 1.0.0 * * @copyright 2021 the libaermre authors * * 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 cop...
Foxbud/libaermre
src/save.c
/** * @copyright 2021 the libaermre authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
Foxbud/libaermre
include/public/aer/room.h
/** * @file * * @brief Utilities for querying and manipulating game rooms. * * @since 1.0.0 * * @copyright 2021 the libaermre authors * * 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 a...
Foxbud/libaermre
include/public/aer/mod.h
<reponame>Foxbud/libaermre /** * @file * * @brief Defining and initializing mods. * * When the MRE successfully loads a mod library, it first searches for and * calls the mod's public definition function, which must have the signature: * * @code{.c} * void define_mod(AERModDef *def); * @endcode * * In an at...
Foxbud/libaermre
src/font.c
<reponame>Foxbud/libaermre<gh_stars>1-10 /** * @copyright 2021 the libaermre authors * * 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 ...
Foxbud/libaermre
include/public/aer/font.h
/** * @file * * @brief Utilities for querying and manipulating fonts. * * @since 1.1.0 * * @copyright 2021 the libaermre authors * * 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 * ...