Changeset 539 in MondoRescue for trunk/mondo/mondo/common/my-stuff.h


Ignore:
Timestamp:
May 13, 2006, 7:38:44 PM (18 years ago)
Author:
bcornec
Message:

merge -r 534:538 $SVN_M/branches/stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/mondo/common/my-stuff.h

    r518 r539  
    1 /* $Id$ */
    2 
     1/*
     2 * Common defines across the project
     3 *
     4 *  $Id$
     5 */
     6
     7#ifndef _MY_STUFF_H_
     8#define _MY_STUFF_H_
     9
     10/* BERLIOS
    311#define HAVE_MALLOC 1
     12*/
    413
    514// Extra info for ACLs and SELINUX users
     
    2635 * Create the illusion of a Boolean type.
    2736 */
    28 #define bool int
     37#define bool unsigned char
    2938#define TRUE 1
    3039#define FALSE 0
     
    3443#include <config.h>
    3544#endif
     45/* BERLIOS
     46 * Useful ?
     47*/
    3648
    3749#ifndef __FreeBSD__
     
    4759
    4860#include <stdlib.h>
     61/* BERLIOS
    4962#ifndef  __USE_FILE_OFFSET64
    5063#define  __USE_FILE_OFFSET64
     
    5366#define  __USE_LARGEFILE64
    5467#endif
     68*/
    5569#include <sys/stat.h>
    5670#include <fcntl.h>
     
    6478#include <signal.h>
    6579#endif
    66 //#include <curses.h>
    6780#include <newt.h>
    6881#include <ctype.h>
     
    7083#ifndef S_SPLINT_S
    7184#include <pthread.h>
    72 #endif
    7385#include <assert.h>
    7486
    75 #include "../../config.h"
    76 
     87/*
    7788#if defined(DEBUG) && !__cplusplus
    7889int count;
    79 char trace_log[255];            /*buffer for logging */
     90char trace_log[255];
    8091char *trace_log_ptr;
    81 #endif                          /* DEBUG */
    82 
    83 #define IA64_BOOT_SIZE "8192"   /* Should be coherent with mindi */
    84 #define STD_PREFIX "mondorescue"    /* Should be coherent with mindi */
     92#endif
     93*/
     94
     95#define STD_PREFIX "mondorescue"
    8596
    8697/**
     
    129140#define CRC_M16 0xA001          ///< Mask for crc16.
    130141#define CRC_MTT 0x1021          ///< Mask for crc-ccitt.
    131 
    132 #define FALSE 0                 ///< The ubiquitous FALSE macro.
    133 #define TRUE 1                  ///< The even more ubiquitous TRUE macro.
    134142
    135143#define SCREEN_LENGTH 25        ///< The default size of the screen.
Note: See TracChangeset for help on using the changeset viewer.