Code Monkey home page Code Monkey logo

bmi-c's People

Contributors

mcflugen avatar mdpiper avatar philmiller avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bmi-c's Issues

No get_var_itemsize in bmilib.h

I am guessing that this function is part of the standard, so I expect to find a function

int BMI_Get_var_itemsize(BMI_model*, const char* name, int* dest);

in the bmilib.h file.

Relative paths in pkg-config file

The pkg-config file output from CMake, bmic.pc, has relative paths:

$ cat /Users/mpiper/anaconda3/envs/bmic/lib/pkgconfig/bmic.pc
Name: bmi-c
Description: The Basic Model Interface for C
URL: https://bmi.readthedocs.io
Version: 2.0
Libs: -Llib -lbmic
Cflags: -Iinclude

Absolute paths are needed, otherwise downstream packages can't find bmi.h.

Macros BMI_SUCCESS and BMI_FAILURE prevent co-inclusion with C++ bmi-cxx/bmi.hxx

The header bmi.h here contains these macro definitions:

#define BMI_SUCCESS (0)
#define BMI_FAILURE (1)

The C++ header bmi.hxx contains declarations of variables in with those exact same names. Thus, if a source file says

#include <bmi.h>
#include <bmi.hxx>

It will fail to compile, because the compiler will see code that preprocesses to

namespace Bmi {
  const int (0) = 0;
  const int (1) = 1;
}

This is a potential problem for codebases that want to support BMI modules written in either language, and not have to meticulously separate where the two different BMI language binding headers get included, or in which order.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.