Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Annotation of /sml/trunk/ckit/BUGS
ViewVC logotype

Annotation of /sml/trunk/ckit/BUGS

Parent Directory Parent Directory | Revision Log Revision Log


Revision 597 - (view) (download)

1 : dbm 597 ckit Bug List
2 :     =============
3 :     [Last updated: 3/31/00]
4 :    
5 :     ----------------------------------------------------------------------
6 :     NUMBER: 11
7 :     SUBMITTER: Kathleen Fisher <kfisher@research.att.com>
8 :     DATE: 12/10/99
9 :     TEST:
10 :     STATUS: request for more complete example
11 :     DESCRIPTION:
12 :    
13 :     The code:
14 :     void write_myArray (char *f, char *space, int size)
15 :     {
16 :     Sfio_t *fp;
17 :     int *temp_space = (int *) space;
18 :     int i;
19 :    
20 :     fp = openfile (f,"w");
21 :     for (i = 0; i<2; i++)
22 :     sfprintf (fp,"%d",&(*temp_space)[i]);
23 :     }
24 :    
25 :     passes through the ckit compiler, but cc reports:
26 :    
27 :     "directory008.c", line 866: error(1138): expression must have
28 :     pointer-to-object type
29 :     sfprintf (fp,"%d",&(*temp_space)[i]);
30 :    
31 :     COMMENT: Could not compile example (it is incomplete);
32 :     Kathleen indicates she can't reproduce this behaviour.
33 :    

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0