<commit_before>/* these are the definitions included at the beginning
 * of every compiled-to-C module
 */
#ifndef STGDEFS_H
#define STGDEFS_H

/* machine/compiler/system dependencies :-(  Must be first! */
/* OLD: #include "platform.h"  generated by configure */
#include "config.h"   /* generated by configure */
#include "error.h"
#include "StgMachDeps.h"

#include "COptRegs.h"

/* our own ASSERT macro (for C) */
#ifndef DEBUG
#define NDEBUG 1 /* for assert.h */
#define ASSERT(predicate) /*nothing*/

#else
#undef NDEBUG	/* for assert.h */

void _stgAssert PROTO((char *, unsigned int));

#define ASSERT(predicate)			\
	if (predicate)				\
	    /*null*/;				\
	else					\
	    _stgAssert(__FILE__, __LINE__)
#endif

#if macos7_TARGET_OS
#define NON_POSIX_SOURCE
#endif

/* If _NEXT_SOURCE is defined, certain header files make more 
 * constants visible to us.
 * Perhaps it would have been wise, also to define NON_POSIX_SOURCE.
 * Things seemed to work better without it however, so I have not
 * done it. Nevertheless we do the signal stuff in a NON_POSIX way,
 * see StgMacros.lh.
 * CaS
 */
#ifdef nextstep3_TARGET_OS
#define _NEXT_SOURCE
#endif
 
#ifdef NON_POSIX_SOURCE
#undef _POSIX_SOURCE
#undef _POSIX_C_SOURCE
#else
#define _POSIX_SOURCE 1
#define _POSIX_C_SOURCE 199301L
/* Alphas set _POSIX_VERSION (unistd.h) */
/* ditto _POSIX2_C_VERSION
	 _POSIX2_VERSION
	 _POSIX_4SOURCE
*/

/* Bogus use of non-existent variable POSIX_C_SOURCE in the supplied header files
   for gcc-2.7.1 on Solaris forces us to define it: (this strikes when using st_atime
   and friends in <sys/stat.h> )
*/

#if (__GNUC__ == 2) && (__GNUC_MINOR__ == 7) 
/* sigh, not possible to get at bugfix release number (fixed in 2.7.2) */
#define POSIX_C_SOURCE _POSIX_C_SOURCE
#endif

#include <unistd.h>
#include <signal.h>
#endif
<commit_msg>[project @ 1997-05-27 06:02:07 by sof] Added mods for irix-6.x<commit_after>/* these are the definitions included at the beginning
 * of every compiled-to-C module
 */
#ifndef STGDEFS_H
#define STGDEFS_H

/* machine/compiler/system dependencies :-(  Must be first! */
/* OLD: #include "platform.h"  generated by configure */
#include "config.h"   /* generated by configure */
#include "error.h"
#include "StgMachDeps.h"

#include "COptRegs.h"

/* our own ASSERT macro (for C) */
#ifndef DEBUG
#define NDEBUG 1 /* for assert.h */
#define ASSERT(predicate) /*nothing*/

#else
#undef NDEBUG	/* for assert.h */

void _stgAssert PROTO((char *, unsigned int));

#define ASSERT(predicate)			\
	if (predicate)				\
	    /*null*/;				\
	else					\
	    _stgAssert(__FILE__, __LINE__)
#endif

#if macos7_TARGET_OS
#define NON_POSIX_SOURCE
#endif

/* If _NEXT_SOURCE is defined, certain header files make more 
 * constants visible to us.
 * Perhaps it would have been wise, also to define NON_POSIX_SOURCE.
 * Things seemed to work better without it however, so I have not
 * done it. Nevertheless we do the signal stuff in a NON_POSIX way,
 * see StgMacros.lh.
 * CaS
 */
#ifdef nextstep3_TARGET_OS
#define _NEXT_SOURCE
#endif
 
#ifdef NON_POSIX_SOURCE
#undef _POSIX_SOURCE
#undef _POSIX_C_SOURCE
#else
#define _POSIX_SOURCE 1
#ifndef irix_TARGET_OS
#define _POSIX_C_SOURCE 199301L
#else
/* defines contributed by <NAME> <<EMAIL>>
   ( this is with gcc-2.7.2 for irix-6.{2.3} ) .. hopefully they will not
   upset anything under irix5 ..
   */
#define _POSIX_C_SOURCE 199309L
#define __EXTENSIONS__
#endif
/* Bogus use of non-existent variable POSIX_C_SOURCE in the supplied header files
   for gcc-2.7.1 on Solaris forces us to define it: (this strikes when using st_atime
   and friends in <sys/stat.h> )
*/

#if (__GNUC__ == 2) && (__GNUC_MINOR__ == 7) 
/* sigh, not possible to get at bugfix release number (fixed in 2.7.2) */
#define POSIX_C_SOURCE _POSIX_C_SOURCE
#endif

#include <unistd.h>
#include <signal.h>
#endif

{'fraction_non_alphanumeric': 0.10637191157347205, 'fraction_numerical': 0.01742522756827048, 'mean_word_length': 3.862199747155499, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4295486', 'n_tokens_mistral': 1455, 'n_tokens_neox': 1346, 'n_words': 448}