Revision: 73079
http://sourceforge.net/p/brlcad/code/73079
Author: brlcad
Date: 2019-05-17 13:23:41 +0000 (Fri, 17 May 2019)
Log Message:
-----------
no longer used, switched to c++ initiailization to avoid having to do
platform-specific tricks
Removed Paths:
-------------
brlcad/trunk/src/libbu/init.c
Deleted: brlcad/trunk/src/libbu/init.c
===================================================================
--- brlcad/trunk/src/libbu/init.c 2019-05-17 04:36:33 UTC (rev 73078)
+++ brlcad/trunk/src/libbu/init.c 2019-05-17 13:23:41 UTC (rev 73079)
@@ -1,87 +0,0 @@
-/* I N I T . C
- * BRL-CAD
- *
- * Copyright (c) 2019 United States Government as represented by
- * the U.S. Army Research Laboratory.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * version 2.1 as published by the Free Software Foundation.
- *
- * This library 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 file; see the file named COPYING for more
- * information.
- */
-/** @file init.c
- *
- * Sole purpose of this file is to capture status and aspects of an
- * application and the application's environment when first run such
- * as initial working directory and available memory. That is, it's
- * intended to be reflective, not generative or conditional logic.
- *
- * Please do NOT add application-specific logic here.
- *
- * NOTE: as this init is global to ALL applications before main(),
- * care must be taken to not write to STDOUT or STDERR or app output
- * may be corrupted, signals can be raised, or worse.
- *
- */
-
-#include "common.h"
-
-#include "bu/defines.h"
-#include "bu/app.h"
-#include "bu/parallel.h"
-
-
-int BU_SEM_GENERAL;
-int BU_SEM_SYSCALL;
-int BU_SEM_BN_NOISE;
-int BU_SEM_MAPPEDFILE;
-int BU_SEM_THREAD;
-int BU_SEM_MALLOC;
-int BU_SEM_DATETIME;
-int BU_SEM_DIR;
-
-/* The Visual C compiler pragmas needed for INITIALIZE specify a "read"
- * attribute, which is conflicting with the system definition of read:
- *
- * #define read _read
- *
- * For the INITIALIZE macro to work with Visual C, we have to first #undef
- * read anywhere we call it so the subsequent macro expansion will work. */
-#if defined(_WIN32)
-# undef read
-#endif
-
-INITIALIZE(libbu)
-{
- char iwd[MAXPATHLEN] = {0};
-
- BU_SEMAPHORE_DEFINE(BU_SEM_GENERAL);
- BU_SEMAPHORE_DEFINE(BU_SEM_SYSCALL);
- BU_SEMAPHORE_DEFINE(BU_SEM_BN_NOISE);
- BU_SEMAPHORE_DEFINE(BU_SEM_MAPPEDFILE);
- BU_SEMAPHORE_DEFINE(BU_SEM_THREAD);
- BU_SEMAPHORE_DEFINE(BU_SEM_MALLOC);
- BU_SEMAPHORE_DEFINE(BU_SEM_DATETIME);
- BU_SEMAPHORE_DEFINE(BU_SEM_DIR);
-
- bu_getiwd(iwd, MAXPATHLEN);
-}
-
-
-/*
- * Local Variables:
- * tab-width: 8
- * mode: C
- * indent-tabs-mode: t
- * c-file-style: "stroustrup"
- * End:
- * ex: shiftwidth=4 tabstop=8
- */
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits