~ubuntu-branches/ubuntu/hardy/apache2/hardy-proposed

« back to all changes in this revision

Viewing changes to srclib/apr-util/dbm/apr_dbm_sdbm.c

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Fritsch
  • Date: 2008-01-17 20:27:56 UTC
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: james.westby@ubuntu.com-20080117202756-hv38rjknhwa2ilwi
Tags: upstream-2.2.8
ImportĀ upstreamĀ versionĀ 2.2.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright 2000-2005 The Apache Software Foundation or its licensors, as
2
 
 * applicable.
3
 
 *
4
 
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 
 * you may not use this file except in compliance with the License.
6
 
 * You may obtain a copy of the License at
 
1
/* Licensed to the Apache Software Foundation (ASF) under one or more
 
2
 * contributor license agreements.  See the NOTICE file distributed with
 
3
 * this work for additional information regarding copyright ownership.
 
4
 * The ASF licenses this file to You under the Apache License, Version 2.0
 
5
 * (the "License"); you may not use this file except in compliance with
 
6
 * the License.  You may obtain a copy of the License at
7
7
 *
8
8
 *     http://www.apache.org/licenses/LICENSE-2.0
9
9
 *
41
41
typedef apr_sdbm_t *real_file_t;
42
42
 
43
43
typedef apr_sdbm_datum_t cvt_datum_t;
44
 
#define CONVERT_DATUM(cvt, pinput) ((cvt).dptr = (pinput)->dptr, (cvt).dsize = (pinput)->dsize)
 
44
#define CONVERT_DATUM(cvt, pinput) \
 
45
        ((cvt).dptr = (pinput)->dptr, (cvt).dsize = (int)(pinput)->dsize)
45
46
 
46
47
typedef apr_sdbm_datum_t result_datum_t;
47
 
#define RETURN_DATUM(poutput, rd) ((poutput)->dptr = (rd).dptr, (poutput)->dsize = (rd).dsize)
 
48
#define RETURN_DATUM(poutput, rd) \
 
49
        ((poutput)->dptr = (rd).dptr, (poutput)->dsize = (rd).dsize)
48
50
 
49
51
#define APR_DBM_CLOSE(f)        apr_sdbm_close(f)
50
52
#define APR_DBM_FETCH(f, k, v)  apr_sdbm_fetch(f, &(v), (k))