-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bolum14_4 dosyası Latex ile yeniden hazırlandı. #9
- Loading branch information
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
\documentclass[22pt]{article} | ||
\usepackage[utf8]{inputenc} | ||
\usepackage[turkish]{babel} | ||
\usepackage[utf8]{inputenc} | ||
\usepackage{listings} | ||
\begin{document} | ||
14.4 NULL referanstan ayırmayı aramak\\ | ||
\\ | ||
Bu SmPL eşleştirmesi NULL referanstan ayırmayı arar.Önce bir ifade NULL ile karşılaştırılır,değişken işaretçi yeniden atanmazsa bu ifadeye referans ayırmak yasaklanmıştır. | ||
\\ | ||
Orijinal\\ | ||
\begin{lstlisting} | ||
1 foo = kmalloc(1024); | ||
2 if (!foo) { | ||
3 printk ("Error %s", foo->here); | ||
4 return; | ||
5 } | ||
6 foo->ok = 1; | ||
7 return; | ||
\end{lstlisting} | ||
Anlamsal Eşleşme\\ | ||
\begin{lstlisting} | ||
1 @@ | ||
2 expression E, E1; | ||
3 identifier f; | ||
4 statement S1,S2,S3; | ||
5 @@ | ||
6 | ||
7 * if (E == NULL) | ||
8 { | ||
9 ... when != if (E == NULL) S1 else S2 | ||
10 when != E = E1 | ||
11 * E->f | ||
12 ... when any | ||
13 return ...; | ||
14 } | ||
15 else S3 | ||
\end{lstlisting} | ||
Eşleşmiş Satırlar\\ | ||
\begin{lstlisting} | ||
1 foo = kmalloc(1024); | ||
2 if (!foo) { | ||
3 printk ("Error %s", foo->here); | ||
4 return; | ||
5 } | ||
6 foo->ok = 1; | ||
7 return; | ||
\end{lstlisting} | ||
\end{document} |