1c9a4cb6897ec2924b5d7f46e4c6b9162d94d6ba
angie
  Mon Apr 22 16:43:15 2013 -0700
Converted variant and gpFx to use localmem.  Also got rid of a coupleunnecessary conversions from genePred to bed and psl in annoGratorGpVar
and gpFx. refs #6152

diff --git src/inc/localmem.h src/inc/localmem.h
index 15d0147..3a58581 100644
--- src/inc/localmem.h
+++ src/inc/localmem.h
@@ -44,20 +44,23 @@
 
 char *lmCloneFirstWord(struct lm *lm, char *line);
 /* Clone first word in line */
 
 char *lmCloneSomeWord(struct lm *lm, char *line, int wordIx);
 /* Return a clone of the given space-delimited word within line.  Returns NULL if
  * not that many words in line. */
 
 struct slName *lmSlName(struct lm *lm, char *name);
 /* Return slName in memory. */
 
 #define lmAllocVar(lm, pt) (pt = lmAlloc(lm, sizeof(*pt)));
 /* Shortcut to allocating a single variable in local mem and
  * assigning pointer to it. */
 
+#define lmCloneVar(lm, pt) lmCloneMem(lm, pt, sizeof((pt)[0]))
+/* Allocate copy of a structure. */
+
 #define lmAllocArray(lm, pt, size) (pt = lmAlloc(lm, sizeof(*pt) * (size)))
 /* Shortcut to allocating an array in local mem and
  * assigning pointer to it. */
 
 #endif//ndef LOCALMEM_H