Revision 0503738098d7585573cd2fb0710af2804bc387fa authored by Filip Roséen on 08 March 2016, 14:11:54 UTC, committed by Jean-Baptiste Kempf on 08 March 2016, 16:51:49 UTC
Introduced `EbmlTypeDispatcher` to the functions in question, making them more readable (as well as faster). This commit is a very good example of how the new header `Ebml_dispatcher.hpp` allows for better and faster code. Also removed some legacy code that has been disabled due to, by matroska, deprecated types.
1 parent 421416d
getpid.c
/*****************************************************************************
* getpid.c: POSIX getpid() replacement
*****************************************************************************
* Copyright © 2009 VLC authors and VideoLAN
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <sys/types.h>
#ifdef _WIN32
# include <windows.h>
#endif
pid_t getpid (void)
{
#if defined (_WIN32)
return (pid_t) GetCurrentProcessId ();
#elif defined (__native_client__)
return 1;
#else
# error Unimplemented!
#endif
}
Computing file changes ...