couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxepal <...@git.apache.org>
Subject [GitHub] couchdb-snappy pull request: Support big-endian builds
Date Wed, 18 Feb 2015 18:07:48 GMT
Github user kxepal commented on a diff in the pull request:

    https://github.com/apache/couchdb-snappy/pull/2#discussion_r24924320
  
    --- Diff: rebar.config.script ---
    @@ -0,0 +1,13 @@
    +case <<1:16/native>> of
    +    <<1,0>> ->
    +        CONFIG;
    +    <<0,1>> -> 
    +        CXXFLAGS = [ { "CXXFLAGS", "$CXXFLAGS -DWORDS_BIGENDIAN" } ],
    +        P = lists:keyfind( port_env, 1, CONFIG ),
    +        case P of
    --- End diff --
    
    you can actually avoid temp variable `P` by using `list:keyfiend` expression directly
in case.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message