Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/lamont/src/include/Diderot/dyn-seq.h
ViewVC logotype

Diff of /branches/lamont/src/include/Diderot/dyn-seq.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2561, Thu Mar 6 17:45:45 2014 UTC revision 2562, Mon Mar 10 04:10:03 2014 UTC
# Line 35  Line 35 
35      seq->data = CheckedAlloc (elemSz * seq->size);      seq->data = CheckedAlloc (elemSz * seq->size);
36      return seq;      return seq;
37  }  }
38    STATIC_INLINE Diderot_DynSeq_t *Diderot_DynSeqAllocNoData(size_t elemSz, int initialSz)
39    {
40        Diderot_DynSeq_t *seq = NEW(Diderot_DynSeq_t);
41        seq->base = 0;
42        seq->nElems = initialSz;
43        seq->size = initialSz + 8;  // FIXME: be smarter about padding
44        return seq;
45    }
46    
47  STATIC_INLINE Diderot_DynSeq_t *Diderot_DynSeqMk (size_t elemSz, int nElems, void *elems)  STATIC_INLINE Diderot_DynSeq_t *Diderot_DynSeqMk (size_t elemSz, int nElems, void *elems)
48  {  {

Legend:
Removed from v.2561  
changed lines
  Added in v.2562

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