/* $RCSfile: extern.h,v $ -- $Revision: 1.13 $ -- last change: $Author: kz $ $Date: 2008-03-05 18:28:27 $ -- -- SYNOPSIS -- External declarations for dmake functions. -- -- DESCRIPTION -- ANSI is a macro that allows the proper handling of ANSI style -- function declarations. -- -- AUTHOR -- Dennis Vadura, dvadura@dmake.wticorp.com -- -- WWW -- http://dmake.wticorp.com/ -- -- COPYRIGHT -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. -- -- This program is NOT free software; you can redistribute it and/or -- modify it under the terms of the Software License Agreement Provided -- in the file /readme/license.txt. -- -- LOG -- Use cvs log to obtain detailed change logs. */ #ifndef EXTERN_h #define EXTERN_h /* For MSVC++ needs to include windows.h first to avoid problems with * type redefinitions. Include it also for MinGW for consistency. */ #if defined(__MINGW32__) || defined(_MSC_VER) #include #endif #include "config.h" /* Define this for the RS/6000 if it breaks something then we have to put a * #ifdef around it. */ #if defined(rs6000) #define _POSIX_SOURCE #endif #include #ifdef HAVE_LIMITS_H # include #endif #include #ifdef HAVE_UNISTD_H # include #endif #include #include #ifdef HAVE_FCNTL_H # include #endif #if TIME_WITH_SYS_TIME # include # include #else # if HAVE_SYS_TIME_H # include # else # include # endif #endif #if HAVE_SYS_TYPES_H # include #else # include #endif #if HAVE_SYS_STAT_H # include #endif #if HAVE_UTIME_H # include #endif #define DMPVOID void * #include #include "itypes.h" #include "stdmacs.h" #include "alloc.h" #include "db.h" #include "dstdarg.h" #include "dmake.h" #include "struct.h" #include "vextern.h" #include "public.h" /* Include this last as it invalidates some functions that are defined * externally above and turns them into no-ops. Have to do this after * the extern declarations however. */ #include "posix.h" /* Common declarations * =================== * are better made here then in local public.h. So far dmake didn't follow * this strategy but new functions will be added here. */ /* Use our own implementation if no library function is present. */ #ifndef HAVE_STRLWR /* from dmstring.c */ char *strlwr(char *p); #endif /* from function.c */ char *exec_normpath(char *args); /* from make.c */ void Unmake(CELLPTR cp); /* from path.c */ void Clean_path(char *path); char *normalize_path(char *path); /* from sysintf.c */ /* cygdospath()/DO_WINPATH() are only needed for the .WINPATH attribute * on cygwin. */ #if __CYGWIN__ char *cygdospath(char *src, int winpath); # define DO_WINPATH(p) cygdospath(p, UseWinpath) #else # define DO_WINPATH(p) p #endif /* Define some usefull macros. This is done here and not in config.h * to keep this changes usefull even when not using the autotools based * build, i.e. using config.h files that are local to the architecture. */ #if defined(_WIN32) || defined(__CYGWIN__) || defined(MSDOS) || defined(OS2) || defined(__EMX__) # define HAVE_DRIVE_LETTERS 1 #endif #if defined(_WIN32) || defined(MSDOS) || defined(OS2) && !defined(__CYGWIN__) # define NULLDEV "NUL" #else # define NULLDEV "/dev/null" #endif /* For MSVC 6.0 and newer and MinGW use the CreateProcess() function. */ #if defined(__MINGW32__) || defined(_MSC_VER) && _MSC_VER >= 1200 # define USE_CREATEPROCESS 1 #else /* #undef USE_CREATEPROCESS */ #endif /* CreateProcess() is spawn-like. */ #if ENABLE_SPAWN && ( HAVE_SPAWN_H || __CYGWIN__ || __EMX__) || defined(USE_CREATEPROCESS) # define USE_SPAWN 1 #else /* #undef USE_SPAWN */ #endif /* Work around some of the functions that may or may not exist */ #if ! HAVE_TZSET #if HAVE_SETTZ # define tzset() settz() #else # warn "tzset is not supported, null out" # define tzset() #endif #endif /* Get the working directory fall back code */ #if ! HAVE_GETCWD #if HAVE_GETWD # define getcwd(buf,len) getwd(buf) #else # error "You have no supported way of getting working directory" #endif #endif /* If setvbuf is not available set output to unbuffered */ #if ! HAVE_SETVBUF # define setvbuf(fp,bp,type,len) setbuf(fp,NULL) #endif /* coreleft is used in some debug macros. Only Turbo C seems to provide * this function. Define it here so that the code compiles. */ #ifdef DBUG #define coreleft() 0L #endif #endif on value='distro/collabora/lov-5.0'>distro/collabora/lov-5.0 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/o3tl
AgeCommit message (Collapse)Author
2016-05-27CppunitTest_o3tl_tests: fix loplugin:cppunitassertequals warnings in ...Miklos Vajna
... cow_wrapper and vector_pool Change-Id: I1f224a6bd933592dcb34defd5ad5c480d82346cb Reviewed-on: https://gerrit.libreoffice.org/25531 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2016-04-30Fix typosAndrea Gelmini
Change-Id: Id81b16ff26283611f0b84929d831c827f847ab73 Reviewed-on: https://gerrit.libreoffice.org/24317 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-02-09Remove excess newlinesChris Sherlock
A ridiculously fast way of doing this is: for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \ --exclude-dir=workdir --exclude-dir=instdir '^ {3,}' .) do perl -0777 -i -pe 's/^ {3,}/ /gm' $i done Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c Reviewed-on: https://gerrit.libreoffice.org/22224 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-29remove unused o3tl::rangeDavid Tardon
Change-Id: I080f4f2cb15d25ecf5545300da422957f24e3f9b
2016-01-10Fix typosAndrea Gelmini
Change-Id: I9a5940027423ff0791fa7da0b79b617412ce6b86 Reviewed-on: https://gerrit.libreoffice.org/21209 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2015-09-15Fix binary ops with two o3tl::type_flags<E>::Wrap paramsStephan Bergmann
(the original ones would never have been picked due to how template argument deduction works) Change-Id: I5a08c763d721d8e11b5a10af2344a6a24bb0b9b2 Reviewed-on: https://gerrit.libreoffice.org/18583 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2015-09-01coverity#1321598 Resource leak in objectCaolán McNamara
and coverity#1321597 Resource leak in object Change-Id: I6e9e517a394bea60c1f0550b17bacd653eee5cbc
2015-08-30loplugin:implicitboolconversionStephan Bergmann
Change-Id: Id4561abb96ee8244d4c0b0c9dfce0e2cab1d8b85
2015-08-29o3tl: add another unit test to cow_wrapperDaniel Robertson
Add unit tests to cow_wrapper for the move ctor and move assignment. Change-Id: I82a5886ca7ae110985c7202125699cf95b6466d8 Reviewed-on: https://gerrit.libreoffice.org/18108 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-08-26Revert "create a macro to tidy up the declaration sites of ↵Noel Grandin
o3tl::typed_flags_set" sberg did not like this macro, let's see if I can find a better solution. This reverts commit e51fa143587d018b75db08e60cf27ff932b1cf8d.
2015-08-17o3tl: rename compat_functional headerThorsten Behrens
After the cleanup, the stuff there really stands on its own (and the remaining usage of select1st/2nd is more descriptive than lambdas). Change-Id: I0aba131d5dc550189f8130d167dc94167e404540 Reviewed-on: https://gerrit.libreoffice.org/17806 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-07-24LRU map (cache) implementation to o3tl + testsTomaž Vajngerl
Change-Id: I6b1a39918e6c8c67712be2c8e9907266dcfefedb
2015-07-15create a macro to tidy up the declaration sites of o3tl::typed_flags_setNoel Grandin
Change-Id: Ifb8fd4fd5128188420f1dfda6b6f695160d5e77a Reviewed-on: https://gerrit.libreoffice.org/15865 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-06-11cppcheck: noExplicitConstructorCaolán McNamara
Change-Id: Id6291335945a8f10cef3afd1a2b3bae65fdf4562
2015-06-08loplugin:cstylecast: deal with remaining pointer castsStephan Bergmann
Change-Id: Ic29f424f5eb579ab95907c110529cdc9002443e1