Skip to content

Commit

Permalink
Update even more syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ckormanyos committed Dec 1, 2024
1 parent 429fd62 commit 8a013f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ref_app/src/math/wide_decimal/decwide_t.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,10 @@
#if !defined(WIDE_DECIMAL_DISABLE_IOSTREAM)
template<typename char_type, typename traits_type,
const std::int32_t ParamDigitsBaseTen, typename LimbType, typename AllocatorType, typename InternalFloatType, typename ExponentType, typename FftFloatType> auto operator<<(std::basic_ostream<char_type, traits_type>& os, const decwide_t<ParamDigitsBaseTen, LimbType, AllocatorType, InternalFloatType, ExponentType, FftFloatType>& f) -> std::basic_ostream<char_type, traits_type>&;
#if !defined(WIDE_DECIMAL_DISABLE_CONSTRUCT_FROM_STRING)
template<typename char_type, typename traits_type,
const std::int32_t ParamDigitsBaseTen, typename LimbType, typename AllocatorType, typename InternalFloatType, typename ExponentType, typename FftFloatType> auto operator>>(std::basic_istream<char_type, traits_type>& is, decwide_t<ParamDigitsBaseTen, LimbType, AllocatorType, InternalFloatType, ExponentType, FftFloatType>& f) -> std::basic_istream<char_type, traits_type>&;
#endif // !WIDE_DECIMAL_DISABLE_CONSTRUCT_FROM_STRING
#endif // !WIDE_DECIMAL_DISABLE_IOSTREAM

// Global unary operators of decwide_t reference.
Expand Down Expand Up @@ -4188,6 +4190,7 @@
return (os << str);
}

#if !defined(WIDE_DECIMAL_DISABLE_CONSTRUCT_FROM_STRING)
template<typename char_type, typename traits_type>
friend auto operator>>(std::basic_istream<char_type, traits_type>& is, decwide_t& f) -> std::basic_istream<char_type, traits_type>&
{
Expand All @@ -4199,6 +4202,8 @@

return is;
}
#endif // !WIDE_DECIMAL_DISABLE_CONSTRUCT_FROM_STRING

#endif // !WIDE_DECIMAL_DISABLE_IOSTREAM

friend inline auto fabs(const decwide_t& x) -> decwide_t
Expand Down
2 changes: 1 addition & 1 deletion ref_app/target/app/make/app_rules.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ $(PATH_OBJ)/%.o : %.cpp
# ...and generate a dependency file (using the -MM flag),
# ...and be sure to include the path in the dependency file.
@-$(CC) $(CXXFLAGS) $(C_INCLUDES) $(DEP_FLAGS) $< -c -o $(PATH_OBJ)/$(basename $(@F)).o 2> $(PATH_ERR)/$(basename $(@F)).err
@-$(SED) -e 's|:\([0-9]*\):\([0-9]*\):|(\1,\2) :|' $(PATH_ERR)/$(basename $(@F)).err
@-$(SED) -e 's|.h:\([0-9]*\),|.h(\1) :|' -e 's|.hpp:\([0-9]*\),|.hpp(\1) :|' -e 's|.cpp:\([0-9]*\),|.cpp(\1) :|' $(PATH_ERR)/$(basename $(@F)).err
ifneq ($(findstr risc,$(GCC_TARGET)),)
@-$(OBJDUMP) -S $(PATH_OBJ)/$(basename $(@F)).o > $(PATH_LST)/$(basename $(@F)).lst
endif
Expand Down

0 comments on commit 8a013f8

Please sign in to comment.