Mercury Bugs - mercury
View Issue Details
0000380mercuryBugpublic2015-02-25 15:552015-02-28 14:18
Reporterwangp 
Assigned Tozs 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
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]
 word("aback").
       ^
words.m:12:17: warning: implicit declaration of function ‘MR_offset_streq’ [-Wimplicit-function-declaration]
 word("aback").
TagsNo tags attached.
Attached Files? words.m (603) 2015-02-25 15:55
https://bugs.mercurylang.org/file_download.php?file_id=237&type=bug

Notes
(0000816)
zs   
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