<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="static/style.xsl"?><OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd"><responseDate>2026-11-22T14:06:53Z</responseDate><request verb="GetRecord" identifier="oai:uwspace.uwaterloo.ca:10012/1041" metadataPrefix="dim">https://dspacemainprd01.lib.uwaterloo.ca/server/oai/request</request><GetRecord><record><header><identifier>oai:uwspace.uwaterloo.ca:10012/1041</identifier><datestamp>2017-03-21T21:35:24Z</datestamp><setSpec>com_10012_9924</setSpec><setSpec>com_10012_1</setSpec><setSpec>col_10012_9930</setSpec><setSpec>col_10012_6</setSpec></header><metadata><dim:dim xmlns:dim="http://www.dspace.org/xmlns/dspace/dim" xmlns:doc="http://www.lyncode.com/xoai" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.dspace.org/xmlns/dspace/dim http://www.dspace.org/schema/dim.xsd">
   <dim:field mdschema="dc" element="contributor" qualifier="author" lang="en" authority="2fd54d52-85df-4b57-a6ea-213e2072a7fe" confidence="600">Mennie, Christopher</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="accessioned">2006-08-22T14:23:09Z</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="available">2006-08-22T14:23:09Z</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="issued" lang="en">2004</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="submitted" lang="en">2004</dim:field>
   <dim:field mdschema="dc" element="identifier" qualifier="uri">http://hdl.handle.net/10012/1041</dim:field>
   <dim:field mdschema="dc" element="description" qualifier="abstract" lang="en">With the prevalence of legacy C/C++ code, issues of readability and maintainability have become increasingly important.   When we consider the problem of refactoring or migrating C/C++ code, we see the significant role that preprocessor directives play.   It is partially because of these preprocessor directives that code maintenance has become extremely difficult.       This thesis describes a method of fact extraction and code manipulation to create a set of transformations which will remove preprocessor directives from the original source, converting them into regular C/C++ code with as few changes as possible, while maintaining readability in the code.   In addition, some of the subtle issues that may arise when migrating preprocessor directives are explored.   After discussing the general architecture of the test implementation, an examination of some metrics gathered by running it on two software systems is given.</dim:field>
   <dim:field mdschema="dc" element="format" lang="en">application/pdf</dim:field>
   <dim:field mdschema="dc" element="format" qualifier="extent">670517 bytes</dim:field>
   <dim:field mdschema="dc" element="format" qualifier="mimetype">application/pdf</dim:field>
   <dim:field mdschema="dc" element="language" qualifier="iso" lang="en">en</dim:field>
   <dim:field mdschema="dc" element="publisher" lang="en">University of Waterloo</dim:field>
   <dim:field mdschema="dc" element="rights" lang="en">Copyright: 2004, 
  Mennie, Christopher. All rights reserved.</dim:field>
   <dim:field mdschema="dc" element="subject" lang="en">Computer Science</dim:field>
   <dim:field mdschema="dc" element="subject" lang="en">macro</dim:field>
   <dim:field mdschema="dc" element="subject" lang="en">c++</dim:field>
   <dim:field mdschema="dc" element="subject" lang="en">c</dim:field>
   <dim:field mdschema="dc" element="subject" lang="en">migration</dim:field>
   <dim:field mdschema="dc" element="subject" lang="en">sofware engineering</dim:field>
   <dim:field mdschema="dc" element="title" lang="en">Giving Meaning to Macros</dim:field>
   <dim:field mdschema="dc" element="type" lang="en">Master Thesis</dim:field>
   <dim:field mdschema="dc" element="pending" lang="en">false</dim:field>
   <dim:field mdschema="uws-etd" element="degree" qualifier="department" lang="en">School of Computer Science</dim:field>
   <dim:field mdschema="uws-etd" element="degree" lang="en">Master of Mathematics</dim:field>
   <dim:field mdschema="uws" element="typeOfResource" lang="en">Text</dim:field>
   <dim:field mdschema="uws" element="peerReviewStatus" lang="en">Unreviewed</dim:field>
   <dim:field mdschema="uws" element="scholarLevel" lang="en">Graduate</dim:field>
   <dim:field mdschema="others" element="access-status">open.access</dim:field>
</dim:dim>
</metadata></record></GetRecord></OAI-PMH>