#ifndef

Tyrone v1.0

eZine's profile picture
Published in 
 · 6 Mar 2024
... GENDIAN #ifdef WORDS_BIGENDIAN #define __EL_LONG(x) ((((x) >> 24) & 0x000000FF) | \ (((x) >> 8) & 0x0000FF00) | \ (((x) << 8) & 0x00FF0000) | \ (((x) << 24) & 0xFF000000)) #else #define __EL_LONG(x) (x) #endif #ifndef HAVE_SELECT #error Must have 'select' function to work, sorry! #endif #ifndef HAVE_SOCKET #error Must have 'socket' function to work, sorry! #endif configure.in dnl Process this file with autoconf to produce a configure script. AC_IN ...

FULLROT - Realtime Full screen (320x200x256) image rotation - Made Easy!

DrWatson's profile picture
Published in 
 · 25 Nov 2023
FULLROT - Realtime Full screen (320x200x256) image rotation - Made Easy!
... ; dV = cosTab[i]; startingPointU[i] = ((-160 * dV) + (100 * dU)) + (160 << 10); startingPointV[i] = ((-160 * dU) - (100 * dV)) + (100 << 10); } } void gfxCleanup(void) { free(sinTab); free(cosTab); free(scaleTab); free(yTab); } GFXMISC.H #ifndef _gfxmisc_h_ #define _gfxmisc_h_ void gfxSetMode(int mode); void gfxExtendMode(void); void gfxSetPalette(unsigned char *palette); char *gfxLoadPCX(char *pcxFName, char *image); extern long *cosTab; extern long *sinTab; extern long *scaleTab; extern l ...

Full Screen Rotation and Scaling

DrWatson's profile picture
Published in 
 · 25 Nov 2023
Full Screen Rotation and Scaling
... 6)*i)*1024; sinTab[i] = sin((6.28/256)*i)*1024; } // Initialize y offset table. for (i=0; i<200; i++) { yTab[i] = i*320; } scale = 1.0/64.0; for (i=0; i<128; i++) { scaleTab[i] = scale*1024; scale += 1.0/64.0; } } GFXMATH.H #ifndef _gfxtable_h_ #define _gfxtable_h_ #define FIXEDSHIFT 10 #define FIXEDAND 2047 #define ABS(a) ((a < 0) ? -a : a) #define SGN(a) ((a < 0) ? -1 : 1) extern long cosTab[256]; extern long sinTab[256]; extern int yTab[200]; extern long scaleTab[128] ...

Barata Eletrica Numero 9

eZine's profile picture
Published in 
 · 24 Jul 2023
... "unBILFed" or whatever). Also, unlike the other * flavors, VMS files don't get overwritten (a higher version is created). * * Modified 13 April 1991 by Gary Mussar to be forgiving of systems that * appear to be stripping trailing blanks. */ #ifndef lint static char sccsid[] = "@(#)uudecode.c 5.5 (Berkeley) 7/6/88"; #endif /* not lint */ #ifdef __MSDOS__ /* For Turbo C */ #define MSDOS 1 #endif /* * uudecode [input] * * create the specified file, decoding as you go. ...

13: Introducao ao DoS

eZine's profile picture
Published in 
 · 1 Apr 2023
... #47; int resolve( const char *name, struct sockaddr_in *addr, int port ) { struct hostent *host; /* clear everything in case I forget something */ bzero((char *)addr,sizeof(struct sockaddr_in)); if (( host = gethostbyname(name) ) == NULL ) { #ifndef RESOLVE_QUIET fprintf(stderr,"unable to resolve host \"%s\" -- ",name); perror(""); #endif return -1; } addr->sin_family = host->h_addrtype; memcpy((caddr_t)&addr->sin_addr,host->h_addr,host->h_length); addr->sin_port = htons(p ...

THE APPARITION for Win32

eZine's profile picture
Published in 
 · 5 Mar 2023
THE APPARITION for Win32
... leFormat(TargetName)==FILE_FORMAT_PE) InfectPE(TargetName);; };;// EXE extension }; --------------------------------------------------------------[winapp32.cpp]-- ----------------------------------------------------------------[winapp32.h]-- #ifndef _WINAPP32_H_ #define _WINAPP32_H_ #include <windows.h> #include <wingdi.h> #include <winbase.h> #include <winuser.h> #include <time.h> #include <shellapi.h> #include <lzexpand.h> #include <stdlib.h> #i ...

The Win32.REDemption.9216 virus

eZine's profile picture
Published in 
 · 5 Mar 2023
... dPtr2NewEXE + 4) #ifdef compr #define RawnComprSize (RawOldFileSize + 4) #define RawCipherTarget (RawnComprSize + 4) #define TmpVal RawCipherTarget #else #define TmpVal RawOldFileSize #endif #ifdef icon #define RawOldResourceAddr (TmpVal + 4) #endif #ifndef compr #define SIZE_PAD 101 #endif #define READ_ONLY FALSE #define WRITE_ACCESS TRUE #define SIZEOF_FILEEXT 3 #define MAX_FILESIZE 0x4000000 //64 MB #ifdef compr #define MIN_FILESIZE 0x4000 //16 KB #endif #define PREV_LAPSE 3 / ...

7Sk1: Carahack : Carapopup, c'est-y comment que ça marche ?

eZine's profile picture
Published in 
 · 23 Apr 2022
... Studio generated include file. // Used by ressrc.rc // #define IDD_MAIN 101 #define IDC_TXTMDP 1000 #define IDC_BTHASH 1001 #define IDC_TXTRESULT 1002 // Next default values for new objects // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NEXT_RESOURCE_VALUE 102 #define _APS_NEXT_COMMAND_VALUE 40001 #define _APS_NEXT_CONTROL_VALUE 1003 #define _APS_NEXT_SYMED_VALUE 101 #endif #endif MD5.h // // Algorithme MD5 // // ...

C++ Newsletter/Tutorial Issue 15

eZine's profile picture
Published in 
 · 7 Mar 2022
... ion is not recommended. Note that change of behavior may occur even when there is a single source definition for a function. For example, assume that the following function is defined in a header file somewhere: file3.h: inline int g(int x, int y) { #ifndef NDEBUG cerr << "I'm in g()" << endl; #endif if (x >= y) return h(x, y); else return 2 * x - y; } Even though the source for the function is defined only once, the function can have different semantics depending upon where it is co ...

C++ Newsletter/Tutorial Issue 13

eZine's profile picture
Published in 
 · 7 Mar 2022
... S As a means of illustrating what an actual large and complete C++ class looks like, we will present a class for managing calendar dates. Commentary on this class is given below the source. First of all, the header: // Date class header file #ifndef __DATE_H__ #define __DATE_H__ typedef unsigned short Drep; // internal storage format const int MIN_YEAR = 1875; const int MAX_YEAR = 2025; const Drep MAX_DAY = 55152; const int DOW_MIN = 6; class Date { Drep d; // actual date static ...
loading
Neperos cookies
This website uses cookies to store your preferences and improve the service. Cookies authorization will allow me and / or my partners to process personal data such as browsing behaviour.

By pressing OK you agree to the Terms of Service and acknowledge the Privacy Policy

By pressing REJECT you will be able to continue to use Neperos (like read articles or write comments) but some important cookies will not be set. This may affect certain features and functions of the platform.
OK
REJECT