js/src/editline/unix.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/editline/unix.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,52 @@
     1.4 +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
     1.5 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#ifndef editline_unix_h
    1.10 +#define editline_unix_h
    1.11 +
    1.12 +/*
    1.13 + * Copyright 1992,1993 Simmule Turner and Rich Salz.  All rights reserved.
    1.14 + *
    1.15 + * This software is not subject to any license of the American Telephone
    1.16 + * and Telegraph Company or of the Regents of the University of California.
    1.17 + *
    1.18 + * Permission is granted to anyone to use this software for any purpose on
    1.19 + * any computer system, and to alter it and redistribute it freely, subject
    1.20 + * to the following restrictions:
    1.21 + * 1. The authors are not responsible for the consequences of use of this
    1.22 + *    software, no matter how awful, even if they arise from flaws in it.
    1.23 + * 2. The origin of this software must not be misrepresented, either by
    1.24 + *    explicit claim or by omission.  Since few users ever read sources,
    1.25 + *    credits must appear in the documentation.
    1.26 + * 3. Altered versions must be plainly marked as such, and must not be
    1.27 + *    misrepresented as being the original software.  Since few users
    1.28 + *    ever read sources, credits must appear in the documentation.
    1.29 + * 4. This notice may not be removed or altered.
    1.30 + */
    1.31 +
    1.32 +
    1.33 +/*
    1.34 +**  Editline system header file for Unix.
    1.35 +*/
    1.36 +
    1.37 +#define CRLF		"\r\n"
    1.38 +#define FORWARD		STATIC
    1.39 +
    1.40 +#include <sys/types.h>
    1.41 +#include <sys/stat.h>
    1.42 +
    1.43 +#if	defined(USE_DIRENT)
    1.44 +#include <dirent.h>
    1.45 +typedef struct dirent	DIRENTRY;
    1.46 +#else
    1.47 +#include <sys/dir.h>
    1.48 +typedef struct direct	DIRENTRY;
    1.49 +#endif	/* defined(USE_DIRENT) */
    1.50 +
    1.51 +#if	!defined(S_ISDIR)
    1.52 +#define S_ISDIR(m)		(((m) & S_IFMT) == S_IFDIR)
    1.53 +#endif	/* !defined(S_ISDIR) */
    1.54 +
    1.55 +#endif /* editline_unix_h */

mercurial