Author: shenruifen Date: 2012-07-27 00:13:25 -0400 (Fri, 27 Jul 2012) New Revision: 3994
Modified: trunk/libspin/gspin-tel.h Log: Fix bug in gs_decl_source_file/line Code reviewed by Lai jianxin Modified: trunk/libspin/gspin-tel.h =================================================================== --- trunk/libspin/gspin-tel.h 2012-07-27 04:12:20 UTC (rev 3993) +++ trunk/libspin/gspin-tel.h 2012-07-27 04:13:25 UTC (rev 3994) @@ -826,10 +826,16 @@ GS_UPDATE_BITS (GS_DECL_FLAG2, gs_set_decl_visibility, GS_DECL_VISIBILITY, GS_DECL_VISIBILITY_BITS) static inline gs_string_t gs_decl_source_file (gs_t t) { + if (gs_operand (t, GS_DECL_SOURCE_FILE) != NULL) return gs_s (gs_operand (t, GS_DECL_SOURCE_FILE)); + else + return NULL; } static inline gs_int_t gs_decl_source_line (gs_t t) { + if (gs_operand (t, GS_DECL_SOURCE_LINE) != NULL) return gs_n (gs_operand (t, GS_DECL_SOURCE_LINE)); + else + return -1; } GS_LOOKUP (gs_type_size, GS_TYPE_SIZE) GS_LOOKUP (gs_type_size_unit, GS_TYPE_SIZE_UNIT) ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Open64-devel mailing list Open64-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/open64-devel