Intrepid/upc2c — pull request #53 by nenadv (2014-02-19 19:13:30+00:00)
Title: Remove referencies for upcr_proxy.h

As upcr_proxy.h is a relic of the past we need to remove all the references resolved by it and switch to using the interfaces from upcr.h (which are conforming to the UPCR spec).

I started changing the translator and removed all of the obvious refs. However the following was unresolved once I started compiling the code:
```
#define MYTHREAD (int)upcr_mythread()
#ifndef __UPC_STATIC_THREADS__
# define THREADS (int)upcr_threads()
#endif
#define upcr_barrier(x,y) do { \
int _x = (x), _y = (y); \
upcr_notify(_x,_y); \
upcr_wait(_x,_y); \
} while (0)
```
and also these (out of which I verified that some of them a causing compile errors):
```
#define upc_global_exit upcr_global_exit

#define upc_global_alloc upcr_global_alloc
#define upc_all_alloc upcr_all_alloc
#define upc_alloc upcr_alloc
#define upc_local_alloc upcr_local_alloc
#define upc_free upcr_free
#define upc_all_free upcr_all_free

#define upc_threadof upcr_threadof_shared
#define upc_phaseof upcr_phaseof_shared
#define upc_addrfield upcr_addrfield_shared
#define upc_affinitysize upcr_affinitysize
#define upc_resetphase upcr_shared_resetphase
#define upc_global_lock_alloc upcr_global_lock_alloc
#define upc_all_lock_alloc upcr_all_lock_alloc
#define upc_lock_free upcr_lock_free
#define upc_all_lock_free upcr_all_lock_free
#define upc_lock upcr_lock
#define upc_lock_attempt upcr_lock_attempt
#define upc_unlock upcr_unlock

#define upc_memcpy upcr_memcpy
#define upc_memput upcr_memput
#define upc_memget upcr_memget
#define upc_memset upcr_memset

#define upc_thread_info upcr_thread_info
```
The second set will be resolved by the Berkeley team.

The first set needs to be resolved by the upc2c and we have three options:
(1) translator generated
(2) defines included in the translated boiler plate of every translated code
(3) another include file that upc2c will include from the UPCR postinclude directory)