Skip to content

Commit

Permalink
convert aa.c to aarray.d
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Oct 14, 2018
1 parent 54b676b commit de5acdc
Show file tree
Hide file tree
Showing 6 changed files with 749 additions and 453 deletions.
20 changes: 20 additions & 0 deletions src/dmd/backend/aa.h
Expand Up @@ -12,6 +12,25 @@
#ifndef AA_H
#define AA_H

#if 1

struct AAchars
{
static AAchars* create();
static void destroy(AAchars*);
uint* get(const char *s, unsigned len);
uint length();
};

struct AApair
{
static AApair* create(unsigned char** pbase);
static void destroy(AApair*);
uint* get(uint start, uint end);
uint length();
};

#else
#include <stdlib.h>
#include "tinfo.h"
Expand Down Expand Up @@ -106,4 +125,5 @@ struct AArray
};
#endif
#endif

0 comments on commit de5acdc

Please sign in to comment.