| 1 | /* | 
|---|
| 2 | * random.h - redefine name of random lib routines to avoid conflicts | 
|---|
| 3 | */ | 
|---|
| 4 |  | 
|---|
| 5 | /* | 
|---|
| 6 | * Copyright (C) 1996, 2001, 2004, 2005 the Free Software Foundation, Inc. | 
|---|
| 7 | * | 
|---|
| 8 | * This file is part of GAWK, the GNU implementation of the | 
|---|
| 9 | * AWK Programming Language. | 
|---|
| 10 | * | 
|---|
| 11 | * GAWK is free software; you can redistribute it and/or modify | 
|---|
| 12 | * it under the terms of the GNU General Public License as published by | 
|---|
| 13 | * the Free Software Foundation; either version 2 of the License, or | 
|---|
| 14 | * (at your option) any later version. | 
|---|
| 15 | * | 
|---|
| 16 | * GAWK is distributed in the hope that it will be useful, | 
|---|
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
|---|
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
|---|
| 19 | * GNU General Public License for more details. | 
|---|
| 20 | * | 
|---|
| 21 | * You should have received a copy of the GNU General Public License | 
|---|
| 22 | * along with this program; if not, write to the Free Software | 
|---|
| 23 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA | 
|---|
| 24 | */ | 
|---|
| 25 |  | 
|---|
| 26 | #define initstate gawk_initstate | 
|---|
| 27 | #define setstate gawk_setstate | 
|---|
| 28 | #define random gawk_random | 
|---|
| 29 | #define srandom gawk_srandom | 
|---|
| 30 |  | 
|---|
| 31 | #if SIZEOF_UNSIGNED_INT == 4 | 
|---|
| 32 | typedef unsigned int gawk_uint32_t; | 
|---|
| 33 | typedef          int gawk_int32_t; | 
|---|
| 34 | #else | 
|---|
| 35 | #if SIZEOF_UNSIGNED_LONG == 4 | 
|---|
| 36 | typedef unsigned long gawk_uint32_t; | 
|---|
| 37 | typedef          long gawk_int32_t; | 
|---|
| 38 | #endif | 
|---|
| 39 | #endif | 
|---|
| 40 | #define uint32_t gawk_uint32_t | 
|---|
| 41 | #define int32_t  gawk_int32_t | 
|---|
| 42 |  | 
|---|
| 43 | #ifdef __STDC__ | 
|---|
| 44 | #undef __P | 
|---|
| 45 | #define __P(s) s | 
|---|
| 46 | #else | 
|---|
| 47 | #define __P(s) () | 
|---|
| 48 | #endif | 
|---|
| 49 |  | 
|---|
| 50 | extern long random __P((void)); | 
|---|