1
0
Fork 0
cl-sites/novaspec.org/cl/f_compile-file-pathname.html
2025-02-05 18:52:26 +01:00

359 lines
No EOL
7.9 KiB
HTML

<!DOCTYPE HTML>
<HTML LANG="en-us"
><HEAD
><TITLE
>compile-file-pathname | Common Lisp Nova Spec</TITLE
><META CHARSET="US-ASCII"
><LINK REL="canonical" HREF="f_compile-file-pathname.html"
><LINK REL="next" HREF="f_load.html" TYPE="text/html" TITLE="load"
><LINK REL="prev" HREF="f_compile-file.html" TYPE="text/html" TITLE="compile-file"
><LINK REL="up" HREF="24_2_System_Construction_Dictionary.html" TYPE="text/html" TITLE="24.2 System Construction Dictionary"
><LINK REL="start" HREF="index.html" TYPE="text/html" TITLE="Common Lisp Nova Spec"
><META NAME="VIEWPORT" CONTENT="width=device-width, initial-scale=1.0"
><LINK REL="STYLESHEET" HREF="dpans.css%3F3909942064.css"
><SCRIPT SRC="dpans.js%3F3909942064"
></SCRIPT
><SCRIPT SRC="apropos.js%3F3909942064"
></SCRIPT
></HEAD
><BODY
><DIV
><DIV CLASS="topnav"
><DIV CLASS="breadcrumb"
><SPAN CLASS="breadcrumb-item"
><A HREF="index.html"
>Common Lisp Nova Spec</A
></SPAN
> <SPAN CLASS="breadcrumb-item"
>&#8594; <A HREF="24_System_Construction.html"
>24. System Construction</A
></SPAN
> <SPAN CLASS="breadcrumb-item"
>&#8594; <A HREF="24_2_System_Construction_Dictionary.html"
>24.2 System Construction Dictionary</A
></SPAN
> <SPAN CLASS="breadcrumb-item"
>&#8594; <A HREF="f_compile-file-pathname.html"
>compile-file-pathname</A
></SPAN
></DIV
><DIV CLASS="apropos"
><DIV CLASS="apropos-io"
><A HREF="f_compile-file.html" CLASS="prev"
>&#8592;</A
><SPAN ID="apropos-label"
>Apropos </SPAN
><INPUT ID="apropos" AUTOFOCUS="AUTOFOCUS" PLACEHOLDER="Type here to search" ONINPUT="aproposInput(this);" ONKEYUP="aproposKeyup(event);" ONCHANGE="aproposChange(this);" ONFOCUS="aproposFocus(this);" ONFOCUSOUT="aproposFocusout(this);"
><A HREF="f_load.html" CLASS="next"
>&#8594;</A
></DIV
><DIV ID="apropos-res"
></DIV
></DIV
></DIV
><DIV CLASS="matter"
><DIV CLASS="com"
><DIV CLASS="begincom"
><HR
><TABLE WIDTH="100%" CELLSPACING="0" CELLPADDING="0"
><TR
><TD ALIGN="LEFT" VALIGN="BASELINE" WIDTH="100%" CLASS="name"
><SPAN CLASS="idx" DATA-KIND="idxref" DATA-TERM="compile-file-pathname"
></SPAN
><B
>compile-file-pathname</B
></TD
><TD ALIGN="RIGHT" VALIGN="BASELINE" WIDTH="0" NOWRAP="NOWRAP" CLASS="ftype"
><I
>Function</I
></TD
></TR
></TABLE
><HR
></DIV
><UL CLASS="subtoc"
></UL
><DL
><DT
><B
>Syntax</B
></DT
><DD
><P CLASS="j"
><B
>compile-file-pathname</B
> <SPAN CLASS="cmssi"
>input-file</SPAN
> <SPAN CLASS="cmtt"
>&amp;key</SPAN
> <SPAN CLASS="cmssi"
>output-file</SPAN
> <SPAN CLASS="cmtt"
>&amp;allow-other-keys</SPAN
> <SPAN CLASS="arrow"
>&#8594;</SPAN
> <SPAN CLASS="cmssi"
>pathname</SPAN
></P
></DD
><DT
><B
>Arguments and Values</B
></DT
><DD
><P CLASS="j"
><VAR CLASS="param"
>input-file</VAR
> &#8212; a <A HREF="26_1_Glossary.html#pathname_designator"
><EM CLASS="term"
>pathname designator</EM
></A
>. (Default fillers for unspecified components are taken from <A HREF="v_default-pathname-defaults.html" CLASS="varref"
><B
>*default-pathname-defaults*</B
></A
>.) </P
><P CLASS="j"
><VAR CLASS="param"
>output-file</VAR
> &#8212; a <A HREF="26_1_Glossary.html#pathname_designator"
><EM CLASS="term"
>pathname designator</EM
></A
>. The default is <A HREF="26_1_Glossary.html#implementation-defined"
><EM CLASS="term"
>implementation-defined</EM
></A
>. </P
><P CLASS="j"
><VAR CLASS="param"
>pathname</VAR
> &#8212; a <A HREF="26_1_Glossary.html#pathname"
><EM CLASS="term"
>pathname</EM
></A
>.</P
></DD
><DT
><B
>Description</B
></DT
><DD
><P CLASS="j"
>Returns the <A HREF="26_1_Glossary.html#pathname"
><EM CLASS="term"
>pathname</EM
></A
> that <A HREF="f_compile-file.html" CLASS="funref"
><B
>compile-file</B
></A
> would write into, if given the same arguments. </P
><P CLASS="j"
>The defaults for the <VAR CLASS="param"
>output-file</VAR
> are taken from the <A HREF="26_1_Glossary.html#pathname"
><EM CLASS="term"
>pathname</EM
></A
> that results from merging the <VAR CLASS="param"
>input-file</VAR
> with the <A HREF="26_1_Glossary.html#value"
><EM CLASS="term"
>value</EM
></A
> of <A HREF="v_default-pathname-defaults.html" CLASS="misc"
><B
>*default-pathname-defaults*</B
></A
>, except that the type component should default to the appropriate <A HREF="26_1_Glossary.html#implementation-defined"
><EM CLASS="term"
>implementation-defined</EM
></A
> default type for <A HREF="26_1_Glossary.html#compiled_file"
><EM CLASS="term"
>compiled files</EM
></A
>. </P
><P CLASS="j"
>If <VAR CLASS="param"
>input-file</VAR
> is a <A HREF="26_1_Glossary.html#logical_pathname"
><EM CLASS="term"
>logical pathname</EM
></A
> and <VAR CLASS="param"
>output-file</VAR
> is unsupplied, the result is a <A HREF="26_1_Glossary.html#logical_pathname"
><EM CLASS="term"
>logical pathname</EM
></A
>. If <VAR CLASS="param"
>input-file</VAR
> is a <A HREF="26_1_Glossary.html#logical_pathname"
><EM CLASS="term"
>logical pathname</EM
></A
>, it is translated into a physical pathname as if by calling <A HREF="f_translate-logical-pathname.html" CLASS="funref"
><B
>translate-logical-pathname</B
></A
>. If <VAR CLASS="param"
>input-file</VAR
> is a <A HREF="26_1_Glossary.html#stream"
><EM CLASS="term"
>stream</EM
></A
>, the <A HREF="26_1_Glossary.html#stream"
><EM CLASS="term"
>stream</EM
></A
> can be either open or closed. <A HREF="f_compile-file-pathname.html" CLASS="funref"
><B
>compile-file-pathname</B
></A
> returns the same <A HREF="26_1_Glossary.html#pathname"
><EM CLASS="term"
>pathname</EM
></A
> after a file is closed as it did when the file was open. It is an error if <VAR CLASS="param"
>input-file</VAR
> is a <A HREF="26_1_Glossary.html#stream"
><EM CLASS="term"
>stream</EM
></A
> that is created with <A HREF="f_make-two-way-stream.html" CLASS="funref"
><B
>make-two-way-stream</B
></A
>, <A HREF="f_make-echo-stream.html" CLASS="funref"
><B
>make-echo-stream</B
></A
>, <A HREF="f_make-broadcast-stream.html" CLASS="funref"
><B
>make-broadcast-stream</B
></A
>, <A HREF="f_make-concatenated-stream.html" CLASS="funref"
><B
>make-concatenated-stream</B
></A
>, <A HREF="f_make-string-input-stream.html" CLASS="funref"
><B
>make-string-input-stream</B
></A
>, <A HREF="f_make-string-output-stream.html" CLASS="funref"
><B
>make-string-output-stream</B
></A
>. </P
><P CLASS="j"
>If an implementation supports additional keyword arguments to <A HREF="f_compile-file.html" CLASS="funref"
><B
>compile-file</B
></A
>, <A HREF="f_compile-file-pathname.html" CLASS="funref"
><B
>compile-file-pathname</B
></A
> must accept the same arguments.</P
></DD
><DT
><B
>Examples</B
></DT
><DD
><P CLASS="j"
>See <A HREF="f_logical-pathname-translations.html" CLASS="funref"
><B
>logical-pathname-translations</B
></A
>.</P
></DD
><DT
><B
>Exceptional Situations</B
></DT
><DD
><P CLASS="j"
>An error of <A HREF="26_1_Glossary.html#type"
><EM CLASS="term"
>type</EM
></A
> <A HREF="t_file-error.html" CLASS="typeref"
><B
>file-error</B
></A
> might be signaled if either <VAR CLASS="param"
>input-file</VAR
> or <VAR CLASS="param"
>output-file</VAR
> is <A HREF="26_1_Glossary.html#wild"
><EM CLASS="term"
>wild</EM
></A
>.</P
></DD
><DT
><B
>See Also</B
></DT
><DD
><P CLASS="j"
><A HREF="f_compile-file.html" CLASS="funref"
><B
>compile-file</B
></A
>, <A HREF="t_pathname.html" CLASS="typeref"
><B
>pathname</B
></A
>, <A HREF="t_logical-pathname.html" CLASS="typeref"
><B
>logical-pathname</B
></A
>, <A HREF="20_1_File_System_Concepts.html#sec_20_1" CLASS="secref"
><SPAN CLASS="cmr"
>Section</SPAN
> <SPAN CLASS="cmr"
>20.1</SPAN
> <SPAN CLASS="cmr"
>(File</SPAN
> <SPAN CLASS="cmr"
>System</SPAN
> <SPAN CLASS="cmr"
>Concepts)</SPAN
></A
>, <A HREF="19_1_Overview_of_Filenames.html#sec_19_1_2" CLASS="secref"
><SPAN CLASS="cmr"
>Section</SPAN
> <SPAN CLASS="cmr"
>19.1.2</SPAN
> <SPAN CLASS="cmr"
>(Pathnames</SPAN
> <SPAN CLASS="cmr"
>as</SPAN
> <SPAN CLASS="cmr"
>Filenames)</SPAN
></A
></P
></DD
></DL
></DIV
></DIV
><DIV CLASS="footer"
><DIV CLASS="btmnav"
><A HREF="f_compile-file.html" CLASS="prev"
>&#8592;</A
><A HREF="f_load.html" CLASS="next"
>&#8594;</A
></DIV
><DIV CLASS="trail"
>Conversion to HTML copyright 2023 by Gilbert Baumann</DIV
></DIV
></DIV
><SCRIPT
>domReady();</SCRIPT
></BODY
></HTML
>