-
-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADDED: write_term/2 options format_float(+Format) and format_integer(…
…+Format) Using a format seems a more sensible way to control writing numbers from write_term/2. This patch removes the previously introduced radix(+Radix) option. If we want this back we will implement it on top of format_integer(+Format). This patch also contains a lot of small code cleanup and some optimization to low-level I/O.
- Loading branch information
1 parent
841a487
commit a49fe8c
Showing
13 changed files
with
200 additions
and
175 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
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
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
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
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
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 |
---|---|---|
|
@@ -67,18 +67,6 @@ remove_string(char *s) | |
* NUMBERS * | ||
*******************************/ | ||
|
||
/* Return the character representing some digit. | ||
** Fri Jun 10 10:45:40 1988 [email protected] (Jan Wielemaker) */ | ||
|
||
char | ||
digitName(int n, int smll) | ||
{ if (n <= 9) | ||
return (char)(n + '0'); | ||
return (char)(n + (smll ? 'a' : 'A') - 10); | ||
} | ||
|
||
|
||
/* Return the value of a digit when transforming a number of base 'b'. | ||
Return '-1' if it is an illegal digit. | ||
|
Oops, something went wrong.