Mercury Bugs - mercury
View Issue Details
0000380mercuryBugpublic2015-02-25 15:552015-02-28 14:18
Assigned Tozs 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000380: mercury_string.h not always included in high-level C grades
Descriptionmercury_string.h is not always included by the generated C file unless the module imports the string module, but the compiler may generate references to macros defined in that file. The easiest fix would be to include mercury_string.h in mercury.h

% mmc -s hlc.gc -c words
words.m: In function ‘words__word_1_p_0’:
words.m:12:7: warning: implicit declaration of function ‘MR_nth_code_unit’ [-Wimplicit-function-declaration]
words.m:12:17: warning: implicit declaration of function ‘MR_offset_streq’ [-Wimplicit-function-declaration]
TagsNo tags attached.
Attached Files? words.m (603) 2015-02-25 15:55

2015-02-28 14:18   
Fix committed 2015 feb 27.

Issue History
2015-02-25 15:55wangpNew Issue
2015-02-25 15:55wangpFile Added: words.m
2015-02-27 14:14zsAssigned To => zs
2015-02-27 14:14zsStatusnew => assigned
2015-02-28 14:18zsNote Added: 0000816
2015-02-28 14:18zsStatusassigned => resolved
2015-02-28 14:18zsResolutionopen => fixed