version 1.14, 2010/04/07 11:25:38 |
version 1.17, 2010/06/25 19:50:23 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se> |
* Copyright (c) 2009 Kristaps Dzonsons <kristaps@bsd.lv> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* purpose with or without fee is hereby granted, provided that the above |
Line 139 a2roffsu(const char *src, struct roffsu *dst, enum rof |
|
Line 139 a2roffsu(const char *src, struct roffsu *dst, enum rof |
|
if ((dst->scale = atof(buf)) < 0) |
if ((dst->scale = atof(buf)) < 0) |
dst->scale = 0; |
dst->scale = 0; |
dst->unit = unit; |
dst->unit = unit; |
dst->pt = hasd; |
|
|
|
return(1); |
return(1); |
} |
} |
|
|
|
|
a2roffdeco(enum roffdeco *d, |
a2roffdeco(enum roffdeco *d, |
const char **word, size_t *sz) |
const char **word, size_t *sz) |
{ |
{ |
int j, offs, term, lim; |
int j, term, lim; |
char set; |
char set; |
const char *wp, *sp; |
const char *wp, *sp; |
|
|
*d = DECO_NONE; |
*d = DECO_NONE; |
wp = *word; |
wp = *word; |
offs = 0; |
|
|
|
switch ((set = *wp)) { |
switch ((set = *wp)) { |
case ('\0'): |
case ('\0'): |