Skip to content

Commit

Permalink
Removed unnecessary name mangling
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobstanley committed Aug 25, 2011
1 parent e4351f3 commit c450b73
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mkstdcall.hs
Expand Up @@ -46,9 +46,7 @@ main = do

where
-- Prefixes the function with ncs_ instead of nc_.
-- The extra underscore at the start is to achieve the
-- name mangling windows expects for a stdcall function
ncsPrefix = rename $ ("_ncs" ++) . drop 2
ncsPrefix = rename $ ("ncs" ++) . drop 2

shouldWrap :: [String] -> String -> Bool
shouldWrap exs fn = "nc_" `isPrefixOf` fn && not (fn `elem` exs)
Expand Down

0 comments on commit c450b73

Please sign in to comment.